| | |
| | | horseSpeed = 0 # 坐骑功能增加的速度值,骑乘时才有效果
|
| | | horseLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_HorserLV)
|
| | | # 等阶培养属性
|
| | | totalItemCount = 0
|
| | | #totalItemCount = 0
|
| | | ipyDataMgr = IpyGameDataPY.IPY_Data()
|
| | | for index in xrange(ipyDataMgr.GetHorseLVUpCount()):
|
| | | horseIpyData = ipyDataMgr.GetHorseLVUpByIndex(index)
|
| | |
| | | if dataHorseLV > horseLV:
|
| | | break
|
| | | elif dataHorseLV == horseLV:
|
| | | totalItemCount += curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_HorserEatItemCount)
|
| | | upItemCount = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_HorserEatItemCount)
|
| | | else:
|
| | | totalItemCount += horseIpyData.GetNeedEatCount()
|
| | | upItemCount = horseIpyData.GetNeedEatCount()
|
| | |
|
| | | # 等阶额外属性
|
| | | lvAttrTypeList = horseIpyData.GetLVAttrType()
|
| | |
| | | continue
|
| | | PlayerControl.CalcAttrDict_Type(attrID, attrValue, allAttrList)
|
| | |
|
| | | # 等阶培养丹累加个数属性
|
| | | eatItemAttrInfo = IpyGameDataPY.GetFuncCfg("HorseUpItem", 3)
|
| | | for attrID, attrValue in eatItemAttrInfo:
|
| | | PlayerControl.CalcAttrDict_Type(attrID, attrValue * totalItemCount, allAttrList)
|
| | | # 培养丹增加属性
|
| | | upItemPerCount = horseIpyData.GetUpEatItemPerCount()
|
| | | if upItemCount and upItemPerCount:
|
| | | upItemAttrTypeList = horseIpyData.GetUpItemAttrType()
|
| | | upItemAttrValueList = horseIpyData.GetUpItemAttrValue()
|
| | | attrMultiple = upItemCount / upItemPerCount
|
| | | for i, attrID in enumerate(upItemAttrTypeList):
|
| | | attrValue = upItemAttrValueList[i]
|
| | | PlayerControl.CalcAttrDict_Type(attrID, attrValue * attrMultiple, allAttrList)
|
| | | |
| | | # # 等阶培养丹累加个数属性
|
| | | # eatItemAttrInfo = IpyGameDataPY.GetFuncCfg("HorseUpItem", 3)
|
| | | # for attrID, attrValue in eatItemAttrInfo:
|
| | | # PlayerControl.CalcAttrDict_Type(attrID, attrValue * totalItemCount, allAttrList)
|
| | |
|
| | | # 幻化属性
|
| | | initFPAdd = 0 #初始战力
|