From 8adc64455f072fda00d4745ac91d9d7cc6461926 Mon Sep 17 00:00:00 2001 From: Kamesuta Date: Wed, 11 Nov 2020 02:18:47 +0900 Subject: [PATCH] xtu ltu --- .../teamfruit/sushida/listener/ManageCommandListener.java | 2 +- src/main/java/net/teamfruit/sushida/mode/TimeLimitMode.java | 5 +++++ src/main/resources/romaji.csv | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/teamfruit/sushida/listener/ManageCommandListener.java b/src/main/java/net/teamfruit/sushida/listener/ManageCommandListener.java index 28d6c93..a7c0335 100644 --- a/src/main/java/net/teamfruit/sushida/listener/ManageCommandListener.java +++ b/src/main/java/net/teamfruit/sushida/listener/ManageCommandListener.java @@ -432,7 +432,7 @@ public boolean onCommand(CommandSender sender, Command command, String s, String if (arg2 == null) throw new NumberFormatException(); value = Integer.parseInt(arg2); - if (value <= 0) + if (value < 0) throw new NumberFormatException(); } catch (NumberFormatException e) { player.sendMessage(new ComponentBuilder() diff --git a/src/main/java/net/teamfruit/sushida/mode/TimeLimitMode.java b/src/main/java/net/teamfruit/sushida/mode/TimeLimitMode.java index c6ae250..84aa3cf 100644 --- a/src/main/java/net/teamfruit/sushida/mode/TimeLimitMode.java +++ b/src/main/java/net/teamfruit/sushida/mode/TimeLimitMode.java @@ -20,6 +20,7 @@ import java.util.*; import java.util.function.Consumer; import java.util.stream.Collectors; +import java.util.stream.Stream; public class TimeLimitMode implements GameMode { public static final GameSettingType SettingTime = new GameSettingType("time", "制限時間", "ゲームの制限時間", 120, Arrays.asList(60, 90, 120)); @@ -239,6 +240,10 @@ public ImmutableList> getWords(Group group) { .collect(Collectors.toList()); break; } + case 100: { + // デバッグ用 + return Stream.of("かっぱ", "にっぱー", "っ", "っぱ", "ぴっ").map(e -> new AbstractMap.SimpleEntry<>(e, e)).collect(ImmutableList.toImmutableList()); + } } return wordRequiredListByLevel.stream() .flatMap(e -> e.getValue().stream()) diff --git a/src/main/resources/romaji.csv b/src/main/resources/romaji.csv index ed10b4f..8a94b66 100644 --- a/src/main/resources/romaji.csv +++ b/src/main/resources/romaji.csv @@ -117,10 +117,12 @@ tsu,つ xka,ヵ xke,ヶ xwa,ゎ +xtu,っ xtsu,っ lka,ヵ lke,ヶ lwa,ゎ +ltu,っ ltsu,っ xya,ゃ xyi,ぃ