summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-11-08 23:10:21 +0300
committerAndrei Karas <akaras@inbox.ru>2017-11-08 23:10:21 +0300
commit7ca06be4b1a8dab21d21ddbab078ef7fed8cd1f8 (patch)
treefd036a61e12f36c16fded19d1e32dd82ba1560ae /src/net
parent284b8a1f756101bf69efbc064b1e247119eea621 (diff)
downloadmv-7ca06be4b1a8dab21d21ddbab078ef7fed8cd1f8.tar.gz
mv-7ca06be4b1a8dab21d21ddbab078ef7fed8cd1f8.tar.bz2
mv-7ca06be4b1a8dab21d21ddbab078ef7fed8cd1f8.tar.xz
mv-7ca06be4b1a8dab21d21ddbab078ef7fed8cd1f8.zip
Allow draw npc equipment sprites (only basic slots).
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/beingrecv.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp
index a39c65122..7a91b413b 100644
--- a/src/net/eathena/beingrecv.cpp
+++ b/src/net/eathena/beingrecv.cpp
@@ -131,6 +131,17 @@ static void setBasicFields(Being *restrict const dstBeing,
{
dstBeing->setGender(Being::intToGender(gender));
}
+ dstBeing->setHairColor(hairColor);
+ dstBeing->setHairStyle(SPRITE_HAIR_COLOR, -hairStyle);
+ // for npc not checking updateSlots flag,
+ // probably because npc missing visible packet if moving
+ dstBeing->updateSprite(SPRITE_WEAPON, headBottom);
+ dstBeing->updateSprite(SPRITE_HEAD_BOTTOM, headMid);
+ dstBeing->updateSprite(SPRITE_CLOTHES_COLOR, headTop);
+ dstBeing->updateSprite(SPRITE_HAIR, shoes);
+ dstBeing->updateSprite(SPRITE_SHOES, gloves);
+ dstBeing->updateSprite(SPRITE_BODY, weapon);
+ dstBeing->setWeaponId(weapon);
break;
default:
case ActorType::Monster: