diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-02-17 13:36:32 +0100 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-02-17 13:36:32 +0100 |
commit | 587b7682e6bf7dd9e616c1d4789a5ed9aa986e6d (patch) | |
tree | f3490b1691ae3d6bac0408a497f52eacca2f5214 /example | |
parent | 3bae58a9bbe10a07c96caa033e332c35009d4add (diff) | |
download | manaserv-587b7682e6bf7dd9e616c1d4789a5ed9aa986e6d.tar.gz manaserv-587b7682e6bf7dd9e616c1d4789a5ed9aa986e6d.tar.xz manaserv-587b7682e6bf7dd9e616c1d4789a5ed9aa986e6d.zip |
Monsters no longer load their script files
Before monsters loaded their script file on *each* spawn.
This is rather wrong since the script state keeps growing for each monster.
However all of this was unnessecary since the main.lua can simply require
the script file.
If you do not want to spam the main.lua (or any other file) with all the
requires: I guess we can add script binds to iterate over all monsters and
add some custom properties to the monsters.xml (See Mana-Mantis #356)
Diffstat (limited to 'example')
-rw-r--r-- | example/monsters.xml | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/example/monsters.xml b/example/monsters.xml index 86a0c15..75438c8 100644 --- a/example/monsters.xml +++ b/example/monsters.xml @@ -89,7 +89,6 @@ exp<TAG>: Tells how much experience point a monster is giving up range="32" animation="attack" /> - <script>testmonster.lua</script> <!-- only Proof of Concept--> </monster> <monster id="2" name="Scorpion"> |