From 7af108eaab260fca6e2cae7d27e6246d5ff83e65 Mon Sep 17 00:00:00 2001 From: Iamgoofball Date: Fri, 23 Dec 2022 21:10:05 -0800 Subject: [PATCH] Dead people are no longer counted as crew when determining if 65% of the station is revs for the auto-shuttle call (#72200) ## About The Pull Request Dead people are no longer counted as crew when determining if 65% of the station is revs for the auto-shuttle call ## Why It's Good For The Game Bugfix for the feature, admins were noticing the auto-call is never occuring and this is because the logic doesn't actually check alive crewmembers, it's only looking at the total crew count, dead and alive a station with 60 dead non-rev crew, 10 alive revs, and 2 alive non-revs previously would not call the shuttle, but now it will ## Changelog :cl: fix: Dead people are no longer counted as crew when determining if 65% of the station is revs for the auto-shuttle call /:cl: Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com> --- code/modules/antagonists/revolution/revolution.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/antagonists/revolution/revolution.dm b/code/modules/antagonists/revolution/revolution.dm index 1c87209399b..fc5b568b96e 100644 --- a/code/modules/antagonists/revolution/revolution.dm +++ b/code/modules/antagonists/revolution/revolution.dm @@ -510,6 +510,8 @@ for (var/datum/mind/crewmember as anything in get_crewmember_minds()) if (crewmember.has_antag_datum(/datum/antagonist/enemy_of_the_revolution)) continue + if(crewmember.current?.stat == DEAD) // if we have 60 dead nonrev crew, 2 alive crew, and 10 alive revs, it should qualify for the shuttle + continue total_candidates += 1