/** * Constructs a new Skill * * @param skillInt the index of the Skill */ public Skill(int skillInt) { startime = System.currentTimeMillis(); startxp = Skills.getCurrentExp(skillInt); startLevel = UberSkills.getRealLevel(skillInt); skillint = skillInt; lastxp = startxp; lastLevel = startLevel; name = Skills.SKILL_NAMES[skillint].substring(0, 1).toUpperCase() + Skills.SKILL_NAMES[skillint].substring(1); shortName = getShortName(); }
public int curXP() { return Skills.getCurrentExp(skillint); }
public int xpGained() { return Skills.getCurrentExp(skillint) - startxp; }