[LTR] Implement Dawn of a New Age (#10492)

This commit is contained in:
who?! 2023-06-24 02:13:50 +02:00 committed by GitHub
parent 1d5ee8b3f4
commit 3896c28572
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 91 additions and 1 deletions

View file

@ -93,6 +93,7 @@ public enum CounterType {
HIT("hit"),
HOOFPRINT("hoofprint"),
HONE("hone"),
HOPE("hope"),
HOUR("hour", "an"),
HOURGLASS("hourglass", "an"),
HUNGER("hunger"),
@ -225,7 +226,7 @@ public enum CounterType {
}
CounterType(String name) {
this(name, "aeiou".contains("" + name.charAt(0)) ? "an" : "a");
this(name, "aeiou".contains( String.valueOf( name.charAt( 0 ) ) ) ? "an" : "a");
}
CounterType(String name, String article) {