Adds quiet round checks to all Dynamic rulesets (#13683)

This commit is contained in:
Altoids1
2022-04-11 15:11:30 -05:00
committed by GitHub
parent 0c5365daf3
commit c188c8edcd
2 changed files with 6 additions and 0 deletions

View File

@@ -26,6 +26,9 @@
if ((exclusive_roles.len > 0) && !(P.mind.assigned_role in exclusive_roles)) // Is the rule exclusive to their job?
candidates.Remove(P)
continue
if(P.mind.quiet_round) //Does the candidate have quiet mode enabled?
candidates.Remove(P)
continue
/datum/dynamic_ruleset/latejoin/ready(forced = 0)
if (!forced)

View File

@@ -57,6 +57,9 @@
if ((exclusive_roles.len > 0) && !(M.mind.assigned_role in exclusive_roles)) // Is the rule exclusive to their job?
trimmed_list.Remove(M)
continue
if(M.mind.quiet_round)
trimmed_list.Remove(M)
continue
return trimmed_list
// You can then for example prompt dead players in execute() to join as strike teams or whatever