Fixed upgrading levels to over +10 bugging out the name.

This commit is contained in:
Gunging 2021-03-09 22:51:32 -06:00
parent f06380fcac
commit 45d98f8682

View File

@ -43,7 +43,7 @@ public class DisplayName extends StringStat {
// Bake old indices for removal
ArrayList<String> oldSuffixii = new ArrayList<>(); boolean negativity = false;
if (upgradeLevel < 0) { upgradeLevel = -upgradeLevel; negativity = true; }
for (int i = 1; i <= upgradeLevel + 3; i++) {
for (int i = upgradeLevel + 3; i >= 1; i--) {
if (negativity) {
oldSuffixii.add(suffix.replace("#lvl#", String.valueOf(-i)));
} else {