forked from 2009Scape/Server
Added agility exp gain when running
This commit is contained in:
parent
4b5687b8ab
commit
1f538d2976
1 changed files with 3 additions and 0 deletions
|
|
@ -193,6 +193,9 @@ public final class WalkingQueue {
|
|||
if (hasTimerActive(player, "hamstrung")) {
|
||||
rate *= 4;
|
||||
}
|
||||
//Snowscape custom: gain agility exp when running. getLevel returns int so we convert to double for the math
|
||||
double experience = (Double.valueOf(player.getSkills().getLevel(Skills.AGILITY)) + 10)/50;
|
||||
player.getSkills().addExperience(Skills.AGILITY, experience);
|
||||
return rate;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue