From eeae2a9eeb3575569f1c34966fd718c316a88760 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 23 Nov 2014 17:08:26 +0300 Subject: eathena: add armor slot mapping. --- src/net/eathena/beinghandler.cpp | 5 +++++ src/net/eathena/inventoryhandler.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src/net') diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index d1a5e05b9..0e36163f2 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -524,6 +524,11 @@ void BeingHandler::processBeingChangeLookContinue(Being *const dstBeing, static_cast(id2)); localPlayer->imitateOutfit(dstBeing, SPRITE_EVOL3); break; + case 17: // ARMOR + dstBeing->setSprite(SPRITE_EVOL4, id, color, + static_cast(id2)); + localPlayer->imitateOutfit(dstBeing, SPRITE_EVOL4); + break; default: logger->log("QQQ3 CHANGE_LOOKS: unsupported type: " "%d, id: %d", type, id); diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 384ca86b2..b2d68e558 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -59,7 +59,7 @@ const Equipment::Slot EQUIP_CONVERT[] = Equipment::EQUIP_EVOL_RING2_SLOT, // 12 Equipment::EQUIP_PROJECTILE_SLOT, // 13 SPRITE_EVOL2 Equipment::EQUIP_COSTUME_ROBE_SLOT, // 14 SPRITE_EVOL3 - Equipment::EQUIP_MISSING1_SLOT, // 15 SPRITE_EVOL4 + Equipment::EQUIP_RING1_SLOT, // 15 SPRITE_EVOL4 }; namespace EAthena -- cgit v1.2.3-70-g09d2