From f31277b327df701361391b1d4b8bd6f89f4e3109 Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Sat, 27 Apr 2013 21:09:23 +0200 Subject: [Abilities] Removed the old autoattack system As a side effect i had to remove the monster attack AI for now. I will readd this as next thing. --- example/items.xml | 12 ----- example/monsters.xml | 80 --------------------------------- example/scripts/maps/desert.lua | 2 - example/scripts/monster/testmonster.lua | 14 ------ 4 files changed, 108 deletions(-) (limited to 'example') diff --git a/example/items.xml b/example/items.xml index 9d862a93..5d2db93d 100644 --- a/example/items.xml +++ b/example/items.xml @@ -117,12 +117,6 @@ - - @@ -137,9 +131,6 @@ - @@ -155,9 +146,6 @@ - diff --git a/example/monsters.xml b/example/monsters.xml index 75438c8a..f577c69f 100644 --- a/example/monsters.xml +++ b/example/monsters.xml @@ -63,32 +63,6 @@ exp: Tells how much experience point a monster is giving up stroll-range="32" attack-distance="32" /> - - @@ -121,34 +95,6 @@ exp: Tells how much experience point a monster is giving up stroll-range="64" attack-distance="64" /> - - - - @@ -184,19 +130,6 @@ exp: Tells how much experience point a monster is giving up stroll-range="32" attack-distance="64" /> - @@ -220,19 +153,6 @@ exp: Tells how much experience point a monster is giving up physical-defence="0" magical-defence="0" /> - 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 -- cgit v1.2.3-70-g09d2