mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-23 04:47:34 +01:00
Fixed upgrading levels to over +10 bugging out the name.
This commit is contained in:
parent
f06380fcac
commit
45d98f8682
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user