| | |
| | | import IpyGameDataPY
|
| | | import GameFuncComm
|
| | | import PlayerOnline
|
| | | import PlayerTask
|
| | | import GameWorld
|
| | | import ObjPool
|
| | |
|
| | |
| | | # 有升级额外处理
|
| | | if updHorseLV > horseLV:
|
| | | RefreshHorseAttr(curPlayer)
|
| | | |
| | | PlayerTask.AddTaskValue(curPlayer, ChConfig.TaskType_HorseLVUP, costItemCount)
|
| | | return
|
| | |
|
| | | #// B2 02 坐骑进阶 #tagCSHorseClassUP
|
| | |
| | | if state:
|
| | | return True
|
| | |
|
| | | # if not ipyData:
|
| | | # ipyData = IpyGameDataPY.GetIpyGameData("HorseSkin", horseSkinID)
|
| | | # if ipyData:
|
| | | # unlockWay = ipyData.GetUnlockWay()
|
| | | # if unlockWay == 1:
|
| | | # classLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_HorseClassLV)
|
| | | # if classLV >= ipyData.GetUnlockValue():
|
| | | # return True
|
| | | if not ipyData:
|
| | | ipyData = IpyGameDataPY.GetIpyGameData("HorseSkin", horseSkinID)
|
| | | if ipyData:
|
| | | unlockWay = ipyData.GetUnlockWay()
|
| | | if unlockWay == 1:
|
| | | if not ipyData.GetUnlockValue():
|
| | | return True
|
| | | #classLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_HorseClassLV)
|
| | | #if classLV >= ipyData.GetUnlockValue():
|
| | | # return True
|
| | |
|
| | | return False
|
| | |
|