hxp
2023-09-22 1e03fac0bcbd9c57ae5da827cb1ea3294c606781
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