add salt quirk

This commit is contained in:
Timothy Teakettle
2022-04-27 14:58:54 +01:00
parent 26683acdbb
commit ac4a41243a
4 changed files with 16 additions and 0 deletions

View File

@@ -352,6 +352,7 @@
#define STICKY_NODROP "sticky-nodrop" //sticky nodrop sounds like a bad soundcloud rapper's name #define STICKY_NODROP "sticky-nodrop" //sticky nodrop sounds like a bad soundcloud rapper's name
#define TRAIT_SACRIFICED "sacrificed" //Makes sure that people cant be cult sacrificed twice. #define TRAIT_SACRIFICED "sacrificed" //Makes sure that people cant be cult sacrificed twice.
#define TRAIT_SPACEWALK "spacewalk" #define TRAIT_SPACEWALK "spacewalk"
#define TRAIT_SALT_SENSITIVE "salt_sensitive"
/// obtained from mapping helper /// obtained from mapping helper

View File

@@ -127,6 +127,7 @@ GLOBAL_LIST_INIT(traits_by_type, list(
"TRAIT_FRIENDLY" = TRAIT_FRIENDLY, "TRAIT_FRIENDLY" = TRAIT_FRIENDLY,
"TRAIT_IWASBATONED" = TRAIT_IWASBATONED, "TRAIT_IWASBATONED" = TRAIT_IWASBATONED,
"TRAIT_SPACEWALK" = TRAIT_SPACEWALK "TRAIT_SPACEWALK" = TRAIT_SPACEWALK
"TRAIT_SALT_SENSITIVE" = TRAIT_SALT_SENSITIVE
), ),
/obj/item/bodypart = list( /obj/item/bodypart = list(
"TRAIT_PARALYSIS" = TRAIT_PARALYSIS "TRAIT_PARALYSIS" = TRAIT_PARALYSIS

View File

@@ -179,3 +179,10 @@
var/mob/living/carbon/human/H = quirk_holder var/mob/living/carbon/human/H = quirk_holder
SEND_SIGNAL(H.back, COMSIG_TRY_STORAGE_SHOW, H) SEND_SIGNAL(H.back, COMSIG_TRY_STORAGE_SHOW, H)
to_chat(quirk_holder, "<span class='boldnotice'>You brought some extra dye with you! It's in your bag if you forgot.</span>") to_chat(quirk_holder, "<span class='boldnotice'>You brought some extra dye with you! It's in your bag if you forgot.</span>")
/datum/quirk/salt_sensitive
name = "Sodium Sensitivity"
desc = "Your body is sensitive to sodium, and is burnt upon contact. Ingestion or contact with it is not advised."
value = 0
medical_record_text = "Patient should not come into contact with sodium."
mob_trait = TRAIT_SALT_SENSITIVE

View File

@@ -381,6 +381,13 @@
return return
if(M.has_bane(BANE_SALT)) if(M.has_bane(BANE_SALT))
M.mind.disrupt_spells(-200) M.mind.disrupt_spells(-200)
if(HAS_TRAIT(M, TRAIT_SALT_SENSITIVE)) // haha snails go brrr
M.adjustFireLoss(2)
M.emote("scream")
/datum/reagent/consumable/sodiumchloride/on_mob_life(mob/living/M)
if(HAS_TRAIT(M, TRAIT_SALT_SENSITIVE))
M.adjustFireLoss(1) // equal to a standard toxin
/datum/reagent/consumable/sodiumchloride/reaction_turf(turf/T, reac_volume) //Creates an umbra-blocking salt pile /datum/reagent/consumable/sodiumchloride/reaction_turf(turf/T, reac_volume) //Creates an umbra-blocking salt pile
if(!istype(T)) if(!istype(T))