[MIRROR] Adds an admin secret to mass heal and revive everyone. (#28350)

* Adds an admin secret to mass heal and revive everyone. (#84248)

## About The Pull Request

Turns out, the only way to do this, if desired as an admin, is through
SQL. And that's lame!

So, this adds an admin secret to mass heal and revive everyone on the
station with a mob. Not much else nuance to it really.

## Why It's Good For The Game

Turns out we've been asking about it in bus for like, 3-4 years now?
I was also asked about it in a round today, so here we go.

* Adds an admin secret to mass heal and revive everyone.

---------

Co-authored-by: ArcaneMusic <41715314+ArcaneMusic@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-06-25 16:17:48 +05:30
committed by GitHub
co-authored by ArcaneMusic
parent e3512c5ae3
commit 58ff3c6b29
2 changed files with 25 additions and 6 deletions
+19
View File
@@ -604,6 +604,25 @@ ADMIN_VERB(secrets, R_NONE, "Secrets", "Abuse harder than you ever have before w
message_admins("[key_name_admin(holder)] [ctf_controller.instagib_mode ? "enabled" : "disabled"] instagib mode in CTF game: [selected_game]")
log_admin("[key_name_admin(holder)] [ctf_controller.instagib_mode ? "enabled" : "disabled"] instagib mode in CTF game: [selected_game]")
if("mass_heal")
if(!is_funmin)
return
var/heal_mobs = tgui_alert(usr, "Heal all mobs and return ghosts to their bodies?", "Mass Healing", list("Yes", "No"))
if(!heal_mobs || heal_mobs != "Yes")
return
for(var/mob/dead/observer/ghost in GLOB.player_list) //Return all ghosts if possible
if(!ghost.mind || !ghost.mind.current) //won't do anything if there is no body
continue
ghost.reenter_corpse()
for(var/mob/living/player in GLOB.player_list)
player.revive(ADMIN_HEAL_ALL, force_grab_ghost = TRUE)
sound_to_playing_players('sound/effects/pray_chaplain.ogg')
message_admins("[key_name_admin(holder)] healed everyone.")
log_admin("[key_name(holder)] healed everyone.")
if(E)
E.processing = FALSE
if(E.announce_when>0)