From a3ea5e06bae19f1c526d1d60e7628d59b835949b Mon Sep 17 00:00:00 2001 From: Dahlular Date: Wed, 22 Jul 2020 07:22:18 -0600 Subject: [PATCH] Growth and Shrink chems --- hyperstation/code/modules/resize/sizechems.dm | 45 +++++++++++-------- tgstation.dme | 1 + 2 files changed, 28 insertions(+), 18 deletions(-) diff --git a/hyperstation/code/modules/resize/sizechems.dm b/hyperstation/code/modules/resize/sizechems.dm index 90deb236..40f2ed90 100644 --- a/hyperstation/code/modules/resize/sizechems.dm +++ b/hyperstation/code/modules/resize/sizechems.dm @@ -1,40 +1,49 @@ //Size Chemicals, now with better and less cringy names. -/datum/reagent/dahl/growthchem +/datum/reagent/growthchem name = "Prospacillin" id = "growthchem" description = "A stabilized altercation of size-altering liquids, this one appears to increase cell volume." color = "#E70C0C" - taste_description = "a sharp, fiery and intoxicating flavour." + taste_description = "a sharp, fiery and intoxicating flavour" overdose_threshold = 10 metabolization_rate = 0.25 can_synth = FALSE //DO NOT MAKE THIS SNYTHESIZABLE, THESE CHEMS ARE SUPPOSED TO NOT BE USED COMMONLY -/datum/reagent/dahl/growthchem/on_mob_add(mob/living/carbon/M) - log_game("SIZECODE: [M] ckey: [M.key] has ingested growthchem.") +/datum/reagent/growthchem/on_mob_add(mob/living/carbon/M) + . = ..() + if(ishuman(M)) + log_game("SIZECODE: [M] ckey: [M.key] has ingested growthchem.") -/datum/reagent/dahl/growthchem/on_mob_life(mob/living/carbon/M) +/datum/reagent/growthchem/on_mob_life(mob/living/carbon/M) + if(!ishuman(M)) + return..() if(M.size_multiplier < RESIZE_MACRO) - M.resize(M.size_multiplier+0.01) + M.resize(M.size_multiplier+0.025) + M.visible_message("[pick("[M] grows!", "[M] expands in size!", "[M] pushes outwards in stature!")]", "[pick("You feel your body fighting for space and growing!", "The world contracts inwards in every direction!", "You feel your muscles expand, and your surroundings shrink!")]") + ..() + . = 1 - return - -/datum/reagent/dahl/shrinkchem +/datum/reagent/shrinkchem name = "Diminicillin" id = "shrinkchem" description = "A stabilized altercation of size-altering liquids, this one appears to decrease cell volume." color = "#0C26E7" - taste_description = "a pungent, acidic and jittery flavour." + taste_description = "a pungent, acidic and jittery flavour" overdose_threshold = 10 - metabolization_rate = 0.25 + metabolization_rate = 1 can_synth = FALSE //SAME STORY AS ABOVE -/datum/reagent/dahl/shrinkchem/on_mob_add(mob/living/carbon/M) - log_game("SIZECODE: [M] ckey: [M.key] has ingested shrinkchem.") +/datum/reagent/shrinkchem/on_mob_add(mob/living/carbon/M) + . = ..() + if(ishuman(M)) + log_game("SIZECODE: [M] ckey: [M.key] has ingested shrinkchem.") -/datum/reagent/dahl/shrinkchem/on_mob_life(mob/living/carbon/M) +/datum/reagent/shrinkchem/on_mob_life(mob/living/carbon/M) + if(!ishuman(M)) + return..() if(M.size_multiplier > RESIZE_MICRO) - M.resize(M.size_multiplier-0.01) - - return - + M.resize(M.size_multiplier-0.025) + M.visible_message("[pick("[M] shrinks down!", "[M] dwindles in size!", "[M] compresses down!")]", "[pick("You feel your body compressing in size!", "The world pushes outwards in every direction!", "You feel your muscles contract, and your surroundings grow!")]") + ..() + . = 1 diff --git a/tgstation.dme b/tgstation.dme index 61d52602..84bb7fde 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -2899,6 +2899,7 @@ #include "hyperstation\code\modules\patreon\patreon.dm" #include "hyperstation\code\modules\resize\holder_micro.dm" #include "hyperstation\code\modules\resize\resizing.dm" +#include "hyperstation\code\modules\resize\sizechems.dm" #include "hyperstation\code\modules\resize\sizegun.dm" #include "hyperstation\code\obj\bluespace sewing kit.dm" #include "hyperstation\code\obj\decal.dm"