v1.1.0: fixed various errors with scroll of metamorphosis
This commit is contained in:
parent
379ba0816b
commit
b5bce7f80c
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user