Skip to content

Commit

Permalink
bp debug proc
Browse files Browse the repository at this point in the history
  • Loading branch information
Zonespace27 committed Apr 3, 2024
1 parent 9aae279 commit 4f7141e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions code/controllers/subsystem/ticker.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 4f7141e

Please sign in to comment.