From 747a4c31aabda13fba8a2c71edfd26ff88c1afdb Mon Sep 17 00:00:00 2001 From: SandPoot Date: Sat, 8 Jan 2022 13:23:47 -0300 Subject: [PATCH] sensitive info --- code/__HELPERS/roundend.dm | 12 +++++++----- config/sandstorm/config.txt | 4 ++++ .../controllers/configuration/entries/sandstorm.dm | 2 ++ 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/code/__HELPERS/roundend.dm b/code/__HELPERS/roundend.dm index edc9541abf..c63c1e1136 100644 --- a/code/__HELPERS/roundend.dm +++ b/code/__HELPERS/roundend.dm @@ -244,10 +244,11 @@ CHECK_TICK // Add AntagHUD to everyone, see who was really evil the whole time! - for(var/datum/atom_hud/antag/H in GLOB.huds) - for(var/m in GLOB.player_list) - var/mob/M = m - H.add_hud_to(M) + if(CONFIG_GET(flag/reveal_everything)) + for(var/datum/atom_hud/antag/H in GLOB.huds) + for(var/m in GLOB.player_list) + var/mob/M = m + H.add_hud_to(M) CHECK_TICK @@ -271,7 +272,8 @@ CHECK_TICK // handle_hearts() - set_observer_default_invisibility(0, "The round is over! You are now visible to the living.") + if(CONFIG_GET(flag/reveal_everything)) + set_observer_default_invisibility(0, "The round is over! You are now visible to the living.") CHECK_TICK diff --git a/config/sandstorm/config.txt b/config/sandstorm/config.txt index 10bd4afd49..9cc6a13e7c 100644 --- a/config/sandstorm/config.txt +++ b/config/sandstorm/config.txt @@ -31,3 +31,7 @@ MAX_STUPOR_HYPNO_DURATION 12000 ## Maxmimum amount of languages someone can pick ## -1 means infinite and 0 disables it #MAX_LANGUAGES + +## Reveal Everything ## +## Uncomment to reveal everything on roundend +#REVEAL_EVERYTHING diff --git a/modular_sand/code/controllers/configuration/entries/sandstorm.dm b/modular_sand/code/controllers/configuration/entries/sandstorm.dm index 21fab8006e..be29e35e9a 100644 --- a/modular_sand/code/controllers/configuration/entries/sandstorm.dm +++ b/modular_sand/code/controllers/configuration/entries/sandstorm.dm @@ -24,3 +24,5 @@ /datum/config_entry/number/max_stupor_hypno_duration //Maximum random duration to maintain hypnosis from hypnotic stupor config_entry_value = 12000 min_val = 10 + +/datum/config_entry/flag/reveal_everything // On Round end, reveal roles and ghosts