From c9c2da4ffb90fbe66d885125fdf948f064ffe0ab Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期二, 21 八月 2018 15:36:27 +0800 Subject: [PATCH] fix:离线挂时间没有正常运作或者维护期间程序未运行,则在上线时不是在离线死亡的情况下,弥补以当前经验倍率错过的离线收益,扣除对应离线时间,不扣除经验BUFF时间 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py index 9d231c9..4d37b82 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py @@ -950,6 +950,14 @@ ("DWORD", "NeedPoint", 0), ("dict", "Award", 0), ), + + "MapEventPoint":( + ("DWORD", "MapID", 1), + ("DWORD", "NPCID", 1), + ("WORD", "LowLV", 0), + ("WORD", "HighestLV", 0), + ("DWORD", "Defense", 0), + ), } @@ -2878,6 +2886,23 @@ def GetIndex(self): return self.Index # 索引 def GetNeedPoint(self): return self.NeedPoint # 需要点数 def GetAward(self): return self.Award # 奖励 {"职业":[[物品ID,个数,是否绑定],...], ...} + +# 地图NPC配置表-挂机点 +class IPY_MapEventPoint(): + + def __init__(self): + self.MapID = 0 + self.NPCID = 0 + self.LowLV = 0 + self.HighestLV = 0 + self.Defense = 0 + return + + def GetMapID(self): return self.MapID + def GetNPCID(self): return self.NPCID + def GetLowLV(self): return self.LowLV # 推荐最低等级 + def GetHighestLV(self): return self.HighestLV # 推荐最高等级 + def GetDefense(self): return self.Defense # 推荐防御 def Log(msg, playerID=0, par=0): @@ -3079,6 +3104,8 @@ self.ipyAllPeoplePartyLen = len(self.ipyAllPeoplePartyCache) self.ipyAllPeoplePartyAwardCache = self.__LoadFileData("AllPeoplePartyAward", IPY_AllPeoplePartyAward) self.ipyAllPeoplePartyAwardLen = len(self.ipyAllPeoplePartyAwardCache) + self.ipyMapEventPointCache = self.__LoadFileData("MapEventPoint", IPY_MapEventPoint) + self.ipyMapEventPointLen = len(self.ipyMapEventPointCache) Log("IPY_FuncConfig count=%s" % len(self.ipyFuncConfigDict)) Log("IPY_DataMgr InitOK!") return @@ -3417,6 +3444,8 @@ def GetAllPeoplePartyByIndex(self, index): return self.ipyAllPeoplePartyCache[index] def GetAllPeoplePartyAwardCount(self): return self.ipyAllPeoplePartyAwardLen def GetAllPeoplePartyAwardByIndex(self, index): return self.ipyAllPeoplePartyAwardCache[index] + def GetMapEventPointCount(self): return self.ipyMapEventPointLen + def GetMapEventPointByIndex(self, index): return self.ipyMapEventPointCache[index] IPYData = IPY_DataMgr() def IPY_Data(): return IPYData -- Gitblit v1.8.0