mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-15 12:43:13 +00:00
Add toggles for growth and shrinking traits (#9847)
This commit is contained in:
@@ -195,3 +195,27 @@ var/eggs = 0
|
|||||||
src.visible_message(span_infoplain(span_red("[src] sinks their stinger into [T]!")))
|
src.visible_message(span_infoplain(span_red("[src] sinks their stinger into [T]!")))
|
||||||
T.bloodstr.add_reagent(REAGENT_ID_CONDENSEDCAPSAICINV,3)
|
T.bloodstr.add_reagent(REAGENT_ID_CONDENSEDCAPSAICINV,3)
|
||||||
last_special = world.time + 50 // Many little jabs instead of one big one
|
last_special = world.time + 50 // Many little jabs instead of one big one
|
||||||
|
|
||||||
|
/mob/living/carbon/proc/toggle_growth()
|
||||||
|
set name = "Toggle Growth"
|
||||||
|
set desc = "Toggles whether excess nutrition will be used to grow you or not"
|
||||||
|
set category = "Abilities.General"
|
||||||
|
|
||||||
|
species.grows = !species.grows
|
||||||
|
|
||||||
|
if(species.grows)
|
||||||
|
to_chat(src, span_notice("You now grow with excess nutrition!"))
|
||||||
|
else
|
||||||
|
to_chat(src, span_notice("You no longer grow with excess nutrition."))
|
||||||
|
|
||||||
|
/mob/living/carbon/proc/toggle_shrinking()
|
||||||
|
set name = "Toggle Shrinking"
|
||||||
|
set desc = "Toggles whether a deficit of nutrition will cause you to shrink or not"
|
||||||
|
set category = "Abilities.General"
|
||||||
|
|
||||||
|
species.shrinks = !species.shrinks
|
||||||
|
|
||||||
|
if(species.shrinks)
|
||||||
|
to_chat(src, span_notice("You now shrink when not having enough nutrition!"))
|
||||||
|
else
|
||||||
|
to_chat(src, span_notice("You no longer shrink when not having enough nutrition."))
|
||||||
|
|||||||
@@ -23,12 +23,20 @@
|
|||||||
cost = 0
|
cost = 0
|
||||||
var_changes = list("grows" = TRUE)
|
var_changes = list("grows" = TRUE)
|
||||||
|
|
||||||
|
/datum/trait/neutral/nutritiongrow/apply(var/datum/species/S,var/mob/living/carbon/human/H)
|
||||||
|
..()
|
||||||
|
add_verb(H,/mob/living/carbon/proc/toggle_growth) //CHOMPEdit TGPanel
|
||||||
|
|
||||||
/datum/trait/neutral/nutritionshrink
|
/datum/trait/neutral/nutritionshrink
|
||||||
name = "Shrinking"
|
name = "Shrinking"
|
||||||
desc = "If you don't eat enough, your body starts shrinking to make up the difference!"
|
desc = "If you don't eat enough, your body starts shrinking to make up the difference!"
|
||||||
cost = 0
|
cost = 0
|
||||||
var_changes = list("shrinks" = TRUE)
|
var_changes = list("shrinks" = TRUE)
|
||||||
|
|
||||||
|
/datum/trait/neutral/nutritiongrow/apply(var/datum/species/S,var/mob/living/carbon/human/H)
|
||||||
|
..()
|
||||||
|
add_verb(H,/mob/living/carbon/proc/toggle_shrinking) //CHOMPEdit TGPanel
|
||||||
|
|
||||||
/datum/trait/neutral/mudking
|
/datum/trait/neutral/mudking
|
||||||
name = "Mudking"
|
name = "Mudking"
|
||||||
desc = "Somehow you are so filthy that tiles get dirty four times as quick from you walking on them."
|
desc = "Somehow you are so filthy that tiles get dirty four times as quick from you walking on them."
|
||||||
|
|||||||
Reference in New Issue
Block a user