#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#-------------------------------------------------------------------------------
|
#
|
##@package UseItem.Item_TiandaoQiyun
|
#
|
# @todo:ÌìµÀÆøÔË
|
# @author hxp
|
# @date 2024-09-04
|
# @version 1.0
|
#
|
# ÏêϸÃèÊö: ÌìµÀÆøÔË
|
#
|
#-------------------------------------------------------------------------------
|
#"""Version = 2024-09-04 16:30"""
|
#-------------------------------------------------------------------------------
|
|
import ItemCommon
|
import PlayerXiangong
|
|
def BatchUseItem(curPlayer, curRoleItem, tick, useCnt, exData):
|
##ÅúÁ¿Ê¹ÓÃÎïÆ·
|
|
curEff = curRoleItem.GetEffectByIndex(0)
|
addValue = curEff.GetEffectValue(0) * useCnt
|
|
PlayerXiangong.AddTiandaoQiyun(curPlayer, addValue, {"ItemID":curRoleItem.GetItemTypeID(), "ItemCount":useCnt})
|
|
succCnt = useCnt # ĬÈÏֵʹÓÃ1¸ö
|
ItemCommon.DelItem(curPlayer, curRoleItem, succCnt)
|
return True, succCnt
|
|
|
|