summaryrefslogtreecommitdiff
path: root/src/game-server/monster.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/monster.cpp')
-rw-r--r--src/game-server/monster.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/game-server/monster.cpp b/src/game-server/monster.cpp
index 7d5ec764..47246005 100644
--- a/src/game-server/monster.cpp
+++ b/src/game-server/monster.cpp
@@ -117,9 +117,6 @@ Monster::Monster(MonsterClass *specy):
{
addAttack(*it);
}
-
- // Load default script
- loadScript(specy->getScript());
}
Monster::~Monster()
@@ -288,25 +285,6 @@ void Monster::processAttack(Attack &attack)
}
}
-void Monster::loadScript(const std::string &scriptName)
-{
- if (scriptName.length() == 0)
- return;
-
- std::stringstream filename;
- filename << "scripts/monster/" << scriptName;
- if (ResourceManager::exists(filename.str()))
- {
- LOG_INFO("Loading monster script: " << filename.str());
- ScriptManager::currentState()->loadFile(filename.str());
- }
- else
- {
- LOG_WARN("Could not find script file \""
- << filename.str() << "\" for monster");
- }
-}
-
int Monster::calculatePositionPriority(Point position, int targetPriority)
{
Point thisPos = getPosition();