| | |
| | | # @remarks
|
| | | def CheckPlayerUseItemSelf(curPlayer, curItem, tick):
|
| | | #----------------------检查非法物品属性
|
| | | if not ItemCommon.CheckItemCanUse(curItem) or ItemControler.GetIsAuctionItem(curItem):
|
| | | if not ItemCommon.CheckItemCanUse(curItem):
|
| | | PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_644055")
|
| | | return False
|
| | |
|
| | |
| | | curItem = curPack.GetAt(itemIndex)
|
| | |
|
| | | #物品不存在
|
| | | if not ItemCommon.CheckItemCanUse(curItem) or ItemControler.GetIsAuctionItem(curItem):
|
| | | if not ItemCommon.CheckItemCanUse(curItem):
|
| | | return
|
| | |
|
| | | #检查物品可否丢弃
|
| | |
| | |
|
| | | if not ItemCommon.CheckItemCanUse(curItem):
|
| | | GameWorld.DebugLog(" 物品无法使用!")
|
| | | return
|
| | | |
| | | # 使用拍品
|
| | | if ItemControler.GetIsAuctionItem(curItem):
|
| | | GameWorld.DebugLog("玩家使用拍品: itemID=%s" % (curItem.GetItemTypeID()), curPlayer.GetPlayerID())
|
| | | ItemControler.SetIsAuctionItem(curItem, False, curPlayer)
|
| | | return
|
| | |
|
| | | if useCnt <= 0:
|