skill calculator: add ignore bonus
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -34,4 +34,5 @@ public class SkillDataEntry
|
||||
private double xp;
|
||||
private Integer icon;
|
||||
private Integer sprite;
|
||||
private boolean ignoreBonus;
|
||||
}
|
||||
Reference in New Issue
Block a user