From dc67ea655eb532f7b8a34bd2f0a33c717e70f7a1 Mon Sep 17 00:00:00 2001 From: Kubisopplay <38842052+Kubisopplay@users.noreply.github.com> Date: Wed, 21 Jul 2021 02:05:07 +0200 Subject: [PATCH] Malf humans, and perfectly functioning ais, round three. (#60335) Fixes mistake made in #59765, that fixed malf humans spawning by making it impossible for any malfunctioning ai to spawn. That PR used wrong proc, so it always returned TRUE, so the code declined every player candidacy for the antag datum. I changed it for correct proc, and did some basic testing on it. --- code/game/gamemodes/dynamic/dynamic_rulesets.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/game/gamemodes/dynamic/dynamic_rulesets.dm b/code/game/gamemodes/dynamic/dynamic_rulesets.dm index 6d692016747..72279d4ffb8 100644 --- a/code/game/gamemodes/dynamic/dynamic_rulesets.dm +++ b/code/game/gamemodes/dynamic/dynamic_rulesets.dm @@ -222,7 +222,8 @@ if(length(exclusive_roles)) var/exclusive_candidate = FALSE for(var/role in exclusive_roles) - if((role in candidate_client.prefs.job_preferences) && !is_banned_from(candidate_player.ckey, role) && !job_is_xp_locked(candidate_player.ckey, role)) + var/datum/job/job = SSjob.GetJob(role) + if((role in candidate_client.prefs.job_preferences) && !is_banned_from(candidate_player.ckey, role) && !job.required_playtime_remaining(candidate_client)) exclusive_candidate = TRUE break