1
0
forked from s425077/PotatoPlan

small adjustments

This commit is contained in:
BOTLester 2020-05-11 01:54:47 +02:00
parent 14490daf9f
commit 93802f3331
2 changed files with 6 additions and 4 deletions

View File

@ -47,7 +47,9 @@ class Crops
public float getSpeedFactor(float tractorSpeed)
{
return (1f * tractorSpeed) / getCostOnMovement();
if (getCostOnMovement() == 1)
return (1f * tractorSpeed);
return (1f * tractorSpeed) / (getCostOnMovement()/5.0f);
}
public SoilProperties getSoilProperties()

View File

@ -43,11 +43,11 @@ class Farm
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;
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;
else if (perlinNoise[i][j] >= 0.7f)
else if (perlinNoise[i][j] >= 0.8f)
x = 2;
crops[i, j] = new Crops();
crops[i, j].setStatus(x);