| | |
| | |
|
| | | import ItemCommon
|
| | | import FBCommon
|
| | | import PlayerControl
|
| | | import ChConfig
|
| | |
|
| | | def BatchUseItem(curPlayer, curRoleItem, tick, useCnt, exData):
|
| | |
| | | itemTypeID = curRoleItem.GetItemTypeID()
|
| | | curEff = curRoleItem.GetEffectByIndex(0)
|
| | | mapID = curEff.GetEffectValue(0)
|
| | | mapID = FBCommon.GetRecordMapID(mapID)
|
| | | itemAddCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_ItemAddFbCnt % mapID)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_ItemAddFbCnt % mapID, itemAddCnt+useCnt)
|
| | | |
| | | FBCommon.AddFBCntByItem(curPlayer, itemTypeID, mapID, useCnt)
|
| | | ItemCommon.DelItem(curPlayer, curRoleItem, useCnt, True, ChConfig.ItemDel_AddFBCnt)
|
| | | FBCommon.Sync_FBPlayerFBInfoData(curPlayer, mapID)
|
| | | PlayerControl.NotifyCode(curPlayer, 'AddActivityCount_1', [itemTypeID, mapID, useCnt])
|
| | | |
| | | FBCommon.OnFBCountChangeEffectRecoverCount(curPlayer, mapID)
|
| | | return True, useCnt
|
| | |
|