small adjustments
This commit is contained in:
parent
14490daf9f
commit
93802f3331
@ -47,7 +47,9 @@ class Crops
|
|||||||
|
|
||||||
public float getSpeedFactor(float tractorSpeed)
|
public float getSpeedFactor(float tractorSpeed)
|
||||||
{
|
{
|
||||||
return (1f * tractorSpeed) / getCostOnMovement();
|
if (getCostOnMovement() == 1)
|
||||||
|
return (1f * tractorSpeed);
|
||||||
|
return (1f * tractorSpeed) / (getCostOnMovement()/5.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
public SoilProperties getSoilProperties()
|
public SoilProperties getSoilProperties()
|
||||||
|
@ -43,11 +43,11 @@ class Farm
|
|||||||
x = r.Next(1, 3);
|
x = r.Next(1, 3);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
if (perlinNoise[i][j] > 0 && perlinNoise[i][j] < 0.2f)
|
if (perlinNoise[i][j] > 0 && perlinNoise[i][j] < 0.15f)
|
||||||
x = 0;
|
x = 0;
|
||||||
else if (perlinNoise[i][j] >= 0.2f && perlinNoise[i][j] < 0.7f)
|
else if (perlinNoise[i][j] >= 0.15f && perlinNoise[i][j] < 0.8f)
|
||||||
x = 1;
|
x = 1;
|
||||||
else if (perlinNoise[i][j] >= 0.7f)
|
else if (perlinNoise[i][j] >= 0.8f)
|
||||||
x = 2;
|
x = 2;
|
||||||
crops[i, j] = new Crops();
|
crops[i, j] = new Crops();
|
||||||
crops[i, j].setStatus(x);
|
crops[i, j].setStatus(x);
|
||||||
|
Loading…
Reference in New Issue
Block a user