[MIRROR] Nuclear operatives can now be other species. Pref toggle to always be human as operative [MDB IGNORE] (#23433)

* Nuclear operatives can now be other species. Pref toggle to always be human as operative

* remove skyrat edit

---------

Co-authored-by: Rhials <28870487+Rhials@users.noreply.github.com>
Co-authored-by: lessthanthree <83487515+lessthnthree@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-08-31 23:27:59 +02:00
committed by GitHub
parent a868832007
commit 1edbfcd0f0
18 changed files with 135 additions and 12 deletions
@@ -0,0 +1,23 @@
/// 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"
/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)
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