mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
fixes second-choice headrevs having their preferences ignored (#95751)
## About The Pull Request Second-choice headrevs after a first choice became indisposed did not check client preferences. Also, moves `ROLE_HEAD_REV` define into roundstart section of defines because it is a roundstart ruleset ## Why It's Good For The Game fixes #95742
This commit is contained in:
@@ -405,9 +405,6 @@
|
||||
for(var/datum/mind/khrushchev as anything in members - head_revolutionaries)
|
||||
if(!can_be_headrev(khrushchev))
|
||||
continue
|
||||
var/client/khruschevs_client = GET_CLIENT(khrushchev.current)
|
||||
if(!(ROLE_REV_HEAD in khruschevs_client.prefs.be_special) && !(ROLE_PROVOCATEUR in khruschevs_client.prefs.be_special))
|
||||
continue
|
||||
if(ismonkey(khrushchev.current))
|
||||
monkey_promotable += khrushchev
|
||||
else
|
||||
|
||||
@@ -150,7 +150,7 @@ GLOBAL_DATUM(revolution_handler, /datum/revolution_handler)
|
||||
return objective_complete
|
||||
|
||||
/// Checks if someone is valid to be a headrev
|
||||
/proc/can_be_headrev(datum/mind/candidate)
|
||||
/proc/can_be_headrev(datum/mind/candidate, roundstart = FALSE)
|
||||
var/turf/head_turf = get_turf(candidate.current)
|
||||
if(considered_afk(candidate))
|
||||
return FALSE
|
||||
@@ -160,6 +160,9 @@ GLOBAL_DATUM(revolution_handler, /datum/revolution_handler)
|
||||
return FALSE
|
||||
if(candidate.current.is_antag())
|
||||
return FALSE
|
||||
var/client/candidate_client = GET_CLIENT(candidate.current)
|
||||
if(!(ROLE_REV_HEAD in candidate_client.prefs.be_special) && (roundstart || !(ROLE_PROVOCATEUR in candidate_client.prefs.be_special)))
|
||||
return FALSE
|
||||
if(candidate.assigned_role.job_flags & JOB_HEAD_OF_STAFF)
|
||||
return FALSE
|
||||
if(HAS_MIND_TRAIT(candidate.current, TRAIT_UNCONVERTABLE))
|
||||
|
||||
Reference in New Issue
Block a user