Add submerged whirlpool brewing, four servings and mixed soup colors

This commit is contained in:
2026-09-05 15:11:52 +03:00
parent 0801c08e99
commit 6c03e62761
14 changed files with 397 additions and 118 deletions
@@ -0,0 +1,15 @@
package online.astracraft.soups;
final class SoupText {
private SoupText() {}
static String roman(int level) {
if (level < 1 || level > 256) throw new IllegalArgumentException("Potion level out of range: " + level);
int[] values = {100, 90, 50, 40, 10, 9, 5, 4, 1};
String[] numerals = {"C", "XC", "L", "XL", "X", "IX", "V", "IV", "I"};
StringBuilder text = new StringBuilder();
for (int i = 0; i < values.length; i++) while (level >= values[i]) {
text.append(numerals[i]); level -= values[i];
}
return text.toString();
}
}