Merge branch 'dev' of https://git.wmi.amu.edu.pl/s425077/PotatoPlan into dev
This commit is contained in:
commit
3134ce7d3a
@ -24,15 +24,6 @@ class AI
|
||||
public void init()
|
||||
{
|
||||
inventory.initInventorySystem();
|
||||
inventory.addItem(1, 1);
|
||||
inventory.addItem(1, 1);
|
||||
inventory.addItem(3, 1);
|
||||
inventory.addItem(5, 1);
|
||||
inventory.addItem(7, 1);
|
||||
inventory.addItem(7, 1);
|
||||
inventory.addItem(10, 1);
|
||||
inventory.addItem(10, 1);
|
||||
inventory.useItem(10, 1);
|
||||
}
|
||||
|
||||
|
||||
@ -97,6 +88,11 @@ class AI
|
||||
if (farm.getCrop((int)tractorPos.X, (int)tractorPos.Y).getCropTimer() == 1)
|
||||
{
|
||||
farm.setCropStatus(tractorPos.X, tractorPos.Y);
|
||||
if (farm.getCrop((int)tractorPos.X, (int)tractorPos.Y).getStatus() == 2)
|
||||
{
|
||||
inventory.addItem(farm.getCrop((int)tractorPos.X, (int)tractorPos.Y).getCropType() - 1, 1);
|
||||
}
|
||||
|
||||
}
|
||||
return farm;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user