| | |
| | | ("BYTE", "EliteCnt", 0),
|
| | | ("DWORD", "NeedMoney", 0),
|
| | | ("DWORD", "WeekMissionMoneyMax", 0),
|
| | | ("BYTE", "BossFBCnt", 0),
|
| | | ),
|
| | |
|
| | | "MarketQuery":(
|
| | |
| | | self.DeputyLeaderCnt = 0
|
| | | self.EliteCnt = 0
|
| | | self.NeedMoney = 0
|
| | | self.WeekMissionMoneyMax = 0 |
| | | self.WeekMissionMoneyMax = 0
|
| | | self.BossFBCnt = 0 |
| | | return |
| | | |
| | | def GetFamilyLV(self): return self.FamilyLV # 仙盟等级
|
| | |
| | | def GetDeputyLeaderCnt(self): return self.DeputyLeaderCnt # 副盟主数量
|
| | | def GetEliteCnt(self): return self.EliteCnt # 精英数量
|
| | | def GetNeedMoney(self): return self.NeedMoney # 升级需要资金
|
| | | def GetWeekMissionMoneyMax(self): return self.WeekMissionMoneyMax # 每周任务最大可获得仙盟资金 |
| | | def GetWeekMissionMoneyMax(self): return self.WeekMissionMoneyMax # 每周任务最大可获得仙盟资金
|
| | | def GetBossFBCnt(self): return self.BossFBCnt # BOSS副本次数 |
| | | |
| | | # 集市查询表 |
| | | class IPY_MarketQuery(): |
| | |
| | | for i, strValue in enumerate(rowList):
|
| | | if i == 0:
|
| | | continue
|
| | | fieldName = fieldList[i][1]
|
| | | strValue = strValue.lstrip().rstrip()
|
| | | if strValue.isdigit():
|
| | | configValue = int(strValue)
|
| | | elif (strValue.startswith("{") and strValue.endswith("}")) \
|
| | | or (strValue.startswith("[") and strValue.endswith("]")) \
|
| | | or (strValue.startswith("(") and strValue.endswith(")")):
|
| | | configValue = eval(strValue)
|
| | | elif "_" in strValue and type(self.__StrToDict(strValue)) == dict:
|
| | | configValue = self.__StrToDict(strValue)
|
| | | elif ChConfig.Def_Str_Montant in strValue:
|
| | | configValue = eval("(%s,)" % strValue.replace(ChConfig.Def_Str_Montant, ","))
|
| | | elif strValue in ["-", ""]:
|
| | | configValue = ""
|
| | | else:
|
| | | configValue = self.__ToFloat(strValue)
|
| | | try:
|
| | | fieldName = fieldList[i][1]
|
| | | strValue = strValue.lstrip().rstrip()
|
| | | if strValue.isdigit():
|
| | | configValue = int(strValue)
|
| | | elif (strValue.startswith("{") and strValue.endswith("}")) \
|
| | | or (strValue.startswith("[") and strValue.endswith("]")) \
|
| | | or (strValue.startswith("(") and strValue.endswith(")")):
|
| | | configValue = eval(strValue)
|
| | | elif "_" in strValue and type(self.__StrToDict(strValue)) == dict:
|
| | | configValue = self.__StrToDict(strValue)
|
| | | elif ChConfig.Def_Str_Montant in strValue:
|
| | | configValue = eval("(%s,)" % strValue.replace(ChConfig.Def_Str_Montant, ","))
|
| | | elif strValue in ["-", ""]:
|
| | | configValue = ""
|
| | | else:
|
| | | configValue = self.__ToFloat(strValue)
|
| | | except BaseException:
|
| | | ErrLog("SetIpyDataError: tableName=%s,key=%s,i=%s,value=%s" % ("FuncConfig", key, i, strValue))
|
| | | raise
|
| | | setattr(funcConfigObj, fieldName, configValue)
|
| | | self.ipyFuncConfigDict[key] = funcConfigObj
|
| | | return
|