v1.1.0: fixed various errors with scroll of metamorphosis

This commit is contained in:
Evan Debenham 2021-11-29 22:05:59 -05:00
parent 379ba0816b
commit b5bce7f80c
2 changed files with 5 additions and 2 deletions

View File

@ -121,7 +121,9 @@ public class ScrollOfMetamorphosis extends ExoticScroll {
top = text.bottom() + 2;
TalentsPane p = new TalentsPane(TalentButton.Mode.METAMORPH_CHOOSE);
ArrayList<LinkedHashMap<Talent, Integer>> talents = new ArrayList<>();
Talent.initClassTalents(Dungeon.hero.heroClass, talents);
TalentsPane p = new TalentsPane(TalentButton.Mode.METAMORPH_CHOOSE, talents);
add(p);
p.setPos(0, top);
p.setSize(120, p.content().height());
@ -163,6 +165,7 @@ public class ScrollOfMetamorphosis extends ExoticScroll {
restrictedTalents.put(Talent.PROTECTIVE_SHADOWS, HeroClass.ROGUE);
restrictedTalents.put(Talent.MYSTICAL_UPGRADE, HeroClass.ROGUE);
restrictedTalents.put(Talent.LIGHT_CLOAK, HeroClass.ROGUE);
restrictedTalents.put(Talent.SEER_SHOT, HeroClass.HUNTRESS);
}

View File

@ -192,7 +192,7 @@ public class TalentButton extends Button {
newTier.put(t, tier.get(t));
}
}
Dungeon.hero.talents.add(ScrollOfMetamorphosis.WndMetamorphReplace.INSTANCE.tier-1, newTier);
Dungeon.hero.talents.set(ScrollOfMetamorphosis.WndMetamorphReplace.INSTANCE.tier-1, newTier);
break;
}
}