mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-07-06 16:50:40 +00:00
Fixed getLevel
Changed it so that it doesnt return the RealLevel and instead its correct level
This commit is contained in:
@@ -67,8 +67,12 @@ public enum Skill {
|
|||||||
return Skill.getRealLevel(this.getIndex());
|
return Skill.getRealLevel(this.getIndex());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the current level. (For example, if you've been de-buffed by a spell, or drank a beer that buffs the stat; it will return the buffed level.)
|
||||||
|
* Done by Bears
|
||||||
|
*/
|
||||||
public final int getLevel() {
|
public final int getLevel() {
|
||||||
return Skill.getRealLevel(this.getIndex());
|
return Skill.getCurrentLevel(this.getIndex());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -116,6 +120,18 @@ public enum Skill {
|
|||||||
return getLevelByExperience(getCurrentExperience(index));
|
return getLevelByExperience(getCurrentExperience(index));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the current level of the provided skill. (Will return de-buffed/buffed levels)
|
||||||
|
*
|
||||||
|
* @param index
|
||||||
|
* the skill index.
|
||||||
|
* @return the current skill level.
|
||||||
|
* Done by Bears
|
||||||
|
*/
|
||||||
|
public static final int getCurrentLevel(int index) {
|
||||||
|
return Loader.getClient().getCurrentStats()[index];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the exact experience at the provided level.
|
* Returns the exact experience at the provided level.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user