Squared ProductionRate

This commit is contained in:
Joel 2020-05-10 16:42:25 +02:00
parent e2f903eb8c
commit f39f27ba4e
2 changed files with 2 additions and 1 deletions

View File

@ -69,7 +69,7 @@ namespace Game1
//Generates the map with some random values //Generates the map with some random values
inventory.initInventorySystem(); 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 houseUnit.init(input.getTileSize(), input.getSpacing()); //Generates the house position
tractorUnit.init(houseUnit.GetRectangle(), input); //Generates the Tractor tractorUnit.init(houseUnit.GetRectangle(), input); //Generates the Tractor
tractorUnit.updateSizing(input, 0, houseUnit.getVector(), Time); //Updates the first Size of the Tractor tractorUnit.updateSizing(input, 0, houseUnit.getVector(), Time); //Updates the first Size of the Tractor

View File

@ -249,6 +249,7 @@ class Crops
} }
ProductionRate = ProductionRate / 10; ProductionRate = ProductionRate / 10;
} }
ProductionRate = (float)Math.Pow(ProductionRate, 2.5f);
return ProductionRate; return ProductionRate;
} }