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.
This commit is contained in:
lordpidey
2016-08-04 19:58:19 -04:00
committed by oranges
parent 5a2c13ad0d
commit 9d07476ab7
2 changed files with 24 additions and 1 deletions
+1 -1
View File
@@ -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
@@ -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()
..()