Skip to content

Commit

Permalink
xtu ltu
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamesuta committed Nov 10, 2020
1 parent 51d4ee7 commit 8adc644
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/net/teamfruit/sushida/mode/TimeLimitMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -239,6 +240,10 @@ public ImmutableList<Map.Entry<String, String>> 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())
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/romaji.csv
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,12 @@ tsu,つ
xka,ヵ
xke,ヶ
xwa,ゎ
xtu,っ
xtsu,っ
lka,ヵ
lke,ヶ
lwa,ゎ
ltu,っ
ltsu,っ
xya,ゃ
xyi,ぃ
Expand Down

0 comments on commit 8adc644

Please sign in to comment.