From 4f7141e3c6ce657d6a65dc8810ffd5cdccd76c65 Mon Sep 17 00:00:00 2001 From: Zonespace <41448081+Zonespace27@users.noreply.github.com> Date: Wed, 3 Apr 2024 12:10:00 -0700 Subject: [PATCH] bp debug proc --- code/controllers/subsystem/ticker.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/controllers/subsystem/ticker.dm b/code/controllers/subsystem/ticker.dm index f265315460e3..66eacb92980c 100644 --- a/code/controllers/subsystem/ticker.dm +++ b/code/controllers/subsystem/ticker.dm @@ -511,3 +511,10 @@ SUBSYSTEM_DEF(ticker) if(mode) mode.is_in_endgame = TRUE mode.force_end_at = (world.time + 25 MINUTES) + +/datum/controller/subsystem/ticker/proc/check_bp_tier(ckey = "", tiernum = 1) //ZONENOTE, REMOVE, REMOVE BEFORE FULLMERGE + if(!fexists("data/player_saves/[copytext(ckey, 1, 2)]/[ckey]/battlepass.sav")) + return FALSE + + var/savefile/save_obj = new("data/player_saves/[copytext(ckey, 1, 2)]/[ckey]/battlepass.sav") + return (save_obj["tier"] >= tiernum)