feat: added coal factory

This commit is contained in:
2025-05-03 20:07:28 +02:00
parent 2ac12cb09e
commit 86a94602e7

View File

@@ -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