diff options
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 6d53cac3..d88b01f5 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -40,6 +40,7 @@ #include "text.h" #include "gui/gui.h" +#include "gui/inventorywindow.h" #include "gui/ministatus.h" #include "gui/skilldialog.h" #include "gui/statuswindow.h" @@ -759,6 +760,20 @@ void LocalPlayer::lowerAttribute(int attr) Net::getPlayerHandler()->decreaseAttribute(attr); } +void LocalPlayer::setTotalWeight(int value) +{ + mTotalWeight = value; + + inventoryWindow->updateWeight(); +} + +void LocalPlayer::setMaxWeight(int value) +{ + mMaxWeight = value; + + inventoryWindow->updateWeight(); +} + void LocalPlayer::setAttributeBase(int num, int value, bool notify) { int old = mAttributeBase[num]; |