diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-06 23:02:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-06 23:02:49 +0300 |
commit | 0d35aab89fab92c11282f1c878b0fbbf68ca4ccf (patch) | |
tree | e154e65a42dd6746287fe928460bbbee64470012 /src/net/tmwa | |
parent | 32223642829f80fe2f8a775f2dca81e5565c0104 (diff) | |
download | mv-0d35aab89fab92c11282f1c878b0fbbf68ca4ccf.tar.gz mv-0d35aab89fab92c11282f1c878b0fbbf68ca4ccf.tar.bz2 mv-0d35aab89fab92c11282f1c878b0fbbf68ca4ccf.tar.xz mv-0d35aab89fab92c11282f1c878b0fbbf68ca4ccf.zip |
Add into increaseAttribute parameter with about of attributes to up.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/playerhandler.cpp | 3 | ||||
-rw-r--r-- | src/net/tmwa/playerhandler.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp index b53f29664..a4512489a 100644 --- a/src/net/tmwa/playerhandler.cpp +++ b/src/net/tmwa/playerhandler.cpp @@ -64,7 +64,8 @@ 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 A_UNUSED) const { if (attr >= Attributes::STR && attr <= Attributes::LUK) { diff --git a/src/net/tmwa/playerhandler.h b/src/net/tmwa/playerhandler.h index f9799a597..c97aee27c 100644 --- a/src/net/tmwa/playerhandler.h +++ b/src/net/tmwa/playerhandler.h @@ -40,7 +40,8 @@ class PlayerHandler final : public Ea::PlayerHandler void stopAttack() const override final; void emote(const uint8_t emoteId) const override final; - void increaseAttribute(const AttributesT attr) const override final; + void increaseAttribute(const AttributesT attr, + const int amount) const override final; void increaseSkill(const uint16_t skillId) const override final; void pickUp(const FloorItem *const floorItem) const override final; |