diff options
Diffstat (limited to 'example/scripts/monster')
-rw-r--r-- | example/scripts/monster/testmonster.lua | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/example/scripts/monster/testmonster.lua b/example/scripts/monster/testmonster.lua index 21b6a7b..42cf1d2 100644 --- a/example/scripts/monster/testmonster.lua +++ b/example/scripts/monster/testmonster.lua @@ -14,19 +14,5 @@ local function update(mob) end end -local function strike(mob, victim, hit) - if hit > 0 then - mob:say("Take this! "..hit.." damage!") - victim:say("Oh Noez!") - else - mob:say("Oh no, my attack missed!") - victim:say("Whew...") - end -end - local maggot = get_monster_class("maggot") maggot:on_update(update) -local attacks = maggot:attacks(); -for i, attack in ipairs(attacks) do - attack:on_attack(strike) -end |