From 4fe82776f183c8b42a48cccf24e09ca324a55078 Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期三, 05 六月 2019 14:14:56 +0800 Subject: [PATCH] 3951 【BUG】【2.0】骑宠争夺没有排名奖励 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGodWeapon.py | 21 ++++++--------------- 1 files changed, 6 insertions(+), 15 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGodWeapon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGodWeapon.py index 05c26ff..6010012 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGodWeapon.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGodWeapon.py @@ -119,12 +119,6 @@ PlayerControl.CalcAttrDict_Type(attrID, attrValueList[i], allAttrList) fightPowerEx += IpyGameDataPY.GetFuncEvalCfg('MagicExterior').get(str(gwType), 0) - #特效等级属性战力 - godWeaponEffectData = IpyGameDataPY.InterpolationSearch("GodWeaponEffect", "Level", attrLV, {"GWType":gwType}) - if godWeaponEffectData: - for attrID, attrValue in godWeaponEffectData.GetAttr().items(): - PlayerControl.CalcAttrDict_Type(attrID, attrValue, allAttrList) - fightPowerEx += godWeaponEffectData.GetFightPower() # 附加战力 @@ -209,9 +203,9 @@ #1.判断表中有没此类型,2.是否满级,3.判断是否有物品 attrLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_GodWeaponLV % weaponType) - if not attrLV and Def_GodWeaponType_SuperHit != weaponType: - GameWorld.DebugLog("神兵未解锁,无法升级!weaponType=%s,attrLV=%s" % (weaponType, attrLV)) - return + # if not attrLV and Def_GodWeaponType_SuperHit != weaponType: + # GameWorld.DebugLog("神兵未解锁,无法升级!weaponType=%s,attrLV=%s" % (weaponType, attrLV)) + # return 由配置表决定等级0是否可升级 beforeAttrLV = attrLV # 用于提示 godWeaponData = IpyGameDataPY.GetIpyGameData('GodWeapon', weaponType, attrLV) @@ -304,6 +298,7 @@ RefreshGodWeaponAttr(curPlayer) #x神器达到X级成就 PlayerSuccess.UptateSuccessProgress(curPlayer, ShareDefine.SuccType_GodWeapon, attrLV, [weaponType]) + EventShell.EventRespons_GodWeaponUp(curPlayer, weaponType, attrLV) if beforeAttrLV == 0: # 解封通知 sysMark = IpyGameDataPY.GetFuncEvalCfg('GodWeaponSys', 1, {}).get(weaponType, 'GetGodWeapon') @@ -318,17 +313,13 @@ # PlayerControl.WorldNotify(0, 'GodWeaponLv', [curPlayer.GetName(), weaponType, notifyLV]) #======================================================================= - # 神兵特效激活广播 - godWeaponEffectData = IpyGameDataPY.GetIpyGameDataByCondition('GodWeaponEffect', {'GWType':weaponType, "Level":attrLV}, False, False) - if godWeaponEffectData: - PlayerControl.WorldNotify(0, godWeaponEffectData.GetNotifyCode(), [curPlayer.GetName(), attrLV]) - + totalExp = godWeaponData.GetExp() Sync_GodWeaponLVInfo(curPlayer, weaponType) #任务 - EventShell.EventRespons_PlusGodWeapon(curPlayer) + EventShell.EventRespons_PlusGodWeapon(curPlayer, weaponType) return #神兵升级触发其他功能:技能 -- Gitblit v1.8.0