v0.9.2b: fixed an upgrade dupe involving the seal and curse infusion

This commit is contained in:
Evan Debenham 2021-03-17 20:14:48 -04:00
parent a6d892e26d
commit 618f326577

View File

@ -233,7 +233,9 @@ public class Armor extends EquipableItem {
this.seal = seal;
if (seal.level() > 0){
//doesn't trigger upgrading logic such as affecting curses/glyphs
level(level()+1);
int newLevel = level()+1;
if (curseInfusionBonus) newLevel--;
level(newLevel);
Badges.validateItemLevelAquired(this);
}
if (seal.getGlyph() != null){