| | |
| | | allAttrList = [{} for i in range(4)]
|
| | | allAttrListStar = [{} for _ in range(4)]
|
| | |
|
| | | initFPAdd = 0 #初始战力
|
| | | dienstgradManager = curPlayer.GetDienstgradManager()
|
| | | gradCnt = dienstgradManager.GetCount()
|
| | | for i in xrange(gradCnt):
|
| | |
| | | if curDienstgradData == None:
|
| | | continue
|
| | |
|
| | | initFPAdd += curDienstgradData.GetInitFightPower()
|
| | | attrTypeList = curDienstgradData.GetLightType()
|
| | | attrValueList = curDienstgradData.GetLightAttribute()
|
| | |
|
| | |
| | | PlayerControl.CalcAttrDict_Type(attrID, attrValue, allAttrListStar)
|
| | |
|
| | | # 保存计算值
|
| | | curPlayer.SetDict(ChConfig.Def_PlayerKey_MFPEx % ShareDefine.Def_MFPType_Dienstgrad, initFPAdd)
|
| | | PlayerControl.SetCalcAttrListValue(curPlayer, ChConfig.Def_CalcAttrFunc_Dienstgrad, allAttrList)
|
| | | PlayerControl.SetCalcAttrListValue(curPlayer, ChConfig.Def_CalcAttrFunc_TitleStar, allAttrListStar)
|
| | | return
|