Adds "start disabled" option to Reflexive Biting + Personal Bubble (#18582)

* Adds reflexive biting trait option to start disabled

* Defaults to true, + adds option to personal bubble cuz why not
This commit is contained in:
Jenny
2025-10-01 22:49:05 +02:00
committed by GitHub
parent cf507d56a8
commit 0c94fa3357
@@ -1560,10 +1560,12 @@
desc = "You will reflexively bite hands that attempt to pat your head or boop your nose, this can be toggled off."
cost = 0
custom_only = FALSE
has_preferences = list("biting_toggle" = list(TRAIT_PREF_TYPE_BOOLEAN, "Enabled on spawn", TRAIT_NO_VAREDIT_TARGET, TRUE))
/datum/trait/neutral/patting_defence/apply(var/datum/species/S,var/mob/living/carbon/human/H)
/datum/trait/neutral/patting_defence/apply(var/datum/species/S, var/mob/living/carbon/human/H, var/list/trait_prefs)
..()
H.touch_reaction_flags |= SPECIES_TRAIT_PATTING_DEFENCE
if(trait_prefs && trait_prefs["biting_toggle"])
H.touch_reaction_flags |= SPECIES_TRAIT_PATTING_DEFENCE
add_verb(H, /mob/living/proc/toggle_patting_defence)
/datum/trait/neutral/personal_space
@@ -1571,10 +1573,12 @@
desc = "You are adept at avoiding unwanted physical contact and dodge it with ease. You will reflexively dodge any attempt to hug, pat, boop, lick, sniff you or even shake your hand, this can be toggled off."
cost = 0
custom_only = FALSE
has_preferences = list("bubble_toggle" = list(TRAIT_PREF_TYPE_BOOLEAN, "Enabled on spawn", TRAIT_NO_VAREDIT_TARGET, TRUE))
/datum/trait/neutral/personal_space/apply(var/datum/species/S,var/mob/living/carbon/human/H)
/datum/trait/neutral/personal_space/apply(var/datum/species/S, var/mob/living/carbon/human/H, var/list/trait_prefs)
..()
H.touch_reaction_flags |= SPECIES_TRAIT_PERSONAL_BUBBLE
if(trait_prefs && trait_prefs["bubble_toggle"])
H.touch_reaction_flags |= SPECIES_TRAIT_PERSONAL_BUBBLE
add_verb(H, /mob/living/proc/toggle_personal_space)
/* // Commented out in lieu of finding a better solution.