From 9d07476ab7907e1c1cb02de20dccfa73daf44ffb Mon Sep 17 00:00:00 2001 From: lordpidey Date: Thu, 4 Aug 2016 19:58:19 -0400 Subject: [PATCH] adds growth serum, puts it in fly amanita (#19654) * adds growth serum, puts it in fly amanita * changes reagent check to cycle check * Growth serum now works, and if you have more than 20 units in you at a time, you will pulsate between sizes. * Update other_reagents.dm Removes erroneous typecast. --- code/modules/hydroponics/grown/mushrooms.dm | 2 +- .../chemistry/reagents/other_reagents.dm | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/code/modules/hydroponics/grown/mushrooms.dm b/code/modules/hydroponics/grown/mushrooms.dm index 22c2e119dcb..b47e119bf2b 100644 --- a/code/modules/hydroponics/grown/mushrooms.dm +++ b/code/modules/hydroponics/grown/mushrooms.dm @@ -49,7 +49,7 @@ plant_type = PLANT_MUSHROOM growing_icon = 'icons/obj/hydroponics/growing_mushrooms.dmi' mutatelist = list(/obj/item/seeds/angel) - reagents_add = list("mushroomhallucinogen" = 0.04, "amatoxin" = 0.35, "nutriment" = 0) + reagents_add = list("mushroomhallucinogen" = 0.04, "amatoxin" = 0.35, "nutriment" = 0, "growthserum" = 0.1) /obj/item/weapon/reagent_containers/food/snacks/grown/mushroom/amanita seed = /obj/item/seeds/amanita diff --git a/code/modules/reagents/chemistry/reagents/other_reagents.dm b/code/modules/reagents/chemistry/reagents/other_reagents.dm index de7d764437b..baa3fe49d2f 100644 --- a/code/modules/reagents/chemistry/reagents/other_reagents.dm +++ b/code/modules/reagents/chemistry/reagents/other_reagents.dm @@ -1231,3 +1231,26 @@ datum/reagent/romerol // Silently add the zombie infection organ to be activated upon death new /obj/item/organ/body_egg/zombie_infection(H) ..() + +/datum/reagent/growthserum + name = "Growth serum" + id = "growthserum" + description = "A commercial chemical designed to help older men in the bedroom."//not really it just makes you a giant + color = "#ff0000"//strong red. rgb 255, 0, 0 + var/current_size = 1 + +/datum/reagent/growthserum/on_mob_life(mob/living/carbon/H) + if(volume >= 20 && current_size != 2) + H.resize = 2/current_size + current_size = 2 + H.update_transform() + else if (current_size != 1.5) + H.resize = 1.5/current_size + current_size = 1.5 + H.update_transform() + ..() + +/datum/reagent/growthserum/on_mob_delete(mob/living/M) + M.resize = 1/current_size + M.update_transform() + ..()