summaryrefslogtreecommitdiff
path: root/src/net/eathena/elementalhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-14 15:55:29 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-14 15:55:29 +0300
commita7105aa2f73a372be018173e47b2fa8e6cfa87e4 (patch)
tree3e50a5a0560c043a2c7d3116e51271ae5cebe88d /src/net/eathena/elementalhandler.cpp
parent9e01119b7fad64dbf8aa4017443aa077f1be308d (diff)
downloadmanaverse-a7105aa2f73a372be018173e47b2fa8e6cfa87e4.tar.gz
manaverse-a7105aa2f73a372be018173e47b2fa8e6cfa87e4.tar.bz2
manaverse-a7105aa2f73a372be018173e47b2fa8e6cfa87e4.tar.xz
manaverse-a7105aa2f73a372be018173e47b2fa8e6cfa87e4.zip
eathena: add partial support for SMSG_ELEMENTAL_INFO 0x081d.
Diffstat (limited to 'src/net/eathena/elementalhandler.cpp')
-rw-r--r--src/net/eathena/elementalhandler.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/net/eathena/elementalhandler.cpp b/src/net/eathena/elementalhandler.cpp
index dc21746cd..8dc8b6684 100644
--- a/src/net/eathena/elementalhandler.cpp
+++ b/src/net/eathena/elementalhandler.cpp
@@ -35,6 +35,7 @@ ElementalHandler::ElementalHandler() :
static const uint16_t _messages[] =
{
SMSG_ELEMENTAL_UPDATE_STATUS,
+ SMSG_ELEMENTAL_INFO,
0
};
handledMessages = _messages;
@@ -49,6 +50,10 @@ void ElementalHandler::handleMessage(Net::MessageIn &msg)
processElementalUpdateStatus(msg);
break;
+ case SMSG_ELEMENTAL_INFO:
+ processElementalInfo(msg);
+ break;
+
default:
break;
}
@@ -60,4 +65,13 @@ void ElementalHandler::processElementalUpdateStatus(Net::MessageIn &msg)
msg.readInt32("value");
}
+void ElementalHandler::processElementalInfo(Net::MessageIn &msg)
+{
+ msg.readInt32("elemental id");
+ msg.readInt32("hp");
+ msg.readInt32("max hp");
+ msg.readInt32("sp");
+ msg.readInt32("max sp");
+}
+
} // namespace EAthena