mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-21 12:08:55 +01:00
Job estimation refactor (#4544)
## About The Pull Request This PR moves the job estimation panel to SSticker, reducing its performance impact. No player-facing changes, it'll work exactly the same ## Why It's Good For The Game The server will hopefully crash less ## Proof Of Testing <img width="242" height="85" alt="image" src="https://github.com/user-attachments/assets/535f8e6d-e175-440c-a0d4-1fac5e4d5a51" /> ## Changelog 🆑 ReturnToZender refactor: Job estimation now performs better /🆑
This commit is contained in:
@@ -196,12 +196,15 @@ SUBSYSTEM_DEF(ticker)
|
||||
totalPlayers = LAZYLEN(GLOB.new_player_list)
|
||||
totalPlayersReady = 0
|
||||
total_admins_ready = 0
|
||||
var/list/readied_players = list() //BUBBER EDIT ADDITION
|
||||
for(var/mob/dead/new_player/player as anything in GLOB.new_player_list)
|
||||
if(player.ready == PLAYER_READY_TO_PLAY)
|
||||
readied_players[player.key] = player //BUBBER EDIT: job estimation, filling the readied list we use later
|
||||
++totalPlayersReady
|
||||
if(player.client?.holder)
|
||||
++total_admins_ready
|
||||
|
||||
job_estimation_list = get_job_estimation(readied_players) //BUBBER EDIT ADDITION
|
||||
if(start_immediately)
|
||||
timeLeft = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user