| | |
| | | import NetPackCommon
|
| | | import PlayerBillboard
|
| | | import PlayerAttrFruit
|
| | | import PlayerGameEvent
|
| | | import GameFuncComm
|
| | | import EventShell
|
| | | import IpyGameDataPY
|
| | | import CrossPlayerData
|
| | | import PlayerSuccess
|
| | |
| | | #无指定道具
|
| | | if itemRideHorse.IsEmpty():
|
| | | return
|
| | | |
| | | if curPlayer.GetPlayerAction() == IPY_GameWorld.paGameEvent:
|
| | | tick = GameWorld.GetGameWorld().GetTick()
|
| | | PlayerGameEvent.StopGameEvent(curPlayer, tick)
|
| | |
|
| | | #设置玩家为骑马状态
|
| | | curPlayer.SetPlayerVehicle(IPY_GameWorld.pvHorse)
|
| | |
| | | # 升阶
|
| | | upItemPerCount = horseIpyData.GetUpEatItemPerCount()
|
| | | upCnt = costItemCount / upItemPerCount
|
| | | for _ in range(upCnt):
|
| | | EventShell.EventRespons_HorseUp(curPlayer) # 改为使用就算
|
| | | if updClassLV > horseLV:
|
| | | EventShell.EventRespons_HorseLV(curPlayer, updClassLV)
|
| | | # 玩家马匹进阶
|
| | | DataRecordPack.DR_NewHorseByClassUp(curPlayer, updClassLV, 0)
|
| | | # 记录开服活动马匹阶级
|