mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 15:08:02 +01:00
-Fixed issue 788. Mushroom's water levels were not being checked to see if they were below 0.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4433 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -53,15 +53,13 @@ obj/machinery/hydroponics/process()
|
||||
|
||||
//Water//////////////////////////////////////////////////////////////////
|
||||
// Drink random amount of water
|
||||
src.waterlevel -= rand(1,6)
|
||||
src.waterlevel = max(src.waterlevel - rand(1,6), 0)
|
||||
|
||||
// If the plant is dry, it loses health pretty fast, unless mushroom
|
||||
if(src.waterlevel <= 10 && src.myseed.plant_type != 2)
|
||||
src.health -= rand(0,1)
|
||||
if(src.waterlevel <= 0)
|
||||
src.health -= rand(0,2)
|
||||
if(src.waterlevel < 0) //Dont let it drop below 0
|
||||
src.waterlevel = 0
|
||||
|
||||
// Sufficient water level and nutrient level = plant healthy
|
||||
else if(src.waterlevel > 10 && src.nutrilevel > 0)
|
||||
|
||||
Reference in New Issue
Block a user