From 498a2f1f681cf7519532da0deff6ab02dd13564b Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期三, 09 一月 2019 11:37:03 +0800 Subject: [PATCH] 5768 【后端】【1.5】新增8-14天活动功能(制作成7日运营活动的模板) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py | 70 +++++++++++++++++++++++++++++++++++ 1 files changed, 70 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 2825e23..1fe83aa 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py @@ -1191,6 +1191,26 @@ ("BYTE", "NeedExp", 0), ("dict", "AddAttr", 0), ), + + "ActWeekParty":( + ("DWORD", "CfgID", 1), + ("char", "StartDate", 0), + ("char", "EndDate", 0), + ("BYTE", "IsDayReset", 0), + ("BYTE", "ResetType", 0), + ("WORD", "LVLimit", 0), + ("list", "TemplateID", 0), + ("dict", "PointAward", 0), + ), + + "WeekParty":( + ("BYTE", "TemplateID", 1), + ("BYTE", "ActionType", 0), + ("DWORD", "TotalTimes", 0), + ("WORD", "SingleTimes", 0), + ("list", "Reward", 0), + ("WORD", "Point", 0), + ), } @@ -3626,6 +3646,48 @@ def GetLV(self): return self.LV # 等级 def GetNeedExp(self): return self.NeedExp # 升级所需经验 def GetAddAttr(self): return self.AddAttr # 属性 + +# 周狂欢活动时间表 +class IPY_ActWeekParty(): + + def __init__(self): + self.CfgID = 0 + self.StartDate = "" + self.EndDate = "" + self.IsDayReset = 0 + self.ResetType = 0 + self.LVLimit = 0 + self.TemplateID = [] + self.PointAward = {} + return + + def GetCfgID(self): return self.CfgID # 配置ID + def GetStartDate(self): return self.StartDate # 开启日期 + def GetEndDate(self): return self.EndDate # 结束日期 + def GetIsDayReset(self): return self.IsDayReset # 是否每天重置 + def GetResetType(self): return self.ResetType # 重置类型,0-0点重置;1-5点重置 + def GetLVLimit(self): return self.LVLimit # 限制等级 + def GetTemplateID(self): return self.TemplateID # 模板编号 + def GetPointAward(self): return self.PointAward # 总积分奖励 + +# 周狂欢表 +class IPY_WeekParty(): + + def __init__(self): + self.TemplateID = 0 + self.ActionType = 0 + self.TotalTimes = 0 + self.SingleTimes = 0 + self.Reward = [] + self.Point = 0 + return + + def GetTemplateID(self): return self.TemplateID # 模板ID + def GetActionType(self): return self.ActionType # 活动条目ID + def GetTotalTimes(self): return self.TotalTimes # 可完成的总次数,0表示不限次数 + def GetSingleTimes(self): return self.SingleTimes # 单次领奖需要的次数 + def GetReward(self): return self.Reward # 奖励物品 + def GetPoint(self): return self.Point # 积分 def Log(msg, playerID=0, par=0): @@ -3877,6 +3939,10 @@ self.ipyCoatLen = len(self.ipyCoatCache) self.ipyCoatChestUpCache = self.__LoadFileData("CoatChestUp", IPY_CoatChestUp) self.ipyCoatChestUpLen = len(self.ipyCoatChestUpCache) + self.ipyActWeekPartyCache = self.__LoadFileData("ActWeekParty", IPY_ActWeekParty) + self.ipyActWeekPartyLen = len(self.ipyActWeekPartyCache) + self.ipyWeekPartyCache = self.__LoadFileData("WeekParty", IPY_WeekParty) + self.ipyWeekPartyLen = len(self.ipyWeekPartyCache) Log("IPY_FuncConfig count=%s" % len(self.ipyFuncConfigDict)) Log("IPY_DataMgr InitOK!") return @@ -4269,6 +4335,10 @@ def GetCoatByIndex(self, index): return self.ipyCoatCache[index] def GetCoatChestUpCount(self): return self.ipyCoatChestUpLen def GetCoatChestUpByIndex(self, index): return self.ipyCoatChestUpCache[index] + def GetActWeekPartyCount(self): return self.ipyActWeekPartyLen + def GetActWeekPartyByIndex(self, index): return self.ipyActWeekPartyCache[index] + def GetWeekPartyCount(self): return self.ipyWeekPartyLen + def GetWeekPartyByIndex(self, index): return self.ipyWeekPartyCache[index] IPYData = IPY_DataMgr() def IPY_Data(): return IPYData -- Gitblit v1.8.0