forked from s425077/PotatoPlan
Soil properites
This commit is contained in:
parent
3bae81f270
commit
d4acf1cc78
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user