diff options
| author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-04-03 13:29:05 +0200 |
|---|---|---|
| committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-04-04 16:22:11 +0200 |
| commit | f8e816d9185c09d1c17d921b775e483d132982e5 (patch) | |
| tree | 3ab299ab6057db3bfd8feb24130a6fcb7e64a60d /src/scripting/scriptmanager.h | |
| parent | e4baa92aae537921dd17873328a95ab17afcfdfc (diff) | |
Enhanced special support
- Made the current charge being saved.
- Added script binds:
- chr_set_special_recharge_speed
- chr_get_special_recharge_speed
- chr_set_special_mana
- chr_get_special_mana
- get_special_info
- Added special info lua class. Functions:
- name
- needed_mana
- rechargeable
- on_use
- on_recharged
- category
Further the engine no longer sets charge to 0 after using of specials
this allows more flexbilillity (like failing specials).
Changes on the xml database:
- recharge renamed to rechargeable (needed by client and server)
- needed - the needed mana to trigger a special (server only)
- rechargespeed - the defailt recharge speed in mana per tick (server only)
- target - the type of target (either being or point) (server and client)
I also made the lua engine pushing nil instead of a 0 light userdata when
the pointer was 0.
Database update needed.
Change is tested.
Mana-Mantis: #167, #156
Reviewed-by: bjorn.
Diffstat (limited to 'src/scripting/scriptmanager.h')
| -rw-r--r-- | src/scripting/scriptmanager.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/scripting/scriptmanager.h b/src/scripting/scriptmanager.h index d0d0370..03b6e64 100644 --- a/src/scripting/scriptmanager.h +++ b/src/scripting/scriptmanager.h @@ -26,7 +26,6 @@ #include <string> class Script; -class Special; /** * Manages the script states. In fact at the moment it simply provides access @@ -56,8 +55,6 @@ bool loadMainScript(const std::string &file); */ Script *currentState(); -void addDataToSpecial(int specialId, Special *special); -bool performSpecialAction(int specialId, Being *caster); bool performCraft(Being *crafter, const std::list<InventoryItem> &recipe); void setCraftCallback(Script *script); |
