载具耐力完善

This commit is contained in:
UnKownOwO
2022-12-16 22:48:50 +08:00
parent 072caf5302
commit b6fa1f6b83
5 changed files with 151 additions and 85 deletions

View File

@@ -241,10 +241,9 @@ func (t *TickManager) onTickSecond(now int64) {
func (t *TickManager) onTick200MilliSecond(now int64) {
// 耐力消耗
for _, world := range WORLD_MANAGER.worldMap {
for _, player := range world.playerMap {
GAME_MANAGER.SustainStaminaHandler(player)
}
for _, player := range USER_MANAGER.playerMap {
GAME_MANAGER.SustainStaminaHandler(player)
GAME_MANAGER.VehicleRestoreStaminaHandler(player)
}
}