From 033a680f4c973fbac074a95152c6d313d4a71091 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 12 六月 2019 17:12:39 +0800 Subject: [PATCH] 7220 【后端】【2.0】灵器开发1.0版(增加灵器属性表,灵器战力由评分计算,评分由基础属性+灵器属性组成,原翅膀模块改为灵器模块) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerWing.py | 38 ++------------------------------------ 1 files changed, 2 insertions(+), 36 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerWing.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerWing.py index cc27958..ef916c3 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerWing.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerWing.py @@ -84,7 +84,7 @@ 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 @@ -278,36 +278,7 @@ # @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()) @@ -321,11 +292,6 @@ 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 -- Gitblit v1.8.0