From d4acf1cc781f7f87784b3f1839354ed2a0017638 Mon Sep 17 00:00:00 2001 From: BOTLester <58360400+BOTLester@users.noreply.github.com> Date: Wed, 6 May 2020 22:47:56 +0200 Subject: [PATCH] Soil properites --- Game1/Sources/Crops/SoilProperties.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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)