Fixing malf AI: episode 3

Malf ai is the only antag who uses exclusive roles at roundstart. It means that when someone used a function that sounded just right, but assumed it returns 1 when true, the entire roundstart ruleset couldn't ever find candidates.

About The Pull Request

Literally checks if the value returned means that player is eligible for the job.

Why It's Good For The Game

Makes antag happen again

Changelog

🆑
fix: Malfunction in malfunctioning ai protocols should be fixed, AIs should break regularly again.
/🆑
This commit is contained in:
Kubisopplay
2022-01-24 11:04:48 -05:00
committed by GitHub
parent 00c9ee3fab
commit 86ff27920c
@@ -225,7 +225,7 @@
for(var/role in exclusive_roles)
var/datum/job/job = SSjob.GetJob(role)
if((role in candidate_client.prefs.job_preferences) && SSjob.check_job_eligibility(candidate_player, job, "Dynamic Roundstart TC", add_job_to_log = TRUE))
if((role in candidate_client.prefs.job_preferences) && SSjob.check_job_eligibility(candidate_player, job, "Dynamic Roundstart TC", add_job_to_log = TRUE)==JOB_AVAILABLE)
exclusive_candidate = TRUE
break