diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-22 21:59:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-22 21:59:47 +0300 |
commit | 8bc005b59bd27533a19354318e17a5cb5cfa09c5 (patch) | |
tree | f2c7357610554a414b3ce61bd151f1e9976290f2 /src/net | |
parent | 4545b34b1533657d58788285a38b5128f49070a8 (diff) | |
download | mv-8bc005b59bd27533a19354318e17a5cb5cfa09c5.tar.gz mv-8bc005b59bd27533a19354318e17a5cb5cfa09c5.tar.bz2 mv-8bc005b59bd27533a19354318e17a5cb5cfa09c5.tar.xz mv-8bc005b59bd27533a19354318e17a5cb5cfa09c5.zip |
Add pet actor type. For now it works almost same like monsters.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/beinghandler.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index 0f924d5f4..23e7d1149 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -310,6 +310,9 @@ Being *BeingHandler::createBeing2(const int id, case BeingType::MERSOL: type = ActorType::Mercenary; break; + case BeingType::PET: + type = ActorType::Pet; + break; case BeingType::ITEM: case BeingType::SKILL: case BeingType::ELEMENTAL: @@ -317,7 +320,6 @@ Being *BeingHandler::createBeing2(const int id, static_cast<int>(beingType), static_cast<int>(job)); break; case BeingType::CHAT: - case BeingType::PET: case BeingType::HOMUN: default: type = ActorType::Monster; |