| | |
| | | GameWorld.DebugLog("没有精炼值")
|
| | | return
|
| | | WingProgressUP(curWing, totalPoint, materialItemDict, curPlayer)
|
| | | CalcWingAttr(curPlayer)
|
| | | ChEquip.RefreshPlayerLingQiEquipAttr(curPlayer)
|
| | | PlayerControl.PlayerControl(curPlayer).RefreshPlayerAttrState()
|
| | | PlayerSuccess.DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_WingRefine, 1)
|
| | | return
|
| | |
| | | # @param curPlayer 玩家
|
| | | # @param allAttrList 属性列表
|
| | | # @return None
|
| | | def CalcWingAttr(curPlayer):
|
| | | |
| | | 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)
|
| | | return
|
| | | |
| | | if not ItemCommon.CheckItemCanUseByExpireTime(curWing):
|
| | | # 过期
|
| | | PlayerControl.SetCalcAttrListValue(curPlayer, ChConfig.Def_CalcAttrFunc_Wing, allAttrList)
|
| | | return False
|
| | | |
| | | # 物品表固定效果属性
|
| | | for effIndex in xrange(curWing.GetEffectCount()):
|
| | | curEff = curWing.GetEffectByIndex(effIndex)
|
| | | effID = curEff.GetEffectID()
|
| | | if effID == 0:
|
| | | continue
|
| | | PlayerControl.CalcAttrDict_Type(effID, curEff.GetEffectValue(0), allAttrList)
|
| | | #GameWorld.DebugLog("翅膀固定属性: %s" % allAttrList)
|
| | | def CalcWingAttrEx(curPlayer, curWing, allAttrList):
|
| | |
|
| | | # 精炼属性
|
| | | wingAttrIpyData = GetWingRefineAttrData(curWing.GetItemTypeID())
|
| | |
| | | for effID, value in fujiaValueDict.items():
|
| | | PlayerControl.CalcAttrDict_Type(effID, int(value * rate), allAttrList)
|
| | | #GameWorld.DebugLog(" 精炼属性: %s" % allAttrList)
|
| | | |
| | | # 传奇属性
|
| | | ChEquip.CalcAttr_LegendAttr(curPlayer, curWing, allAttrList)
|
| | | #GameWorld.DebugLog(" 传奇属性: %s" % allAttrList)
|
| | | PlayerControl.SetCalcAttrListValue(curPlayer, ChConfig.Def_CalcAttrFunc_Wing, allAttrList)
|
| | | return
|
| | |
|
| | |
|