|  |  |  | 
|---|
|  |  |  | ("WORD", "SuccessRateMax", 0), | 
|---|
|  |  |  | ("BYTE", "AddonsCountMax", 0), | 
|---|
|  |  |  | ("char", "SysMark", 0), | 
|---|
|  |  |  | ("BYTE", "SysMarkParamType", 0), | 
|---|
|  |  |  | ), | 
|---|
|  |  |  |  | 
|---|
|  |  |  | "ItemPlus":( | 
|---|
|  |  |  | 
|---|
|  |  |  | self.SuccessRate = 0 | 
|---|
|  |  |  | self.SuccessRateMax = 0 | 
|---|
|  |  |  | self.AddonsCountMax = 0 | 
|---|
|  |  |  | self.SysMark = "" | 
|---|
|  |  |  | self.SysMark = "" | 
|---|
|  |  |  | self.SysMarkParamType = 0 | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | def GetID(self): return self.ID # 合成配置编号ID | 
|---|
|  |  |  | 
|---|
|  |  |  | def GetSuccessRate(self): return self.SuccessRate #  成功率万分率 | 
|---|
|  |  |  | def GetSuccessRateMax(self): return self.SuccessRateMax #  最大成功率万分率 | 
|---|
|  |  |  | def GetAddonsCountMax(self): return self.AddonsCountMax # 最大可附加材料数, 增加概率用, 非必须, 0代表不可附加材料 | 
|---|
|  |  |  | def GetSysMark(self): return self.SysMark # 提示mark | 
|---|
|  |  |  | def GetSysMark(self): return self.SysMark # 提示mark | 
|---|
|  |  |  | def GetSysMarkParamType(self): return self.SysMarkParamType # 系统提示参数组合类型 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | # 物品强化效果表 | 
|---|
|  |  |  | class IPY_ItemPlus(): | 
|---|
|  |  |  | 
|---|
|  |  |  | 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 | 
|---|