| | |
| | | return False
|
| | | playerItemControl = ItemControler.PlayerItemControler(curPlayer)
|
| | |
|
| | | if ItemControler.GetIsAuctionItem(curItem):
|
| | | GameWorld.DebugLog("拍品无法穿戴!")
|
| | | return False
|
| | | |
| | | #---验证是否可以换这件装备---
|
| | | if not ItemCommon.CheckItemCanUse(curItem):
|
| | | return False
|
| | |
| | |
|
| | | #装备的被动触发类技能
|
| | | PassiveBuffEffMng.GetPassiveEffManager().RegistSuperEquipSkillDict(curPlayer)
|
| | | return
|
| | |
|
| | |
|
| | | #---------------------------------------------------------------------
|
| | | ## 玩家使用装备(在装备栏上的特殊物品:如蛋白)(封包参数)
|
| | | # @param index 玩家索引
|
| | | # @param tick 当前时间
|
| | | # @return None
|
| | | # @remarks 函数详细说明.
|
| | | def __Func_PlayerUseEquipSelf(index, tick):
|
| | | sendPack = IPY_GameWorld.IPY_CUseEquip()
|
| | | curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
|
| | | |
| | | #使用物品行为状态, 判断客户端限制
|
| | | if not OperControlManager.IsObjCanDoAction(
|
| | | curPlayer,
|
| | | ChConfig.Def_Obj_ActState_ClientAct,
|
| | | IPY_GameWorld.oalUseItem
|
| | | ):
|
| | | return
|
| | | |
| | | #检查使用物品的玩家属性
|
| | | if not ChItem.CheckUseItemSelf_Player(curPlayer):
|
| | | return
|
| | | |
| | | roleEquipPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptEquip)
|
| | | #获得所要使用的装备
|
| | | equipIndex = sendPack.GetEquipIndex()
|
| | | curEquip = roleEquipPack.GetAt(equipIndex)
|
| | | |
| | | if not ItemCommon.CheckItemCanUse(curEquip) or ItemControler.GetIsAuctionItem(curEquip):
|
| | | return
|
| | | |
| | | #FB禁止使用物品
|
| | | if FBLogic.DoFBForbidUseItem(curPlayer, curEquip):
|
| | | return
|
| | | |
| | | if ItemControler.IsEventItem(curEquip):
|
| | | PlayerControl.NotifyCode(curPlayer, "TaskRes")
|
| | | return
|
| | | |
| | | else:
|
| | | PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_774045")
|
| | | return
|
| | | |
| | | return
|
| | |
|
| | | #// A3 18 灵器突破 #tagCMLingQiEquipBreak
|