diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-04-20 22:26:24 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-05-08 14:02:51 +0200 |
commit | 990cd4d2e5466d5c961fd5d7ee38e5100df962fe (patch) | |
tree | 9423656ec86db6a4d44537f80aa1153b4522e779 | |
parent | ec473d0d76e89e606122187ceab61df8a0ab17cf (diff) | |
download | manaserv-990cd4d2e5466d5c961fd5d7ee38e5100df962fe.tar.gz manaserv-990cd4d2e5466d5c961fd5d7ee38e5100df962fe.tar.xz manaserv-990cd4d2e5466d5c961fd5d7ee38e5100df962fe.zip |
[Abilities] Removed all except one ability
Should allow easier modification without thinking of useful examples for
each one
-rw-r--r-- | example/abilities.xml | 16 | ||||
-rw-r--r-- | example/scripts/abilities.lua | 5 |
2 files changed, 0 insertions, 21 deletions
diff --git a/example/abilities.xml b/example/abilities.xml index 93a67c0..6d1c323 100644 --- a/example/abilities.xml +++ b/example/abilities.xml @@ -9,21 +9,5 @@ rechargeattribute="6" target="point" /> - <ability - id="2" - name="Test Spell 2" - rechargeable="true" - needed="1000" - rechargeattribute="6" - target="being" - /> - <ability - id="3" - name="Test Spell 3" - rechargeable="true" - needed="10000" - rechargeattribute="6" - target="point" - /> </ability-category> </abilities> diff --git a/example/scripts/abilities.lua b/example/scripts/abilities.lua index c5f2161..d7449b0 100644 --- a/example/scripts/abilities.lua +++ b/example/scripts/abilities.lua @@ -15,8 +15,3 @@ spell1:on_use(function(user, x, y, abilityId) user:set_ability_mana(abilityId, 0) end) spell1:on_recharged(function(ch) ch:say("Hoooooooo...") end) - -local spell2 = get_ability_info(2) -spell2:on_use(function(user) user:say("HAA-DOKEN!") end) - -get_ability_info(3):on_use(function(user) user:say("Sonic BOOM") end) |