Example #1
0
 /**
  * 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();
 }
Example #2
0
 public int curXP() {
   return Skills.getCurrentExp(skillint);
 }
Example #3
0
 public int xpGained() {
   return Skills.getCurrentExp(skillint) - startxp;
 }