From 6545e5e45d8e523ebe7dbfe4719ba0f08007edeb Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期一, 11 三月 2019 10:11:01 +0800 Subject: [PATCH] 6312 【后端】【2.0】删除神兵特效 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py | 29 ----------------------------- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGodWeapon.py | 12 +----------- PySysDB/PySysDBPY.h | 11 ----------- 3 files changed, 1 insertions(+), 51 deletions(-) diff --git a/PySysDB/PySysDBPY.h b/PySysDB/PySysDBPY.h index c4308b7..9a49bc0 100644 --- a/PySysDB/PySysDBPY.h +++ b/PySysDB/PySysDBPY.h @@ -1478,17 +1478,6 @@ }; -//神兵特效表 - -struct tagGodWeaponEffect -{ - BYTE GWType; //神兵类型 - WORD Level; //神兵等级 - char NotifyCode; //广播 - DWORD FightPower; //增加战力 - dict Attr; //属性加成 -}; - //跨服竞技场段位表 struct tagCrossRealmPKDan diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py index 2746289..d157c2e 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py @@ -1165,14 +1165,6 @@ ("list", "ItemList", 0), ), - "GodWeaponEffect":( - ("BYTE", "GWType", 0), - ("WORD", "Level", 0), - ("char", "NotifyCode", 0), - ("DWORD", "FightPower", 0), - ("dict", "Attr", 0), - ), - "CrossRealmPKDan":( ("BYTE", "DanLV", 1), ("WORD", "LVUpScore", 0), @@ -3795,23 +3787,6 @@ def GetLVLimit(self): return self.LVLimit # 等级范围 def GetItemList(self): return self.ItemList # 奖励 -# 神兵特效表 -class IPY_GodWeaponEffect(): - - def __init__(self): - self.GWType = 0 - self.Level = 0 - self.NotifyCode = "" - self.FightPower = 0 - self.Attr = {} - return - - def GetGWType(self): return self.GWType # 神兵类型 - def GetLevel(self): return self.Level # 神兵等级 - def GetNotifyCode(self): return self.NotifyCode # 广播 - def GetFightPower(self): return self.FightPower # 增加战力 - def GetAttr(self): return self.Attr # 属性加成 - # 跨服竞技场段位表 class IPY_CrossRealmPKDan(): @@ -4575,8 +4550,6 @@ self.ipyMagicWeaponFBLen = len(self.ipyMagicWeaponFBCache) self.ipyIceLodeStarAwardCache = self.__LoadFileData("IceLodeStarAward", IPY_IceLodeStarAward) self.ipyIceLodeStarAwardLen = len(self.ipyIceLodeStarAwardCache) - self.ipyGodWeaponEffectCache = self.__LoadFileData("GodWeaponEffect", IPY_GodWeaponEffect) - self.ipyGodWeaponEffectLen = len(self.ipyGodWeaponEffectCache) self.ipyCrossRealmPKDanCache = self.__LoadFileData("CrossRealmPKDan", IPY_CrossRealmPKDan) self.ipyCrossRealmPKDanLen = len(self.ipyCrossRealmPKDanCache) self.ipyCrossRealmPKDanAwardCache = self.__LoadFileData("CrossRealmPKDanAward", IPY_CrossRealmPKDanAward) @@ -5023,8 +4996,6 @@ def GetMagicWeaponFBByIndex(self, index): return self.ipyMagicWeaponFBCache[index] def GetIceLodeStarAwardCount(self): return self.ipyIceLodeStarAwardLen def GetIceLodeStarAwardByIndex(self, index): return self.ipyIceLodeStarAwardCache[index] - def GetGodWeaponEffectCount(self): return self.ipyGodWeaponEffectLen - def GetGodWeaponEffectByIndex(self, index): return self.ipyGodWeaponEffectCache[index] def GetCrossRealmPKDanCount(self): return self.ipyCrossRealmPKDanLen def GetCrossRealmPKDanByIndex(self, index): return self.ipyCrossRealmPKDanCache[index] def GetCrossRealmPKDanAwardCount(self): return self.ipyCrossRealmPKDanAwardLen 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..6182d28 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() # 附加战力 @@ -318,11 +312,7 @@ # 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() -- Gitblit v1.8.0