| | |
| | | BYTE _AttrID; //属性ID
|
| | | dict AddAttrInfoPerPoint; //每点增加属性信息 {"职业":[[每X点,属性ID,值], ...], ..}
|
| | | BYTE FightPowerPerPoint; //每点附加战斗力
|
| | | dict PointQualityAttrIDDict; //点数品质进阶增加属性ID, 根据职业区分
|
| | | dict PointQualityAttrValueDict; //点数品质进阶增加属性值列表, 根据职业区分
|
| | | dict PointQualityAttrDict; //点数品质进阶增加属性, {职业:{属性ID:[阶段属性,..],..},..}
|
| | | list PointQualityIntervalList; //点数品质进阶属性点区间列表
|
| | | };
|
| | |
|
| | |
| | | ("BYTE", "AttrID", 1),
|
| | | ("dict", "AddAttrInfoPerPoint", 0),
|
| | | ("BYTE", "FightPowerPerPoint", 0),
|
| | | ("dict", "PointQualityAttrIDDict", 0),
|
| | | ("dict", "PointQualityAttrValueDict", 0),
|
| | | ("dict", "PointQualityAttrDict", 0),
|
| | | ("list", "PointQualityIntervalList", 0),
|
| | | ),
|
| | |
|
| | |
| | | self.AttrID = 0
|
| | | self.AddAttrInfoPerPoint = {}
|
| | | self.FightPowerPerPoint = 0
|
| | | self.PointQualityAttrIDDict = {}
|
| | | self.PointQualityAttrValueDict = {}
|
| | | self.PointQualityAttrDict = {}
|
| | | self.PointQualityIntervalList = [] |
| | | return |
| | | |
| | | def GetAttrID(self): return self.AttrID # 属性ID
|
| | | def GetAddAttrInfoPerPoint(self): return self.AddAttrInfoPerPoint # 每点增加属性信息 {"职业":[[每X点,属性ID,值], ...], ..}
|
| | | def GetFightPowerPerPoint(self): return self.FightPowerPerPoint # 每点附加战斗力
|
| | | def GetPointQualityAttrIDDict(self): return self.PointQualityAttrIDDict # 点数品质进阶增加属性ID, 根据职业区分
|
| | | def GetPointQualityAttrValueDict(self): return self.PointQualityAttrValueDict # 点数品质进阶增加属性值列表, 根据职业区分
|
| | | def GetPointQualityAttrDict(self): return self.PointQualityAttrDict # 点数品质进阶增加属性, {职业:{属性ID:[阶段属性,..],..},..}
|
| | | def GetPointQualityIntervalList(self): return self.PointQualityIntervalList # 点数品质进阶属性点区间列表 |
| | | |
| | | # 境界表 |
| | |
| | | pointFuncInfo[1](curPlayer, curPQLV)
|
| | | if not curPQLV:
|
| | | continue
|
| | | pqAttrIDDict = ipyData.GetPointQualityAttrIDDict()
|
| | | pqAttrID = pqAttrIDDict[curPlayer.GetJob()]
|
| | | pqAttrValueDict = ipyData.GetPointQualityAttrValueDict()
|
| | | pqAttrValueList = pqAttrValueDict[str(curPlayer.GetJob())]
|
| | | pqAttrValue = 0 if curPQLV > len(pqAttrValueList) else pqAttrValueList[curPQLV - 1]
|
| | | CalcAttrDict_Type(pqAttrID, pqAttrValue, lingGenQualityAttrList)
|
| | | #GameWorld.DebugLog(" 属性点(%s)品阶等级属性: befPQLV=%s,curPQLV=%s,pqAttrID=%s,pqAttrValue=%s" % (pointAttrID, befPQLV, curPQLV, pqAttrID, pqAttrValue))
|
| | | pqAttrInfoDict = ipyData.GetPointQualityAttrDict().get(str(curPlayer.GetJob()), {})
|
| | | for pqAttrID, pqAttrValueList in pqAttrInfoDict.items():
|
| | | pqAttrValue = 0 if curPQLV > len(pqAttrValueList) else pqAttrValueList[curPQLV - 1]
|
| | | CalcAttrDict_Type(int(pqAttrID), pqAttrValue, lingGenQualityAttrList)
|
| | | #GameWorld.DebugLog(" 属性点(%s)品阶等级属性: befPQLV=%s,curPQLV=%s,pqAttrInfoDict=%s" % (pointAttrID, befPQLV, curPQLV, pqAttrInfoDict))
|
| | | if hadRefreshAttr and befPQLV < curPQLV:
|
| | | EventShell.EventRespons_LingGenQualityUP(curPlayer, pointAttrID, curPQLV)
|
| | |
|