summaryrefslogtreecommitdiff
path: root/src/net/eathena/playerhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-06 23:02:49 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-06 23:02:49 +0300
commit0d35aab89fab92c11282f1c878b0fbbf68ca4ccf (patch)
treee154e65a42dd6746287fe928460bbbee64470012 /src/net/eathena/playerhandler.cpp
parent32223642829f80fe2f8a775f2dca81e5565c0104 (diff)
downloadplus-0d35aab89fab92c11282f1c878b0fbbf68ca4ccf.tar.gz
plus-0d35aab89fab92c11282f1c878b0fbbf68ca4ccf.tar.bz2
plus-0d35aab89fab92c11282f1c878b0fbbf68ca4ccf.tar.xz
plus-0d35aab89fab92c11282f1c878b0fbbf68ca4ccf.zip
Add into increaseAttribute parameter with about of attributes to up.
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r--src/net/eathena/playerhandler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp
index c07fa4d13..470a1530a 100644
--- a/src/net/eathena/playerhandler.cpp
+++ b/src/net/eathena/playerhandler.cpp
@@ -64,13 +64,14 @@ void PlayerHandler::emote(const uint8_t emoteId) const
outMsg.writeInt8(emoteId, "emote id");
}
-void PlayerHandler::increaseAttribute(const AttributesT attr) const
+void PlayerHandler::increaseAttribute(const AttributesT attr,
+ const int amount) const
{
if (attr >= Attributes::STR && attr <= Attributes::LUK)
{
createOutPacket(CMSG_STAT_UPDATE_REQUEST);
outMsg.writeInt16(CAST_S16(attr), "attribute id");
- outMsg.writeInt8(1, "increase");
+ outMsg.writeInt8(amount, "increase");
}
}