| | |
| | | if baseAttrIDList and baseAttrValueList and len(baseAttrIDList) == len(baseAttrValueList):
|
| | | for i, attrID in enumerate(baseAttrIDList):
|
| | | CalcAttrDict_Type(attrID, baseAttrValueList[i], allAttrList)
|
| | | GameWorld.DebugLog("初始加属性: %s" % allAttrList)
|
| | | #GameWorld.DebugLog("初始加属性: %s" % allAttrList)
|
| | | |
| | | # 等级成长属性
|
| | | LV = curPlayer.GetLV()
|
| | | lvAttrDict = IpyGameDataPY.GetFuncEvalCfg("LVUPAttr%s" % job, 1)
|
| | | for lvAttrID, formula in lvAttrDict.items():
|
| | | calcValue = eval(FormulaControl.GetCompileFormula("LVUPAttr%s_%s" % (job, lvAttrID), formula))
|
| | | CalcAttrDict_Type(lvAttrID, calcValue, allAttrList)
|
| | | #GameWorld.DebugLog(" lvAttrID=%s,calcValue=%s" % (lvAttrID, calcValue))
|
| | | #GameWorld.DebugLog("等级加属性: %s" % allAttrList)
|
| | |
|
| | | # 属性点属性
|
| | | hadRefreshAttr = curPlayer.GetDictByKey(ChConfig.Def_Player_HadRefreshAttr) # 本地图是否刷新过属性
|