diff --git a/Game1/Sources/Crops/SoilProperties.cs b/Game1/Sources/Crops/SoilProperties.cs index 2a6ee14..b7c534a 100644 --- a/Game1/Sources/Crops/SoilProperties.cs +++ b/Game1/Sources/Crops/SoilProperties.cs @@ -11,7 +11,7 @@ class SoilProperties public string soilType = "potato"; - public float Temparature; + public float Temperature; public float Humidity; public float Moisture; public float Nitrogen; @@ -20,12 +20,12 @@ class SoilProperties public void setSoilProperties() { - Temparature = GetRandomNumber(22, 30); - Humidity = GetRandomNumber(1, 5); - Moisture = GetRandomNumber(1, 10); - Nitrogen = GetRandomNumber(0.5 , 1); - Potassium = GetRandomNumber(5, 20); - Phosphorous = GetRandomNumber(4, 50); + Temperature = GetRandomNumber(22, 30); + Humidity = Temperature * GetRandomNumber(1.9, 2.1); + Moisture = GetRandomNumber(20, 70); + Nitrogen = GetRandomNumber(4 , 55); + Potassium = GetRandomNumber(0, 28); + Phosphorous = GetRandomNumber(0, 60); } public float GetRandomNumber(double minimum, double maximum)