From c89fee6b0589855652ad7b84d6e4c156885eebff Mon Sep 17 00:00:00 2001 From: Joel Date: Mon, 25 May 2020 00:03:26 +0200 Subject: [PATCH] asd --- Game1/Sources/Crops/Farm.cs | 2 +- Game1/Sources/Smart/SmartTractor.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Game1/Sources/Crops/Farm.cs b/Game1/Sources/Crops/Farm.cs index dcb59b7..93ff002 100644 --- a/Game1/Sources/Crops/Farm.cs +++ b/Game1/Sources/Crops/Farm.cs @@ -273,7 +273,7 @@ class Farm private int getHighestProductionRate(int x, int y) { - int i = 1, holderIndex = 0; + int i = 6, holderIndex = 0; float holder = 0, SampleHolder = 0; do { diff --git a/Game1/Sources/Smart/SmartTractor.cs b/Game1/Sources/Smart/SmartTractor.cs index 5347c9f..c7c5688 100644 --- a/Game1/Sources/Smart/SmartTractor.cs +++ b/Game1/Sources/Smart/SmartTractor.cs @@ -44,7 +44,6 @@ class SmartTractor tileSize = newTileSize; Spacing = newSpacing; Rotation = rotation; - } public void init(Vector2 nHousePos) @@ -52,6 +51,7 @@ class SmartTractor ai.init(); housePos = nHousePos; farm.init(new Vector2(100, (GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height / tileSize) - 125 / tileSize), housePos / (tileSize + Spacing)); + farm.UpdatePreferedCrops(Size); } public void drawInventory(Input input, SpriteBatch spriteBatch, SpriteFont Bold, Cargo itemStorageDefined)