skill calculator: add ignore bonus

This commit is contained in:
Adam
2018-05-23 19:28:40 -04:00
parent a1a1cd2436
commit beef77b1c7
2 changed files with 2 additions and 1 deletions

View File

@@ -243,7 +243,7 @@ class SkillCalculator extends JPanel
{
int actionCount = 0;
int neededXP = targetXP - currentXP;
double xp = slot.action.getXp() * xpFactor;
double xp = (slot.action.isIgnoreBonus()) ? slot.action.getXp() : slot.action.getXp() * xpFactor;
if (neededXP > 0)
actionCount = (int) Math.ceil(neededXP / xp);

View File

@@ -34,4 +34,5 @@ public class SkillDataEntry
private double xp;
private Integer icon;
private Integer sprite;
private boolean ignoreBonus;
}