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()
|
||||
|
||||
Reference in New Issue
Block a user