From ed0cc6cdb4507d672e354cb81cb0458b02eaa2ed Mon Sep 17 00:00:00 2001 From: Contrabang <91113370+Contrabang@users.noreply.github.com> Date: Thu, 12 Oct 2023 23:21:13 -0400 Subject: [PATCH] rev moment (#22819) --- code/modules/antagonists/revolutionary/team_revolution.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/modules/antagonists/revolutionary/team_revolution.dm b/code/modules/antagonists/revolutionary/team_revolution.dm index 00809ab31be..8ede26271ce 100644 --- a/code/modules/antagonists/revolutionary/team_revolution.dm +++ b/code/modules/antagonists/revolutionary/team_revolution.dm @@ -2,6 +2,7 @@ name = "Revolution" antag_datum_type = /datum/antagonist/rev var/max_headrevs = REVOLUTION_MAX_HEADREVS // adminbus is possible + var/have_we_won = FALSE /datum/team/revolution/New() ..() @@ -56,6 +57,11 @@ . = TRUE /datum/team/revolution/proc/check_all_victory() + if(have_we_won) + return + if(!length(members)) // all the minds got removed/deleted somehow, perhaps admin stuff. Best to just remove the team altogether. + qdel(src) + return update_team_objectives() check_rev_victory() check_heads_victory() @@ -66,6 +72,7 @@ return FALSE SSshuttle.clearHostileEnvironment(src) // revs can take the shuttle too if they want + have_we_won = TRUE log_admin("Revolutionary win conditions met. All command, security, and legal jobs are now closed.") message_admins("The revolutionaries have won! All command, security, and legal jobs have been closed. You can change this with the \"Free Job Slot\" verb.")