mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 23:27:34 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user