skill calculator: allow XP values up to 200,000,000 rather than 188,884,740
This commit is contained in:
@@ -52,6 +52,12 @@ import net.runelite.client.ui.FontManager;
|
|||||||
|
|
||||||
class SkillCalculator extends JPanel
|
class SkillCalculator extends JPanel
|
||||||
{
|
{
|
||||||
|
private static final int MAX_XP = 200_000_000;
|
||||||
|
private static final DecimalFormat XP_FORMAT = new DecimalFormat("#.#");
|
||||||
|
|
||||||
|
static SpriteManager spriteManager;
|
||||||
|
static ItemManager itemManager;
|
||||||
|
|
||||||
private Client client;
|
private Client client;
|
||||||
private SkillData skillData;
|
private SkillData skillData;
|
||||||
private List<UIActionSlot> uiActionSlots = new ArrayList<>();
|
private List<UIActionSlot> uiActionSlots = new ArrayList<>();
|
||||||
@@ -59,9 +65,6 @@ class SkillCalculator extends JPanel
|
|||||||
|
|
||||||
private CacheSkillData cacheSkillData = new CacheSkillData();
|
private CacheSkillData cacheSkillData = new CacheSkillData();
|
||||||
|
|
||||||
static SpriteManager spriteManager;
|
|
||||||
static ItemManager itemManager;
|
|
||||||
|
|
||||||
private UICombinedActionSlot combinedActionSlot = new UICombinedActionSlot();
|
private UICombinedActionSlot combinedActionSlot = new UICombinedActionSlot();
|
||||||
private ArrayList<UIActionSlot> combinedActionSlots = new ArrayList<>();
|
private ArrayList<UIActionSlot> combinedActionSlots = new ArrayList<>();
|
||||||
|
|
||||||
@@ -71,10 +74,6 @@ class SkillCalculator extends JPanel
|
|||||||
private int targetXP = Experience.getXpForLevel(targetLevel);
|
private int targetXP = Experience.getXpForLevel(targetLevel);
|
||||||
private float xpFactor = 1.0f;
|
private float xpFactor = 1.0f;
|
||||||
|
|
||||||
private static int MAX_XP = Experience.getXpForLevel(Experience.MAX_VIRT_LEVEL);
|
|
||||||
|
|
||||||
private static DecimalFormat XP_FORMAT = new DecimalFormat("#.#");
|
|
||||||
|
|
||||||
SkillCalculator(Client client, UICalculatorInputArea uiInput)
|
SkillCalculator(Client client, UICalculatorInputArea uiInput)
|
||||||
{
|
{
|
||||||
this.client = client;
|
this.client = client;
|
||||||
@@ -313,4 +312,4 @@ class SkillCalculator extends JPanel
|
|||||||
{
|
{
|
||||||
return Math.min(MAX_XP, Math.max(0, input));
|
return Math.min(MAX_XP, Math.max(0, input));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user