| | |
| | | import ItemCommon
|
| | | import GameFuncComm
|
| | | import PlayerSuccess
|
| | | import ItemControler
|
| | | import ChEquip
|
| | |
|
| | | import random
|
| | |
| | | wingClassLV = ItemCommon.GetItemClassLV(curWing)
|
| | | for index in materialMessageList:
|
| | | curItem = itemPack.GetAt(index)
|
| | | if not ItemCommon.CheckItemCanUse(curItem):
|
| | | if not ItemCommon.CheckItemCanUse(curItem) or ItemControler.GetIsAuctionItem(curItem):
|
| | | GameWorld.DebugLog("这个格子没有合法材料,index=%s" % index)
|
| | | continue
|
| | | curItemID = curItem.GetItemTypeID()
|
| | |
| | | # @param allAttrList 属性列表
|
| | | # @return None
|
| | | def CalcWingAttr(curPlayer):
|
| | | allAttrList = [{} for _ in range(4)]
|
| | | equipPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptEquip)
|
| | | curWing = equipPack.GetAt(ShareDefine.retWing)
|
| | |
|
| | | classLV = 0
|
| | | equipPlace = ShareDefine.retWing
|
| | | allAttrList = [{} for _ in range(4)]
|
| | | |
| | | curWing = None
|
| | | equipPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptEquip)
|
| | | ipyData = IpyGameDataPY.GetIpyGameData('EquipPlaceIndexMap', classLV, equipPlace)
|
| | | if ipyData:
|
| | | curWing = equipPack.GetAt(ipyData.GetGridIndex())
|
| | | |
| | | if not ItemCommon.CheckItemCanUse(curWing):
|
| | | #GameWorld.DebugLog("没有穿戴翅膀!")
|
| | | PlayerControl.SetCalcAttrListValue(curPlayer, ChConfig.Def_CalcAttrFunc_Wing, allAttrList)
|