mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-09 16:07:40 +00:00
Made it real time, added to config
This commit is contained in:
@@ -431,3 +431,7 @@
|
||||
/datum/config_entry/flag/log_pictures
|
||||
|
||||
/datum/config_entry/flag/picture_logging_camera
|
||||
|
||||
/datum/config_entry/number/max_bunker_days
|
||||
config_entry_value = 7
|
||||
min_val = 1
|
||||
|
||||
@@ -268,7 +268,7 @@ SUBSYSTEM_DEF(persistence)
|
||||
GLOB.bunker_passthrough = json_decode(file2text(bunker_path))
|
||||
var/round_id = GLOB.round_id
|
||||
for(var/ckey in GLOB.bunker_passthrough)
|
||||
if(round_id - GLOB.bunker_passthrough[ckey] > 100)
|
||||
if(daysSince(GLOB.bunker_passthrough[ckey]) >= CONFIG_GET(number/max_bunker_days))
|
||||
GLOB.bunker_passthrough -= ckey
|
||||
|
||||
/datum/controller/subsystem/persistence/proc/GetPhotoAlbums()
|
||||
|
||||
@@ -137,7 +137,7 @@ GLOBAL_LIST(round_end_notifiees)
|
||||
return "The Database is not enabled!"
|
||||
|
||||
GLOB.bunker_passthrough |= ckey(params)
|
||||
GLOB.bunker_passthrough[ckey(params)] = GLOB.round_id
|
||||
GLOB.bunker_passthrough[ckey(params)] = world.realtime
|
||||
SSpersistence.SavePanicBunker() //we can do this every time, it's okay
|
||||
log_admin("[sender.friendly_name] has added [params] to the current round's bunker bypass list.")
|
||||
message_admins("[sender.friendly_name] has added [params] to the current round's bunker bypass list.")
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
return
|
||||
|
||||
GLOB.bunker_passthrough |= ckey(ckeytobypass)
|
||||
GLOB.bunker_passthrough[ckey(ckeytobypass)] = GLOB.round_id
|
||||
GLOB.bunker_passthrough[ckey(ckeytobypass)] = world.realtime
|
||||
SSpersistence.SavePanicBunker() //we can do this every time, it's okay
|
||||
log_admin("[key_name(usr)] has added [ckeytobypass] to the current round's bunker bypass list.")
|
||||
message_admins("[key_name_admin(usr)] has added [ckeytobypass] to the current round's bunker bypass list.")
|
||||
|
||||
@@ -470,6 +470,8 @@ DISABLE_HIGH_POP_MC_MODE_AMOUNT 60
|
||||
## Uncomment to set the number of /world/Reboot()s before the DreamDaemon restarts itself. 0 means restart every round. Requires tgstation server tools.
|
||||
#ROUNDS_UNTIL_HARD_RESTART 10
|
||||
|
||||
## Number of days for an individual panic bunker passthrough entry to be wiped. Note that they're also wiped as soon as a player is in the database.
|
||||
#MAX_BUNKER_DAYS 7
|
||||
|
||||
##Default screen resolution, in tiles.
|
||||
## By default, this is 15x15, which gets simplified to 7 by BYOND, as it is a 1:1 screen ratio.
|
||||
|
||||
Reference in New Issue
Block a user