summaryrefslogtreecommitdiffstats
path: root/example/scripts/monster/testmonster.lua
diff options
context:
space:
mode:
Diffstat (limited to 'example/scripts/monster/testmonster.lua')
-rw-r--r--example/scripts/monster/testmonster.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/example/scripts/monster/testmonster.lua b/example/scripts/monster/testmonster.lua
index 63b2917..6ef11fa 100644
--- a/example/scripts/monster/testmonster.lua
+++ b/example/scripts/monster/testmonster.lua
@@ -10,20 +10,20 @@
local function update(mob)
local r = math.random(0, 200);
if r == 0 then
- mana.being_say(mob, "Roar! I am a boss")
+ being_say(mob, "Roar! I am a boss")
end
end
local function strike(mob, victim, hit)
if hit > 0 then
- mana.being_say(mob, "Take this! "..hit.." damage!")
- mana.being_say(victim, "Oh Noez!")
+ being_say(mob, "Take this! "..hit.." damage!")
+ being_say(victim, "Oh Noez!")
else
- mana.being_say(mob, "Oh no, my attack missed!")
- mana.being_say(victim, "Whew...")
+ being_say(mob, "Oh no, my attack missed!")
+ being_say(victim, "Whew...")
end
end
-local maggot = mana.get_monster_class("maggot")
+local maggot = get_monster_class("maggot")
maggot:on_update(update)
maggot:on("strike", strike)