summaryrefslogtreecommitdiff
path: root/src/monster.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2006-11-29 21:17:16 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2006-11-29 21:17:16 +0000
commit25df9c6c3b735fea87ded284665e866c39144705 (patch)
treec265eaa0560eb40b1a334b91c24fff7b9962b3d1 /src/monster.cpp
parent34baa9637d2319f52b4e1b1f3294994557151113 (diff)
downloadmana-client-25df9c6c3b735fea87ded284665e866c39144705.tar.gz
mana-client-25df9c6c3b735fea87ded284665e866c39144705.tar.bz2
mana-client-25df9c6c3b735fea87ded284665e866c39144705.tar.xz
mana-client-25df9c6c3b735fea87ded284665e866c39144705.zip
Implemented MonsterDB namespace
Diffstat (limited to 'src/monster.cpp')
-rw-r--r--src/monster.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/monster.cpp b/src/monster.cpp
index 7fffd34e..e3d2b5a8 100644
--- a/src/monster.cpp
+++ b/src/monster.cpp
@@ -26,6 +26,8 @@
#include "animatedsprite.h"
#include "game.h"
+#include "resources/monsterdb.h"
+
#include "utils/tostring.h"
@@ -33,7 +35,7 @@ Monster::Monster(Uint32 id, Uint16 job, Map *map):
Being(id, job, map)
{
mSprites[BASE_SPRITE] = new AnimatedSprite(
- "graphics/sprites/monster" + toString(job - 1002) + ".xml");
+ "data/graphics/sprites/" + MonsterDB::get(job-1002).getSprite());
}
void