Made it real time, added to config

This commit is contained in:
Putnam
2020-02-03 03:13:19 -08:00
parent c829d97418
commit 82fbef9920
5 changed files with 9 additions and 3 deletions
@@ -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
+1 -1
View File
@@ -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()