Fixed mode text, added 4 modes support;
@@ -344,17 +344,22 @@ public class Modes extends LinkedHashMap<UUID, Mode> {
sb.append("choose two");
} else if (this.getMinModes() == 3 && this.getMaxModes() == 3) {
sb.append("choose three");
+ } else if (this.getMinModes() == 4 && this.getMaxModes() == 4) {
+ sb.append("choose four");
} else {
sb.append("choose one");
}
+
if (isEachModeOnlyOnce()) {
sb.append(" that hasn't been chosen");
}
+
if (isEachModeMoreThanOnce()) {
sb.append(". You may choose the same mode more than once.<br>");
} else {
sb.append(" &mdash;<br>");
}
+
for (Mode mode : this.values()) {
sb.append("&bull ");
sb.append(mode.getEffects().getTextStartingUpperCase(mode));
