summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/statuswindow.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/statuswindow.cpp b/src/gui/statuswindow.cpp
index 8151bd92..e89b7437 100644
--- a/src/gui/statuswindow.cpp
+++ b/src/gui/statuswindow.cpp
@@ -520,11 +520,25 @@ void ChangeDisplay::action(const gcn::ActionEvent &event)
#ifdef TMWSERV_SUPPORT
if (event.getSource() == mDec)
{
+ int newcorpoints = player_node->getCorrectionPoints() - 1;
+ player_node->setCorrectionPoints(newcorpoints);
+ int newpoints = player_node->getCharacterPoints() + 1;
+ player_node->setCharacterPoints(newpoints);
+ int newbase = player_node->getAttributeBase(mId) - 1;
+ player_node->setAttributeBase(mId, newbase);
+ int newmod = player_node->getAttributeEffective(mId) - 1;
+ player_node->setAttributeEffective(mId, newmod);
Net::getPlayerHandler()->decreaseAttribute(mId);
} else
#endif
if (event.getSource() == mInc)
{
+ int newpoints = player_node->getCharacterPoints() - 1;
+ player_node->setCharacterPoints(newpoints);
+ int newbase = player_node->getAttributeBase(mId) + 1;
+ player_node->setAttributeBase(mId, newbase);
+ int newmod = player_node->getAttributeEffective(mId) + 1;
+ player_node->setAttributeEffective(mId, newmod);
Net::getPlayerHandler()->increaseAttribute(mId);
}
}