mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-07 08:39:07 +00:00
Update player run calculations (#108)
* Update player run calculations * add regen calculations
This commit is contained in:
@@ -297,7 +297,7 @@ public class Potions {
|
||||
if (c.playerEnergy > 100) {
|
||||
c.playerEnergy = 100;
|
||||
}
|
||||
c.getPlayerAssistant().sendFrame126(c.playerEnergy + "%", 149);
|
||||
c.getPlayerAssistant().sendFrame126((int) Math.ceil(c.playerEnergy) + "%", 149);
|
||||
}
|
||||
|
||||
public void drinkAntiPoison(int itemId, int replaceItem, int slot,
|
||||
|
||||
@@ -695,8 +695,4 @@ public class Agility {
|
||||
changeObjectTimer = 10;
|
||||
}
|
||||
}
|
||||
|
||||
public static double getAgilityRunRestore(Client c) {
|
||||
return 2260 - c.playerLevel[Constants.AGILITY] * 10;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user