chore: Reorganising strings

This commit is contained in:
2025-05-30 16:33:08 +02:00
parent a6958cb519
commit 1f07e65619
2 changed files with 30 additions and 20 deletions

View File

@@ -12,17 +12,31 @@ import java.text.MessageFormat;
*/
@Getter
public class Strings {
private String welcome;
// Stats
private String stats;
private String currentDay;
private String event;
private String forestType;
private String soilType;
private String pathType;
private String waterType;
private String coins;
private String forestSize;
// Normal strings
private String welcome;
private String marketGreeting;
private String marketBuy;
private String marketBuyMessage;
private String marketSell;
// Info
private String marketBuyMessage;
private String marketSellMessage;
private String eventFire;
private String eventFlood;
private String eventAttack;
// Errors
private String cantBeBuiltCows;
private String cantBeBuiltChurch;
private String cantBeBuiltVillagerHouse;
@@ -30,22 +44,15 @@ public class Strings {
private String cantBeBuiltPub;
private String cantBeBuiltWinery;
private String cantBeBuiltCheeseFactory;
private String noVillagerHouseMessage;
private String cantBuild;
private String cantCutTrees;
private String cantMilkCows;
private String cantProduce;
private String cantSell;
private String cantBuy;
private String forestSize;
private String stats;
private String currentDay;
private String cantMilkToMuch;
private String noTrees;
private String event;
private String eventFire;
private String eventFlood;
private String eventAttack;
private String noVillagerHouseMessage;
/**
* Loads strings from json file

View File

@@ -1,15 +1,25 @@
{
"welcome": "Welcome player! ",
"stats": "Your stats: ",
"currentDay": "\u001B[4;37mDay: {0}\u001B[0m",
"event": "Event for this day: {0}",
"forestType": "Your \u001B[0;32mforest\u001B[0m size: {0}",
"soilType": "Your \u001B[38;2;150;93;0msoil\u001B[0m type size: {0}",
"pathType": "Your \u001B[38;2;255;126;0mpath\u001B[0m type: {0}",
"waterType": "Your \u001B[0;34mwater\u001B[0m type: {0}",
"coins": "Amount of \u001B[0;33mCoins\u001B[0m: {0}",
"forestSize": "The size of your forest is {0} trees",
"welcome": "Welcome player! ",
"marketGreeting": "Welcome to Market!",
"marketBuy": "Pick which item you want to buy",
"marketBuyMessage": "Info: You bought \u001B[4;37m{0}\u001B[0m",
"marketSell": "Pick which item you want to sell",
"marketBuyMessage": "Info: You bought \u001B[4;37m{0}\u001B[0m",
"marketSellMessage": "Info: You sold \u001B[4;37m{0}\u001B[0m",
"eventFire": "Info: Fire! You lost 10 trees...",
"eventFlood": "Info: Flood! You lost All of your farmlands... If you had them.",
"eventAttack": "Info: Attack! Your villagers got robbed and you lost \u001B[0;33m100 coins\u001B[0m...",
"cantBeBuiltCows": "\u001B[4;31mError: First you need to build 3 villager houses before owning cows!\u001B[0m",
"cantBeBuiltChurch": "\u001B[4;31mError: You can`t have more than 1 church!\u001B[0m",
"cantBeBuiltVillagerHouse": "\u001B[4;31mError: First you need to built church before villager houses!\u001B[0m",
@@ -23,13 +33,6 @@
"cantMilkCows": "\u001B[4;31mError: You don`t own any cows!\u001B[0m",
"cantProduce": "\u001B[4;31mError: You can`t produce when you dont have {0}\u001B[0m",
"cantSell": "\u001B[4;31mError: You can`t sell this item! You don`t have it!\u001B[0m",
"forestSize": "The size of your forest is {0} trees",
"stats": "Your stats: ",
"currentDay": "\u001B[4;37mDay: {0}\u001B[0m",
"cantMilkToMuch": "\u001B[4;31mError: You milked the cow already 3 times today!\u001B[0m",
"noTrees": "\u001B[4;31mError: You don't have any trees left!\u001B[0m",
"event": "Event for this day: {0}",
"eventFire": "Info: Fire! You lost 10 trees...",
"eventFlood": "Info: Flood! You lost All of your farmlands... If you had them.",
"eventAttack": "Info: Attack! Your villagers got robbed and you lost \u001B[0;33m100 coins\u001B[0m..."
"noTrees": "\u001B[4;31mError: You don't have any trees left!\u001B[0m"
}