From 58e2093744cea3c7e94765dc086586a211daa1ff Mon Sep 17 00:00:00 2001 From: "johnsonmt88@gmail.com" Date: Mon, 9 Jul 2012 16:33:06 +0000 Subject: [PATCH] Fixes hydroponics not producing food if there is no mutmod in the nutrient Removed process() from machinery/lights as it was not being used. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4020 316c924e-a436-60f5-8080-3fe189b3f50e --- code/game/machinery/hydroponics.dm | 2 +- code/modules/power/lighting.dm | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/code/game/machinery/hydroponics.dm b/code/game/machinery/hydroponics.dm index d3139cce528..17412c5428f 100644 --- a/code/game/machinery/hydroponics.dm +++ b/code/game/machinery/hydroponics.dm @@ -111,7 +111,7 @@ obj/machinery/hydroponics/process() src.health -= rand(1,5) // Harvest code - if(mutmod && src.age > src.myseed.production && (src.age - src.lastproduce) > src.myseed.production && (!src.harvest && !src.dead)) + if(src.age > src.myseed.production && (src.age - src.lastproduce) > src.myseed.production && (!src.harvest && !src.dead)) for(var/i = 0; i < mutmod; i++) if(prob(85)) src.mutate() diff --git a/code/modules/power/lighting.dm b/code/modules/power/lighting.dm index 3c37fb703e7..bf9da9600f0 100644 --- a/code/modules/power/lighting.dm +++ b/code/modules/power/lighting.dm @@ -563,12 +563,14 @@ // timed process // use power +/* #define LIGHTING_POWER_FACTOR 20 //20W per unit luminosity /obj/machinery/light/process() return // if(on) // use_power(luminosity * LIGHTING_POWER_FACTOR, LIGHT) +*/ // called when area power state changes /obj/machinery/light/power_change()