feat: added coal factory
This commit is contained in:
@@ -27,7 +27,8 @@ public enum Item implements Buildable {
|
|||||||
VILLAGER_HOUSE("Villager house", true),
|
VILLAGER_HOUSE("Villager house", true),
|
||||||
PUB("Pub", true),
|
PUB("Pub", true),
|
||||||
WINERY("Winery", true),
|
WINERY("Winery", true),
|
||||||
WELL("Well", true);
|
WELL("Well", true),
|
||||||
|
COAL_FACTORY("Coal factory", true),;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
WHEAT.function = game -> {
|
WHEAT.function = game -> {
|
||||||
@@ -123,6 +124,14 @@ public enum Item implements Buildable {
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
COAL_FACTORY.function = game -> {
|
||||||
|
if (!game.getBuildings().contains(Item.VILLAGER_HOUSE)) {
|
||||||
|
System.out.println(" "); // TODO
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
|
|||||||
Reference in New Issue
Block a user