hxp
5 天以前 388823edfe6308cba6f76ca6dc4f20022c5cb2be
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
29
30
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
##@package UseItem.Item_AddFBCnt
#
# @todo:Ôö¼Ó¸±±¾¿É½øÈë´ÎÊý
# @author xdh
# @date 2018-03-09
# @version 1.0
#
# ÏêϸÃèÊö: Ôö¼Ó¸±±¾¿É½øÈë´ÎÊý
#
#-------------------------------------------------------------------------------
#"""Version = 2018-03-09 12:00"""
#-------------------------------------------------------------------------------
 
import ItemCommon
import FBCommon
import ChConfig
 
def BatchUseItem(curPlayer, curRoleItem, tick, useCnt, exData):
    ##ÅúÁ¿Ê¹ÓÃÎïÆ·
    itemTypeID = curRoleItem.GetItemTypeID()
    curEff = curRoleItem.GetEffectByIndex(0)
    mapID = curEff.GetEffectValue(0)
    FBCommon.AddFBCntByItem(curPlayer, itemTypeID, mapID, useCnt)
    ItemCommon.DelItem(curPlayer, curRoleItem, useCnt, True, ChConfig.ItemDel_AddFBCnt)
    return True, useCnt