| | |
| | |
|
| | | import ChConfig
|
| | | import GameWorld
|
| | | import IPY_GameWorld
|
| | | import ReadChConfig
|
| | | import PlayerControl
|
| | | import PlayerTJG
|
| | | import ChPyNetSendPack
|
| | | import NetPackCommon
|
| | | #------------------------------------------------------------------------------
|
| | |
| | | offMin = PlayerControl.GetPlayerLeaveServerMinute(curPlayer)
|
| | | noteOffMin = offMin + curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_Wallow_OfflineTime)
|
| | |
|
| | | #脱机挂时间,脱机挂时间清除必须在这之后
|
| | | tjgtime = curPlayer.NomalDictGetProperty(ChConfig.Def_PDictType_TJGNotify_Time, 0, ChConfig.Def_PDictType_TJGNotify)/60
|
| | | noteOffMin += tjgtime
|
| | | |
| | | if noteOffMin < Def_Wallow_Offline_HealthTime:
|
| | | #未达到健康离线,记录时间,退出
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_Wallow_OfflineTime, noteOffMin)
|
| | |
| | | # @param tick 时间戳
|
| | | # @return none
|
| | | def DoLogic_WallowOnlineTime(curPlayer, tick):
|
| | | if PlayerTJG.GetIsTJG(curPlayer):
|
| | | return
|
| | |
|
| | | if not GetIsWallowRole(curPlayer):
|
| | | return
|