summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-23 17:08:26 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-23 17:08:26 +0300
commiteeae2a9eeb3575569f1c34966fd718c316a88760 (patch)
tree5bb2912429c4a8a344b854990baeb76e4748a3c7
parentd20744c0ff83572dc209389df900826b7d088546 (diff)
downloadmanaplus-eeae2a9eeb3575569f1c34966fd718c316a88760.tar.gz
manaplus-eeae2a9eeb3575569f1c34966fd718c316a88760.tar.bz2
manaplus-eeae2a9eeb3575569f1c34966fd718c316a88760.tar.xz
manaplus-eeae2a9eeb3575569f1c34966fd718c316a88760.zip
eathena: add armor slot mapping.
-rw-r--r--src/net/eathena/beinghandler.cpp5
-rw-r--r--src/net/eathena/inventoryhandler.cpp2
2 files changed, 6 insertions, 1 deletions
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<unsigned char>(id2));
localPlayer->imitateOutfit(dstBeing, SPRITE_EVOL3);
break;
+ case 17: // ARMOR
+ dstBeing->setSprite(SPRITE_EVOL4, id, color,
+ static_cast<unsigned char>(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