#!/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
|
|