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
@@ -52,6 +52,7 @@ public class Weight extends ItemDefinitions {
public static void updateWeight(Client c) {
if (c != null) {
c.getActionSender().writeWeight((int) c.weight);
// Inventory items
for (int playerItem : c.playerItems) {
if (playerItem > -1) {// inventory
for (ItemList i1 : Server.itemHandler.ItemList) {
@@ -62,7 +63,8 @@ public class Weight extends ItemDefinitions {
}
}
}
} // equipment
}
// Equiped items
for (int element : c.playerEquipment) {
if (element > -1) {// equipment
for (ItemList i1 : Server.itemHandler.ItemList) {