| | |
| | | import PyGameData
|
| | | import PetControl
|
| | | import NPCCommon
|
| | | import GameObj
|
| | |
|
| | | import time
|
| | | import math
|
| | |
| | | FBLogic.OnEnterCustomScene(curPlayer, mapID, lineID)
|
| | |
|
| | | #默认回满血
|
| | | if curPlayer.GetHP() < curPlayer.GetMaxHP():
|
| | | curPlayer.SetHP(curPlayer.GetMaxHP())
|
| | | if GameObj.GetHP(curPlayer) < GameObj.GetMaxHP(curPlayer):
|
| | | GameObj.SetHPFull(curPlayer)
|
| | |
|
| | | #通知进入状态
|
| | | StartCustomSceneResult(curPlayer, mapID, lineID, 1)
|
| | |
| | | NPCCommon.ClearPriWoodPile(curPlayer)
|
| | |
|
| | | #默认回满血
|
| | | if curPlayer.GetHP() > 0 and curPlayer.GetPlayerAction() != IPY_GameWorld.paDie and curPlayer.GetHP() < curPlayer.GetMaxHP():
|
| | | curPlayer.SetHP(curPlayer.GetMaxHP())
|
| | | if GameObj.GetHP(curPlayer) > 0 and curPlayer.GetPlayerAction() != IPY_GameWorld.paDie and GameObj.GetHP(curPlayer) < GameObj.GetMaxHP(curPlayer):
|
| | | GameObj.SetHPFull(curPlayer)
|
| | |
|
| | | GameWorld.Log("玩家退出自定义场景!", curPlayer.GetPlayerID())
|
| | | return
|