From 7a613fc2b6ea7cef32f8f4dde8caef89c75a2c5a Mon Sep 17 00:00:00 2001 From: bgobandit Date: Fri, 7 Aug 2015 13:44:13 -0400 Subject: [PATCH] Adds several new reagent reactions to hydroponics. --- code/modules/hydroponics/hydroponics.dm | 38 +++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/code/modules/hydroponics/hydroponics.dm b/code/modules/hydroponics/hydroponics.dm index fe1602b92b1..5d649ae44ed 100644 --- a/code/modules/hydroponics/hydroponics.dm +++ b/code/modules/hydroponics/hydroponics.dm @@ -542,6 +542,12 @@ adjustToxic(-round(S.get_reagent_amount("plantbgone") * 6)) adjustWeeds(-rand(4,8)) + // why, just why + if(S.has_reagent("napalm", 1)) + adjustHealth(-round(S.get_reagent_amount("napalm") * 6)) + adjustToxic(-round(S.get_reagent_amount("napalm") * 7)) + adjustWeeds(-rand(5,9)) + //Weed Spray if(S.has_reagent("weedkiller", 1)) adjustToxic(round(S.get_reagent_amount("weedkiller") * 0.5)) @@ -564,6 +570,18 @@ adjustNutri(round(S.get_reagent_amount("ammonia") * 1)) adjustSYield(round(S.get_reagent_amount("ammonia") * 0.01)) + // Saltpetre is used for gardening IRL, to simplify highly, it speeds up growth and strengthens plants + if(S.has_reagent("saltpetre", 1)) + adjustHealth(round(S.get_reagent_amount("saltpetre") * 0.25)) + adjustSProduct(-round(S.get_reagent_amount("saltpetre") * 0.02)) + adjustSPot(round(S.get_reagent_amount("saltpetre") * 0.01)) + + // Ash is also used IRL in gardening, as a fertilizer enhancer and weed killer + if(S.has_reagent("ash", 1)) + adjustHealth(round(S.get_reagent_amount("ash") * 0.25)) + adjustNutri(round(S.get_reagent_amount("ash") * 0.5)) + adjustWeeds(-1) + // This is more bad ass, and pests get hurt by the corrosive nature of it, not the plant. if(S.has_reagent("diethylamine", 1)) adjustHealth(round(S.get_reagent_amount("diethylamine") * 1)) @@ -576,6 +594,20 @@ adjustHealth(round(S.get_reagent_amount("nutriment") * 0.5)) adjustNutri(round(S.get_reagent_amount("nutriment") * 1)) + // Compost for EVERYTHING + if(S.has_reagent("virusfood", 1)) + adjustNutri(round(S.get_reagent_amount("virusfood") * 0.5)) + adjustHealth(-round(S.get_reagent_amount("virusfood") * 0.5)) + + // FEED ME + if(S.has_reagent("blood", 1)) + adjustNutri(round(S.get_reagent_amount("blood") * 1)) + adjustPests(rand(2,4)) + + // FEED ME SEYMOUR + if(S.has_reagent("strangereagent", 1)) + spawnplant() + // The best stuff there is. For testing/debugging. if(S.has_reagent("adminordrazine", 1)) adjustWater(round(S.get_reagent_amount("adminordrazine") * 1)) @@ -965,6 +997,12 @@ myseed.potency = max(myseed.potency, 0) myseed.potency = min(myseed.potency, 100) +/obj/machinery/hydroponics/proc/spawnplant() // why would you put strange reagent in a hydro tray you monster I bet you also feed them blood + var/list/livingplants = list(/mob/living/simple_animal/hostile/tree, /mob/living/simple_animal/hostile/killertomato) + var/chosen = pick(livingplants) + var/mob/living/simple_animal/hostile/C = new chosen + C.faction = list("plants") + /////////////////////////////////////////////////////////////////////////////// /obj/machinery/hydroponics/soil //Not actually hydroponics at all! Honk! name = "soil"