diff options
Diffstat (limited to 'src/npc.cpp')
-rw-r--r-- | src/npc.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/npc.cpp b/src/npc.cpp index dbae24e4..882f1b42 100644 --- a/src/npc.cpp +++ b/src/npc.cpp @@ -36,7 +36,7 @@ bool NPC::isTalking = false; int current_npc = 0; NPC::NPC(int id, int job, Map *map): - Being(id, job, map) + Player(id, job, map, true) { NPCInfo info = NPCDB::get(job); @@ -48,6 +48,8 @@ NPC::NPC(int id, int job, Map *map): std::string file = "graphics/sprites/" + (*i)->sprite; int variant = (*i)->variant; mSprites.push_back(AnimatedSprite::load(file, variant)); + mSpriteIDs.push_back(0); + mSpriteColors.push_back(""); } if (mParticleEffects) @@ -81,3 +83,8 @@ void NPC::talk() Net::getNpcHandler()->talk(mId); } + +void NPC::setSprite(unsigned int slot, int id, const std::string &color) +{ + // Do nothing +} |