| | |
| | | # @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)
|