| | |
| | | return incRateItemCostList, expireTime
|
| | |
|
| | | def __CheckItemCanUseCompound(playerID, index, curItem):
|
| | | if not ItemCommon.CheckItemCanUse(curItem):
|
| | | if not ItemCommon.CheckItemCanUse(curItem) or ItemControler.GetIsAuctionItem(curItem):
|
| | | GameWorld.DebugLog("该物品不可使用!无法合成! index=%s" % (index), playerID)
|
| | | return
|
| | |
|
| | |
| | | return
|
| | | curEquip = itemPack.GetAt(decompoundItemIndex)
|
| | |
|
| | | if not ItemCommon.CheckItemCanUse(curEquip):
|
| | | if not ItemCommon.CheckItemCanUse(curEquip) or ItemControler.GetIsAuctionItem(curEquip):
|
| | | return
|
| | |
|
| | | attrCount = curEquip.GetUserAttrCount(ShareDefine.Def_IudetItemDecompound)
|
| | |
| | |
|
| | | # 返还物品
|
| | | for itemID, itemCount, isBind in giveItemList:
|
| | | ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, isBind, [IPY_GameWorld.rptItem], |
| | | ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, 0, [IPY_GameWorld.rptItem], |
| | | event=["ItemDecompound", True, {"decompoundItemNoteDict":decompoundItemNoteDict}])
|
| | |
|
| | | GameWorld.Log("拆解物品成功: decompoundItemNoteDict=%s" % str(decompoundItemNoteDict), playerID)
|