Skip to content

Commit

Permalink
Probably should round this
Browse files Browse the repository at this point in the history
  • Loading branch information
kiVts committed Oct 5, 2023
1 parent 325d7b8 commit dffb18b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/hydroponics/hydro_tray.dm
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
if(seed.nutrient_consumption > 0 && nutrilevel > 0 && prob(25))
nutrilevel -= max(0,seed.nutrient_consumption * HYDRO_SPEED_MULTIPLIER)
if(seed.water_consumption > 0 && waterlevel > 0 && prob(25))
waterlevel -= max(0,(seed.water_consumption * HYDRO_WATER_CONSUMPTION_MULTIPLIER) * HYDRO_SPEED_MULTIPLIER)
waterlevel -= round(max(0,(seed.water_consumption * HYDRO_WATER_CONSUMPTION_MULTIPLIER) * HYDRO_SPEED_MULTIPLIER))

// Make sure the plant is not starving or thirsty. Adequate
// water and nutrients will cause a plant to become healthier.
Expand Down

0 comments on commit dffb18b

Please sign in to comment.