From 8743cd89a4a533620dbfa0dd43534b29ffba403d Mon Sep 17 00:00:00 2001 From: Peliia Date: Thu, 27 Aug 2015 18:59:16 +0200 Subject: [PATCH] Dish Incubator v2 Adheres to pointers laid out by Ginja. --- code/modules/virus2/dishincubator.dm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/code/modules/virus2/dishincubator.dm b/code/modules/virus2/dishincubator.dm index 1648caf639..ed6810980c 100644 --- a/code/modules/virus2/dishincubator.dm +++ b/code/modules/virus2/dishincubator.dm @@ -128,7 +128,7 @@ nanomanager.update_uis(src) if(beaker) - if(beaker.reagents.remove_reagent("virusfood",5) && foodsupply < 100) + if(foodsupply < 100 && beaker.reagents.remove_reagent("virusfood",5)) if(foodsupply + 10 <= 100) foodsupply += 10 else @@ -177,10 +177,7 @@ return 1 if (href_list["rad"]) - if(radiation + 10 > 100) - radiation = 100 - else - radiation += 10 + radiation = min(100, radiation + 10) return 1 if (href_list["flush"])