Adds neutral trait for synthetics to toggle cosmetic pain messages

This commit is contained in:
Casey
2022-09-06 20:02:31 +00:00
committed by CHOMPStation2
parent a06f70b32b
commit 2d6841cee0
4 changed files with 36 additions and 3 deletions
@@ -78,3 +78,8 @@
// Moving around increases germ_level faster
if(germ_level < GERM_LEVEL_MOVE_CAP && prob(8))
germ_level++
/mob/living/carbon
var/synth_cosmetic_pain = FALSE
@@ -1153,3 +1153,19 @@
"<span class='danger'>You are dragged below the water and feel yourself slipping directly into \the [src]'s [vore_selected]!</span>")
to_chat(src, "<span class='notice'>You successfully drag \the [target] into the water, slipping them into your [vore_selected].</span>")
target.forceMove(src.vore_selected)
<<<<<<< HEAD
=======
/mob/living/carbon/human/proc/toggle_pain_module()
set name = "Toggle pain simulation."
set desc = "Turn on your pain simulation for that organic experience! Or turn it off for repairs, or if it's too much."
set category = "Abilities"
if(synth_cosmetic_pain)
to_chat(src, "<span class='notice'> You turn off your pain simulators.</span>")
else
to_chat(src, "<span class='danger'> You turn on your pain simulators </span>")
synth_cosmetic_pain = !synth_cosmetic_pain
>>>>>>> ec3dfaa528... Merge pull request #13674 from Runa-Dacino/synth-fluff-pain
@@ -614,3 +614,15 @@
can_take = SYNTHETICS
var_changes = list("organic_food_coeff" = 0, "synthetic_food_coeff" = 0.3, digestion_efficiency = 0.5)
excludes = list(/datum/trait/neutral/synth_chemfurnace)
/datum/trait/neutral/synth_cosmetic_pain
name = "Pain simulation"
desc = "You have added modules in your synthetic shell that simulates the sensation of pain. You are able to turn this on and off for repairs as needed or convenience at will."
cost = 0
custom_only = FALSE
can_take = SYNTHETICS
/datum/trait/neutral/synth_cosmetic_pain/apply(var/datum/species/S,var/mob/living/carbon/human/H)
..(S,H)
H.verbs |= /mob/living/carbon/human/proc/toggle_pain_module