From 93802f3331dddc5905e1fe094d2396de894a3025 Mon Sep 17 00:00:00 2001 From: BOTLester <58360400+BOTLester@users.noreply.github.com> Date: Mon, 11 May 2020 01:54:47 +0200 Subject: [PATCH] small adjustments --- Game1/Sources/Crops/Crops.cs | 4 +++- Game1/Sources/Crops/Farm.cs | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Game1/Sources/Crops/Crops.cs b/Game1/Sources/Crops/Crops.cs index ff09de1..a76b12e 100644 --- a/Game1/Sources/Crops/Crops.cs +++ b/Game1/Sources/Crops/Crops.cs @@ -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() diff --git a/Game1/Sources/Crops/Farm.cs b/Game1/Sources/Crops/Farm.cs index 9fbc3f1..ecb9da9 100644 --- a/Game1/Sources/Crops/Farm.cs +++ b/Game1/Sources/Crops/Farm.cs @@ -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);