summaryrefslogtreecommitdiff
path: root/src/net/eathena/pethandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/pethandler.cpp')
-rw-r--r--src/net/eathena/pethandler.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp
index 1f492aa31..72243057f 100644
--- a/src/net/eathena/pethandler.cpp
+++ b/src/net/eathena/pethandler.cpp
@@ -27,8 +27,12 @@
#include "net/eathena/messageout.h"
#include "net/eathena/protocolout.h"
+#include "resources/item/item.h"
+
#include "debug.h"
+extern int packetVersion;
+
namespace EAthena
{
@@ -123,4 +127,15 @@ void PetHandler::setDirection(const unsigned char type) const
"pet direction");
}
+void PetHandler::evolution(const Item *const item) const
+{
+ if (packetVersion < 20140122 ||
+ item == nullptr)
+ {
+ return;
+ }
+ createOutPacket(CMSG_PET_EVOLUTION);
+ outMsg.writeInt16(CAST_S16(item->getId()), "egg id");
+}
+
} // namespace EAthena