asd
This commit is contained in:
parent
8ab1d77d9c
commit
c89fee6b05
@ -273,7 +273,7 @@ class Farm
|
|||||||
|
|
||||||
private int getHighestProductionRate(int x, int y)
|
private int getHighestProductionRate(int x, int y)
|
||||||
{
|
{
|
||||||
int i = 1, holderIndex = 0;
|
int i = 6, holderIndex = 0;
|
||||||
float holder = 0, SampleHolder = 0;
|
float holder = 0, SampleHolder = 0;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
@ -44,7 +44,6 @@ class SmartTractor
|
|||||||
tileSize = newTileSize;
|
tileSize = newTileSize;
|
||||||
Spacing = newSpacing;
|
Spacing = newSpacing;
|
||||||
Rotation = rotation;
|
Rotation = rotation;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void init(Vector2 nHousePos)
|
public void init(Vector2 nHousePos)
|
||||||
@ -52,6 +51,7 @@ class SmartTractor
|
|||||||
ai.init();
|
ai.init();
|
||||||
housePos = nHousePos;
|
housePos = nHousePos;
|
||||||
farm.init(new Vector2(100, (GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height / tileSize) - 125 / tileSize), housePos / (tileSize + Spacing));
|
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)
|
public void drawInventory(Input input, SpriteBatch spriteBatch, SpriteFont Bold, Cargo itemStorageDefined)
|
||||||
|
Loading…
Reference in New Issue
Block a user