v0.9.3: fixed T4 talents not appearing in rankings

This commit is contained in:
Evan Debenham 2021-05-22 21:08:50 -04:00
parent 3906837a3a
commit ff8264a528

View File

@ -181,6 +181,7 @@ public class WndRanking extends WndTabbed {
int tiers = 1;
if (Dungeon.hero.lvl >= 6) tiers++;
if (Dungeon.hero.lvl >= 12 && Dungeon.hero.subClass != HeroSubClass.NONE) tiers++;
if (Dungeon.hero.lvl >= 20 && Dungeon.hero.armorAbility != null) tiers++;
while (Dungeon.hero.talents.size() > tiers){
Dungeon.hero.talents.remove(Dungeon.hero.talents.size()-1);
}