From f39f27ba4e0d703c653f0b37b8822bc27e0b7383 Mon Sep 17 00:00:00 2001 From: Joel Date: Sun, 10 May 2020 16:42:25 +0200 Subject: [PATCH] Squared ProductionRate --- Game1/Game1.cs | 2 +- Game1/Sources/Crops/Crops.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Game1/Game1.cs b/Game1/Game1.cs index 40b9fcf..cbbff67 100644 --- a/Game1/Game1.cs +++ b/Game1/Game1.cs @@ -69,7 +69,7 @@ namespace Game1 //Generates the map with some random values inventory.initInventorySystem(); - input.init(graphics, new Vector2(16,16), 56, 10); //Generates the starting size + input.init(graphics, new Vector2(16,16), 56, 1); //Generates the starting size houseUnit.init(input.getTileSize(), input.getSpacing()); //Generates the house position tractorUnit.init(houseUnit.GetRectangle(), input); //Generates the Tractor tractorUnit.updateSizing(input, 0, houseUnit.getVector(), Time); //Updates the first Size of the Tractor diff --git a/Game1/Sources/Crops/Crops.cs b/Game1/Sources/Crops/Crops.cs index d4fd891..7ffe8a7 100644 --- a/Game1/Sources/Crops/Crops.cs +++ b/Game1/Sources/Crops/Crops.cs @@ -249,6 +249,7 @@ class Crops } ProductionRate = ProductionRate / 10; } + ProductionRate = (float)Math.Pow(ProductionRate, 2.5f); return ProductionRate; }