text gen: random mode choice

This commit is contained in:
xenohedron 2023-10-14 01:28:42 -04:00
parent dc7d1450f2
commit ccb888b17c

View file

@ -503,6 +503,9 @@ public class Modes extends LinkedHashMap<UUID, Mode> {
throw new UnsupportedOperationException(String.format("no text available for this selection of min and max modes (%d and %d)",
this.getMinModes(), this.getMaxModes(null, null)));
}
if (isRandom) {
sb.append(" at random");
}
} else {
sb.append(chooseText);
}