feat: New dialogs and minor changes

This commit is contained in:
2025-01-05 17:35:53 +01:00
parent 5c5058f6c5
commit d2df9ab696
6 changed files with 22 additions and 19 deletions

View File

@ -295,7 +295,7 @@ public class Chronos {
var body = res.body().getData().get();
switch (body) {
case ALREADY_TAKEN -> Cli.type(Cli.Colors.YELLOW + character.getName() + ": " + Cli.Colors.RESET + "Už jsem ti mé itemy dal. Už pro tebe nic nemám.");
case ALREADY_TAKEN -> Cli.type(character, "Už jsem ti mé itemy dal a nic jiného pro tebe nemám.");
case DONE -> Cli.gotItems(character.getInventory());
}
}

View File

@ -69,6 +69,7 @@ public class CommandPalette {
System.out.println("\n\n");
Cli.printHeader("Hra byla vyhrána");
Cli.typeSkritek(content.getMsg());
Cli.printHeader("Konec");
var configPath = ConfigPathProvider.getPath();

View File

@ -29,7 +29,7 @@ public class Baker {
return;
}
var options = new String[]{"Dát pekařovi vodu a mouku", "Nedat pekařovi vodu a mouku"};
var options = new String[]{"Dát pekařce vodu a mouku", "Nedat pekařce vodu a mouku"};
var selected = Cli.selectOptionIndex(Arrays.stream(options).toList());
if (selected == 0) {

View File

@ -80,7 +80,7 @@ public class Wordle {
Cli.type(character, "Vyhrál jsi! Slovo bylo: " + getCurrentWord(wordleData.getFeedbackHistory()));
Cli.gotItems(data.getItems());
}
case GAME_LOST -> Cli.type(character, "Prohrál jsi! Bohužel jste neuhodl slovo. Fragment klíče nedostanete.");
case GAME_LOST -> Cli.type(character, "Prohrál jsi! Bohužel jsi neuhodl slovo. Fragment klíče nedostaneš.");
case GAME_CONTINUE, GAME_CREATED -> {
System.out.println("Zbývající pokusy: " + wordleData.getAttemptsRemaining());
displayFeedback(wordleData.getFeedbackHistory());

View File

@ -126,7 +126,7 @@ public class Cli {
}
var itemsMapped = items.stream().map(Item::toString).toList();
info("Dostal jste: " + String.join(", ", itemsMapped));
info("Dostal/a jsi: " + String.join(", ", itemsMapped));
}
public static void type(Character character, String text) {