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