diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/resources/assets/molehunt/lang/en_us.json | 12 | ||||
| -rw-r--r-- | src/client/resources/assets/molehunt/lang/fr_fr.json | 12 | ||||
| -rw-r--r-- | src/main/java/world/anhgelus/floodhunt/game/Game.java | 12 |
3 files changed, 18 insertions, 18 deletions
diff --git a/src/client/resources/assets/molehunt/lang/en_us.json b/src/client/resources/assets/molehunt/lang/en_us.json index ee20b9a..61ee8e7 100644 --- a/src/client/resources/assets/molehunt/lang/en_us.json +++ b/src/client/resources/assets/molehunt/lang/en_us.json @@ -2,18 +2,18 @@ "commands.floodhunt.error.game_not_started": "The Floodhunt game has not been started yet.", "commands.floodhunt.timer.show": "Showing Floodhunt timer.", "commands.floodhunt.timer.hide": "Hiding Floodhunt timer.", - "commands.floodhunt.role.mole": "§cYou are infected.\nInfect all the survivors before the timer runs out.", - "commands.floodhunt.role.mole.list": "§eThose who are infected are: %s", + "commands.floodhunt.role.infected": "§cYou are infected.\nInfect all the survivors before the timer runs out.", + "commands.floodhunt.role.infected.list": "§eThose who are infected are: %s", "commands.floodhunt.role.survivor": "§aYou are not infected. \nSurvive until the timer runs out, and try to discover who's infected.", - "commands.floodhunt.role.survivor.mole_count": "§eThere are %d §einfected among you.", + "commands.floodhunt.role.survivor.infected_count": "§eThere are %d §einfected among you.", "commands.floodhunt.stop.success": "The Floodhunt game has been stopped.", "floodhunt.game.end.suspense.title": "§eAnd the winners are...", - "floodhunt.game.end.winners.moles.title": "§cThe infected!", + "floodhunt.game.end.winners.infected.title": "§cThe infected!", "floodhunt.game.end.winners.survivors.title": "§The survivors!", "floodhunt.game.end.winners.subtitle": "§6Those who were infected were %s", "floodhunt.game.start.suspense": "§eYou are...", - "floodhunt.game.start.mole.title": "§cInfected!", - "floodhunt.game.start.mole.subtitle": "§eGet the list of other infected people with §6/floodhunt role§e and spread the infection.", + "floodhunt.game.start.infected.title": "§cInfected!", + "floodhunt.game.start.infected.subtitle": "§eGet the list of other infected people with §6/floodhunt role§e and spread the infection.", "floodhunt.game.start.survivor.title": "§aA survivor!", "floodhunt.game.start.survivor.subtitle": "§eTry to survive and find out who's infected!", "floodhunt.game.infected": "§cYou are infected.", diff --git a/src/client/resources/assets/molehunt/lang/fr_fr.json b/src/client/resources/assets/molehunt/lang/fr_fr.json index d932a41..29b3c50 100644 --- a/src/client/resources/assets/molehunt/lang/fr_fr.json +++ b/src/client/resources/assets/molehunt/lang/fr_fr.json @@ -2,18 +2,18 @@ "commands.floodhunt.error.game_not_started": "La partie de Floodhunt n'a pas encore commencé.", "commands.floodhunt.timer.show": "Le timer est maintenant affiché.", "commands.floodhunt.timer.hide": "Le timer est maintenant caché.", - "commands.floodhunt.role.mole": "§cVous êtes infecté(e)s.\nInfectez tous les survivants avant la fin de la partie.", - "commands.floodhunt.role.mole.list": "§eLes infecté(e)s sont : %s", + "commands.floodhunt.role.infected": "§cVous êtes infecté(e)s.\nInfectez tous les survivants avant la fin de la partie.", + "commands.floodhunt.role.infected.list": "§eLes infecté(e)s sont : %s", "commands.floodhunt.role.survivor": "§aVous n'êtes pas infecté(e)s. \nSurvivez jusqu'à la fin, et découvrez qui est infecté(e).", - "commands.floodhunt.role.survivor.mole_count": "§eIl y a %d §einfecté(es) parmi vous.", + "commands.floodhunt.role.survivor.infected_count": "§eIl y a %d §einfecté(es) parmi vous.", "commands.floodhunt.stop.success": "La partie de Floodhunt a été arrêtée.", "floodhunt.game.end.suspense.title": "§eEt les gagnants sont...", - "floodhunt.game.end.winners.moles.title": "§cLes infectés !", + "floodhunt.game.end.winners.infected.title": "§cLes infectés !", "floodhunt.game.end.winners.survivors.title": "§aLes survivants !", "floodhunt.game.end.winners.subtitle": "§Les survivants sont", "floodhunt.game.start.suspense": "§eVous êtes...", - "floodhunt.game.start.mole.title": "§cInfecté(e)s !", - "floodhunt.game.start.mole.subtitle": "§eRécupérer la liste des infecté(e)s avec §6/floodhunt role", + "floodhunt.game.start.infected.title": "§cInfecté(e)s !", + "floodhunt.game.start.infected.subtitle": "§eRécupérer la liste des infecté(e)s avec §6/floodhunt role", "floodhunt.game.start.survivor.title": "§aPas infecté(e)s!", "floodhunt.game.start.survivor.subtitle": "§eEssayez de survivre et de trouver qui est infecté !", "floodhunt.game.infected": "§cVous êtes infecté(e)s.", diff --git a/src/main/java/world/anhgelus/floodhunt/game/Game.java b/src/main/java/world/anhgelus/floodhunt/game/Game.java index b04b1e9..8c68228 100644 --- a/src/main/java/world/anhgelus/floodhunt/game/Game.java +++ b/src/main/java/world/anhgelus/floodhunt/game/Game.java @@ -88,8 +88,8 @@ public class Game { playerManager.getPlayerList().forEach(p -> { p.networkHandler.sendPacket(timing); if (infected.contains(p.getUuid())) { - p.networkHandler.sendPacket(new TitleS2CPacket(Text.translatable("floodhunt.game.start.mole.title"))); - p.networkHandler.sendPacket(new SubtitleS2CPacket(Text.translatable("floodhunt.game.start.mole.subtitle"))); + p.networkHandler.sendPacket(new TitleS2CPacket(Text.translatable("floodhunt.game.start.infected.title"))); + p.networkHandler.sendPacket(new SubtitleS2CPacket(Text.translatable("floodhunt.game.start.infected.subtitle"))); } else { p.networkHandler.sendPacket(new TitleS2CPacket(Text.translatable("floodhunt.game.start.survivor.title"))); p.networkHandler.sendPacket(new SubtitleS2CPacket(Text.translatable("floodhunt.game.start.survivor.subtitle"))); @@ -140,7 +140,7 @@ public class Game { timer.floodhunt_runTask(new TickTask(() -> { TitleS2CPacket winner; if (wonByInfected()) { - winner = new TitleS2CPacket(Text.translatable("floodhunt.game.end.winners.moles.title")); + winner = new TitleS2CPacket(Text.translatable("floodhunt.game.end.winners.infected.title")); } else { winner = new TitleS2CPacket(Text.translatable("floodhunt.game.end.winners.survivors.title")); } @@ -178,8 +178,8 @@ public class Game { } public boolean wonByInfected() { - final var moles = getInfected().map(PlayerEntity::getUuid).collect(Collectors.toSet()); - return !moles.isEmpty() && moles.containsAll( + final var infecteds = getInfected().map(PlayerEntity::getUuid).collect(Collectors.toSet()); + return !infecteds.isEmpty() && infecteds.containsAll( server.getPlayerManager() .getPlayerList() .stream() @@ -204,6 +204,6 @@ public class Game { if (wonByInfected()) end(); player.changeGameMode(GameMode.SURVIVAL); player.sendMessage(Text.translatable("floodhunt.game.infected")); - player.sendMessage(Text.translatable("floodhunt.game.start.mole.subtitle")); + player.sendMessage(Text.translatable("floodhunt.game.start.infected.subtitle")); } } |
