mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 07:08:00 +01:00
## About The Pull Request Closes #96092 Also added missing midround clowns to alias/species prefs for ops ## Changelog 🆑 fix: Having only midround clown ops (but not normal clown ops) enabled in antag prefs now displays operative alias/species toggles admin: Added clown ops to the ban panel /🆑
25 lines
939 B
Plaintext
25 lines
939 B
Plaintext
/// When TRUE, will spawn you as a human when selected for an operative role
|
|
/// When FALSE, players will be placed into the game as their character's species
|
|
/datum/preference/toggle/nuke_ops_species
|
|
category = PREFERENCE_CATEGORY_NON_CONTEXTUAL
|
|
can_randomize = FALSE
|
|
default_value = TRUE
|
|
savefile_identifier = PREFERENCE_CHARACTER
|
|
savefile_key = "operative_species"
|
|
should_update_preview = FALSE
|
|
|
|
/datum/preference/toggle/nuke_ops_species/is_accessible(datum/preferences/preferences)
|
|
. = ..()
|
|
if(!.)
|
|
return FALSE
|
|
|
|
// If one of the roles is ticked in the antag prefs menu, this option will show.
|
|
var/static/list/ops_roles = list(ROLE_OPERATIVE, ROLE_LONE_OPERATIVE, ROLE_OPERATIVE_MIDROUND, ROLE_CLOWN_OPERATIVE, ROLE_CLOWN_OPERATIVE_MIDROUND)
|
|
if(length(ops_roles & preferences.be_special))
|
|
return TRUE
|
|
|
|
return FALSE
|
|
|
|
/datum/preference/toggle/nuke_ops_species/apply_to_human(mob/living/carbon/human/target, value)
|
|
return
|