From 6fe50a36010311135207641afe6e6f02c6d4e136 Mon Sep 17 00:00:00 2001 From: ma44 Date: Mon, 25 Jul 2016 15:52:48 -0500 Subject: [PATCH] Indentation fix for #19477 (Saltpetre rounding bug fix + tweak) (#19482) * Update hydroponics.dm * Update hydroponics.dm * Update hydroponics.dm --- code/modules/hydroponics/hydroponics.dm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/modules/hydroponics/hydroponics.dm b/code/modules/hydroponics/hydroponics.dm index e6c37ea39f4..1f63b52ed03 100644 --- a/code/modules/hydroponics/hydroponics.dm +++ b/code/modules/hydroponics/hydroponics.dm @@ -615,11 +615,11 @@ // 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)) - if(myseed) - myseed.adjust_production(-round(S.get_reagent_amount("saltpetre") * 0.01)) - myseed.adjust_potency(round(S.get_reagent_amount("saltpetre") * 0.05)) - + var/salt = S.get_reagent_amount("saltpetre") + adjustHealth(round(salt * 0.25)) + if (myseed) + myseed.adjust_production(-round(salt/100)-prob(salt%100)) + myseed.adjust_potency(round(salt*0.15)) // 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))