diff --git a/src/main/java/cz/jull/Game.java b/src/main/java/cz/jull/Game.java index 450c3f1..0c49cf5 100644 --- a/src/main/java/cz/jull/Game.java +++ b/src/main/java/cz/jull/Game.java @@ -85,6 +85,8 @@ public class Game { if (pathType == PathType.MAIN_PATH) { events.add(Events.ATTACK); } + + Cli.pressEnter(); } public void build(Item item) { diff --git a/src/main/java/cz/jull/tui/Menu.java b/src/main/java/cz/jull/tui/Menu.java index bdb1e05..642d2d4 100644 --- a/src/main/java/cz/jull/tui/Menu.java +++ b/src/main/java/cz/jull/tui/Menu.java @@ -100,6 +100,8 @@ public class Menu { } } case 3 -> { + game.getStrings().print("stats"); + System.out.println(); game.getStrings().print("forestType", game.getForestType()); game.getStrings().print("soilType", game.getSoilType()); game.getStrings().print("pathType", game.getPathType()); @@ -107,6 +109,9 @@ public class Menu { System.out.println(); game.getStrings().print("coins", game.getPlayer().getCoins()); System.out.println(); + game.getStrings().print("forestSize", game.getForestType().getSize()); + System.out.println(); + Cli.pressEnter(); } } } diff --git a/src/main/java/cz/jull/tui/Strings.java b/src/main/java/cz/jull/tui/Strings.java index dbee79f..9b65818 100644 --- a/src/main/java/cz/jull/tui/Strings.java +++ b/src/main/java/cz/jull/tui/Strings.java @@ -30,14 +30,14 @@ public class Strings { private String cantBeBuiltPub; private String cantBeBuiltWinery; private String cantBeBuiltCheeseFactory; - private String cantBeBoughtVillagerHouse; - private String cantBeBoughtAll; private String cantBuild; private String cantCutTrees; private String cantMilkCows; private String cantProduce; private String cantSell; private String cantBuy; + private String forestSize; + private String stats; /** diff --git a/strings.json b/strings.json index f98102b..6a6b25e 100644 --- a/strings.json +++ b/strings.json @@ -17,11 +17,11 @@ "cantBeBuiltPub": "First you need to built hops farmland before a pub! You need hops you know!", "cantBeBuiltWinery": "First you need to built vineyard before a winery! You need grapevines you know!", "cantBeBuiltCheeseFactory": "First you need to own cows before a cheese factory! You need milk you know!", - "cantBeBoughtVillagerHouse": "First you need to buy a church before villager houses!", - "cantBeBoughtAll": "Buy a villager house first!", "cantBuild": "You don`t have that item in your inventory!", "cantCutTrees": "You need {0} axes to cut trees!", "cantMilkCows": "You don`t own any cows!", "cantProduce": "You can`t produce when you dont have {0}", - "cantSell": "You can`t sell this item! You don`t have it!" + "cantSell": "You can`t sell this item! You don`t have it!", + "forestSize": "The size of your forest is {0} trees", + "stats": "Your stats: " } \ No newline at end of file