Ports over configuration controller (#16484)

* Ports over configuration controller

* Fixes

* Manual path fix

* patch (#16490)

* patch

* .

* SQL Fix

* Post-rebase fix

* Added missing examples

---------

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
Selis
2024-10-22 19:26:44 +02:00
committed by GitHub
co-authored by Kashargul
parent 25d323e8a8
commit 242fa3a66b
242 changed files with 3275 additions and 1257 deletions
+4 -4
View File
@@ -354,9 +354,9 @@
// Special cases, can never respawn
if(ticker?.mode?.deny_respawn)
time = -1
else if(!config.abandon_allowed)
else if(!CONFIG_GET(flag/abandon_allowed))
time = -1
else if(!config.respawn)
else if(!CONFIG_GET(flag/respawn))
time = -1
// Special case for observing before game start
@@ -365,7 +365,7 @@
// Wasn't given a time, use the config time
else if(!time)
time = config.respawn_time
time = CONFIG_GET(number/respawn_time)
var/keytouse = ckey
// Try harder to find a key to use
@@ -377,7 +377,7 @@
GLOB.respawn_timers[keytouse] = world.time + time
/mob/observer/dead/set_respawn_timer()
if(config.antag_hud_restricted && has_enabled_antagHUD)
if(CONFIG_GET(flag/antag_hud_restricted) && has_enabled_antagHUD)
..(-1)
else
return // Don't set it, no need