summaryrefslogtreecommitdiff
path: root/src/resources/monsterdb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-03 20:10:33 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-03 20:10:33 +0300
commit51975cd8624fff3b20aa3b7b1932555e32786561 (patch)
tree55ff8d9c5a459bada8038807a1eaf0dfe98945e2 /src/resources/monsterdb.cpp
parentfd16292e758ab6fc910ed07441e6e477d616201c (diff)
downloadmanaverse-51975cd8624fff3b20aa3b7b1932555e32786561.tar.gz
manaverse-51975cd8624fff3b20aa3b7b1932555e32786561.tar.bz2
manaverse-51975cd8624fff3b20aa3b7b1932555e32786561.tar.xz
manaverse-51975cd8624fff3b20aa3b7b1932555e32786561.zip
Add spawn animation to mobs.
Also impliment sound events: SOUND_EVENT_MOVE, SOUND_EVENT_SIT, SOUND_EVENT_SPAWN
Diffstat (limited to 'src/resources/monsterdb.cpp')
-rw-r--r--src/resources/monsterdb.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/resources/monsterdb.cpp b/src/resources/monsterdb.cpp
index 8990d679a..9fce60306 100644
--- a/src/resources/monsterdb.cpp
+++ b/src/resources/monsterdb.cpp
@@ -134,6 +134,18 @@ void MonsterDB::load()
{
currentInfo->addSound(SOUND_EVENT_DIE, filename);
}
+ else if (event == "move")
+ {
+ currentInfo->addSound(SOUND_EVENT_MOVE, filename);
+ }
+ else if (event == "sit")
+ {
+ currentInfo->addSound(SOUND_EVENT_SIT, filename);
+ }
+ else if (event == "spawn")
+ {
+ currentInfo->addSound(SOUND_EVENT_SPAWN, filename);
+ }
else
{
logger->log("MonsterDB: Warning, sound effect %s for "