| | |
| | | return ChConfig.TYPE_Linear
|
| | |
|
| | | def GetHorseAttrByType(curPlayer, horseID, attrType):
|
| | | horseLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Horser_LV % horseID, 0, ChConfig.Def_PDictType_Horse)
|
| | | if not horseLV:
|
| | | return 0
|
| | | horseUpData = IpyGameDataPY.GetIpyGameData("HorseUp", horseID, horseLV)
|
| | | if not horseUpData:
|
| | | return 0
|
| | | attrTypeList = horseUpData.GetAttrType()
|
| | | attrValueList = horseUpData.GetAttrValue()
|
| | | if attrType not in attrTypeList:
|
| | | return 0
|
| | | |
| | | return attrValueList[attrTypeList.index(attrType)]
|
| | | return 0
|
| | | # horseLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Horser_LV % horseID, 0, ChConfig.Def_PDictType_Horse)
|
| | | # if not horseLV:
|
| | | # return 0
|
| | | # horseUpData = IpyGameDataPY.GetIpyGameData("HorseUp", horseID, horseLV)
|
| | | # if not horseUpData:
|
| | | # return 0
|
| | | # attrTypeList = horseUpData.GetAttrType()
|
| | | # attrValueList = horseUpData.GetAttrValue()
|
| | | # if attrType not in attrTypeList:
|
| | | # return 0
|
| | | # |
| | | # return attrValueList[attrTypeList.index(attrType)]
|
| | |
|
| | |
|