hxp
2025-10-24 3432541b467d53ffe4ed3872c734e76638e30df8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
##@package UseItem.Item_FamilyTaofaCnt
#
# @todo:Ôö¼Ó¹«»áÌÖ·¥´ÎÊý
# @author hxp
# @date 2025-10-24
# @version 1.0
#
# ÏêϸÃèÊö: Ôö¼Ó¹«»áÌÖ·¥´ÎÊý
#
#-------------------------------------------------------------------------------
#"""Version = 2025-10-24 19:00"""
#-------------------------------------------------------------------------------
 
import PlayerFamilyTaofa
import ItemCommon
 
def BatchUseItem(curPlayer, curRoleItem, tick, useCnt, exData):
    ##ÅúÁ¿Ê¹ÓÃÎïÆ·
    curEff = curRoleItem.GetEffectByIndex(0)
    addCnt = curEff.GetEffectValue(0) * useCnt
    PlayerFamilyTaofa.AddTaofaCntByItem(curPlayer, addCnt)
    ItemCommon.DelItem(curPlayer, curRoleItem, useCnt)
    return True, useCnt