Update player run calculations (#108)

* Update player run calculations

* add regen calculations
This commit is contained in:
Danial
2019-10-28 07:22:08 +13:00
committed by Daniel Ginovker
parent df62d7efcf
commit 43713164cc
9 changed files with 1395 additions and 1419 deletions
@@ -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;
}
}