chore: minor changes

This commit is contained in:
2025-05-25 14:23:36 +02:00
parent e429fcf26c
commit e8c658f288
4 changed files with 12 additions and 5 deletions

View File

@@ -85,6 +85,8 @@ public class Game {
if (pathType == PathType.MAIN_PATH) { if (pathType == PathType.MAIN_PATH) {
events.add(Events.ATTACK); events.add(Events.ATTACK);
} }
Cli.pressEnter();
} }
public void build(Item item) { public void build(Item item) {

View File

@@ -100,6 +100,8 @@ public class Menu {
} }
} }
case 3 -> { case 3 -> {
game.getStrings().print("stats");
System.out.println();
game.getStrings().print("forestType", game.getForestType()); game.getStrings().print("forestType", game.getForestType());
game.getStrings().print("soilType", game.getSoilType()); game.getStrings().print("soilType", game.getSoilType());
game.getStrings().print("pathType", game.getPathType()); game.getStrings().print("pathType", game.getPathType());
@@ -107,6 +109,9 @@ public class Menu {
System.out.println(); System.out.println();
game.getStrings().print("coins", game.getPlayer().getCoins()); game.getStrings().print("coins", game.getPlayer().getCoins());
System.out.println(); System.out.println();
game.getStrings().print("forestSize", game.getForestType().getSize());
System.out.println();
Cli.pressEnter();
} }
} }
} }

View File

@@ -30,14 +30,14 @@ public class Strings {
private String cantBeBuiltPub; private String cantBeBuiltPub;
private String cantBeBuiltWinery; private String cantBeBuiltWinery;
private String cantBeBuiltCheeseFactory; private String cantBeBuiltCheeseFactory;
private String cantBeBoughtVillagerHouse;
private String cantBeBoughtAll;
private String cantBuild; private String cantBuild;
private String cantCutTrees; private String cantCutTrees;
private String cantMilkCows; private String cantMilkCows;
private String cantProduce; private String cantProduce;
private String cantSell; private String cantSell;
private String cantBuy; private String cantBuy;
private String forestSize;
private String stats;
/** /**

View File

@@ -17,11 +17,11 @@
"cantBeBuiltPub": "First you need to built hops farmland before a pub! You need hops you know!", "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!", "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!", "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!", "cantBuild": "You don`t have that item in your inventory!",
"cantCutTrees": "You need {0} axes to cut trees!", "cantCutTrees": "You need {0} axes to cut trees!",
"cantMilkCows": "You don`t own any cows!", "cantMilkCows": "You don`t own any cows!",
"cantProduce": "You can`t produce when you dont have {0}", "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: "
} }