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