|  |  |  | 
|---|
|  |  |  | ("BYTE", "NeedAlchemyLV", 0), | 
|---|
|  |  |  | ("DWORD", "Weight", 0), | 
|---|
|  |  |  | ), | 
|---|
|  |  |  |  | 
|---|
|  |  |  | "FairyAdventures":( | 
|---|
|  |  |  | ("WORD", "ID", 1), | 
|---|
|  |  |  | ("DWORD", "OpenServerDay", 0), | 
|---|
|  |  |  | ("BYTE", "EventID", 0), | 
|---|
|  |  |  | ("list", "Condition", 0), | 
|---|
|  |  |  | ("list", "GearAward", 0), | 
|---|
|  |  |  | ("list", "BasicAward", 0), | 
|---|
|  |  |  | ), | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | def GetNeedAlchemyLV(self): return self.NeedAlchemyLV # 出现的炼丹等级要求 | 
|---|
|  |  |  | def GetWeight(self): return self.Weight # 权重 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | # 缥缈奇遇表 | 
|---|
|  |  |  | class IPY_FairyAdventures(): | 
|---|
|  |  |  |  | 
|---|
|  |  |  | def __init__(self): | 
|---|
|  |  |  | self.ID = 0 | 
|---|
|  |  |  | self.OpenServerDay = 0 | 
|---|
|  |  |  | self.EventID = 0 | 
|---|
|  |  |  | self.Condition = [] | 
|---|
|  |  |  | self.GearAward = [] | 
|---|
|  |  |  | self.BasicAward = [] | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | def GetID(self): return self.ID # ΨһID | 
|---|
|  |  |  | def GetOpenServerDay(self): return self.OpenServerDay # 开服天 | 
|---|
|  |  |  | def GetEventID(self): return self.EventID # 事件编号 | 
|---|
|  |  |  | def GetCondition(self): return self.Condition # 条件 | 
|---|
|  |  |  | def GetGearAward(self): return self.GearAward # 档位奖励 | 
|---|
|  |  |  | def GetBasicAward(self): return self.BasicAward # 保底奖励 | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | def Log(msg, playerID=0, par=0): | 
|---|
|  |  |  | LogUI.Msg("%s\t%s\t%s" % (par, playerID, msg)) | 
|---|
|  |  |  | 
|---|
|  |  |  | self.ipyHorsePetBossAwardLen = len(self.ipyHorsePetBossAwardCache) | 
|---|
|  |  |  | self.ipyFairyDomainCache = self.__LoadFileData("FairyDomain", IPY_FairyDomain) | 
|---|
|  |  |  | self.ipyFairyDomainLen = len(self.ipyFairyDomainCache) | 
|---|
|  |  |  | self.ipyFairyAdventuresCache = self.__LoadFileData("FairyAdventures", IPY_FairyAdventures) | 
|---|
|  |  |  | self.ipyFairyAdventuresLen = len(self.ipyFairyAdventuresCache) | 
|---|
|  |  |  | Log("IPY_FuncConfig count=%s" % len(self.ipyFuncConfigDict)) | 
|---|
|  |  |  | Log("IPY_DataMgr InitOK!") | 
|---|
|  |  |  | return | 
|---|
|  |  |  | 
|---|
|  |  |  | def GetHorsePetBossAwardByIndex(self, index): return self.ipyHorsePetBossAwardCache[index] | 
|---|
|  |  |  | def GetFairyDomainCount(self): return self.ipyFairyDomainLen | 
|---|
|  |  |  | def GetFairyDomainByIndex(self, index): return self.ipyFairyDomainCache[index] | 
|---|
|  |  |  | def GetFairyAdventuresCount(self): return self.ipyFairyAdventuresLen | 
|---|
|  |  |  | def GetFairyAdventuresByIndex(self, index): return self.ipyFairyAdventuresCache[index] | 
|---|
|  |  |  |  | 
|---|
|  |  |  | IPYData = IPY_DataMgr() | 
|---|
|  |  |  | def IPY_Data(): return IPYData | 
|---|