xdh
2019-06-10 c3bb4072a13fc6e9541c971dec3f2865184136cd
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerWing.py
@@ -23,6 +23,7 @@
import ItemCommon
import GameFuncComm
import PlayerSuccess
import ItemControler
import ChEquip
import random
@@ -107,7 +108,7 @@
    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()
@@ -278,10 +279,17 @@
#  @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)