From 1e03fac0bcbd9c57ae5da827cb1ea3294c606781 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 22 九月 2023 13:22:07 +0800 Subject: [PATCH] 9936 【BT0.1】【主干】人族法宝(任务 进度)给予奖励 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py | 20 ++++++++++++++++++++ 1 files changed, 20 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 703f7f3..b290b63 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py @@ -2112,6 +2112,11 @@ ("float", "NeedRMB", 0), ("dict", "Reward", 0), ), + + "CustomAward":( + ("BYTE", "AwardID", 1), + ("list", "AwardItemList", 0), + ), } @@ -6491,6 +6496,17 @@ def GetID(self): return self.ID # id def GetNeedRMB(self): return self.NeedRMB # 所需充值元 def GetReward(self): return self.Reward # 职业对应的奖励内容,每个职业4组数据,物品ID和物品数量(1.枪豪2.道师3.剑修) + +# 奖励表 +class IPY_CustomAward(): + + def __init__(self): + self.AwardID = 0 + self.AwardItemList = [] + return + + def GetAwardID(self): return self.AwardID # 奖励ID 1~n + def GetAwardItemList(self): return self.AwardItemList # 物品奖励[[物品ID,个数,是否拍品], ...] def Log(msg, playerID=0, par=0): @@ -6946,6 +6962,8 @@ self.ipyFuncSysPrivilegeLen = len(self.ipyFuncSysPrivilegeCache) self.ipyHistoryRechargeAwardCache = self.__LoadFileData("HistoryRechargeAward", IPY_HistoryRechargeAward) self.ipyHistoryRechargeAwardLen = len(self.ipyHistoryRechargeAwardCache) + self.ipyCustomAwardCache = self.__LoadFileData("CustomAward", IPY_CustomAward) + self.ipyCustomAwardLen = len(self.ipyCustomAwardCache) Log("IPY_FuncConfig count=%s" % len(self.ipyFuncConfigDict)) Log("IPY_DataMgr InitOK!") return @@ -7542,6 +7560,8 @@ def GetFuncSysPrivilegeByIndex(self, index): return self.ipyFuncSysPrivilegeCache[index] def GetHistoryRechargeAwardCount(self): return self.ipyHistoryRechargeAwardLen def GetHistoryRechargeAwardByIndex(self, index): return self.ipyHistoryRechargeAwardCache[index] + def GetCustomAwardCount(self): return self.ipyCustomAwardLen + def GetCustomAwardByIndex(self, index): return self.ipyCustomAwardCache[index] IPYData = IPY_DataMgr() def IPY_Data(): return IPYData -- Gitblit v1.8.0