From c093a644292364e36160276ae219d6c08fc7336b Mon Sep 17 00:00:00 2001 From: Crazylemon Date: Fri, 23 Oct 2015 12:45:20 -0700 Subject: [PATCH] Makes upgraded hydroponic trays actually do something --- code/modules/hydroponics/trays/tray.dm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/modules/hydroponics/trays/tray.dm b/code/modules/hydroponics/trays/tray.dm index 874637995a0..5bc193892a0 100644 --- a/code/modules/hydroponics/trays/tray.dm +++ b/code/modules/hydroponics/trays/tray.dm @@ -514,8 +514,8 @@ health = 0 dead = 0 - nutrilevel = max(0,min(nutrilevel,10)) - waterlevel = max(0,min(waterlevel,100)) + nutrilevel = max(0,min(nutrilevel,maxnutri)) + waterlevel = max(0,min(waterlevel,maxwater)) pestlevel = max(0,min(pestlevel,10)) weedlevel = max(0,min(weedlevel,10)) toxins = max(0,min(toxins,10)) @@ -793,8 +793,8 @@ if(!Adjacent(user)) return - user << "Water: [round(waterlevel,0.1)]/100" - user << "Nutrient: [round(nutrilevel,0.1)]/10" + user << "Water: [round(waterlevel,0.1)]/[maxwater]" + user << "Nutrient: [round(nutrilevel,0.1)]/[maxnutri]" if(weedlevel >= 5) user << "\The [src] is infested with weeds!" @@ -864,4 +864,4 @@ if(istype(holding, /obj/item/weapon/tank)) usr << "\blue You eject [holding.name] from [src]." holding.loc = loc - holding = null + holding = null \ No newline at end of file