Indentation fix for #19477 (Saltpetre rounding bug fix + tweak) (#19482)

* Update hydroponics.dm

* Update hydroponics.dm

* Update hydroponics.dm
This commit is contained in:
ma44
2016-07-25 22:52:48 +02:00
committed by AnturK
parent cd4a22f6bc
commit 6fe50a3601
+5 -5
View File
@@ -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))