diff options
author | Haru <haru@dotalux.com> | 2016-02-22 03:10:04 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-02-24 21:02:17 +0100 |
commit | 23f1ef310719081c79aebf3f8921240773f5a507 (patch) | |
tree | 1b873269dba4d5b9f88b6db3f215c2d245a6b90b /src/map/skill.h | |
parent | c1ab5a9db773d399c86eb59a3dded649387480c0 (diff) | |
download | hercules-23f1ef310719081c79aebf3f8921240773f5a507.tar.gz hercules-23f1ef310719081c79aebf3f8921240773f5a507.tar.bz2 hercules-23f1ef310719081c79aebf3f8921240773f5a507.tar.xz hercules-23f1ef310719081c79aebf3f8921240773f5a507.zip |
Edited skill->changematerial() and skill->elementalanalysis() to use the new struct itemlist
- The skill-side code no longer depends on the client packet data layout.
- Some data validation has been added.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/skill.h')
-rw-r--r-- | src/map/skill.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/skill.h b/src/map/skill.h index 96bef090a..fb2acfb62 100644 --- a/src/map/skill.h +++ b/src/map/skill.h @@ -32,6 +32,7 @@ **/ struct Damage; struct homun_data; +struct itemlist; // map/itemdb.h struct map_session_data; struct mercenary_data; struct unit_data; @@ -2060,8 +2061,8 @@ struct skill_interface { int (*magicdecoy) (struct map_session_data *sd, int nameid); int (*poisoningweapon) ( struct map_session_data *sd, int nameid); int (*select_menu) (struct map_session_data *sd,uint16 skill_id); - int (*elementalanalysis) (struct map_session_data *sd, int n, uint16 skill_lv, unsigned short *item_list); - int (*changematerial) (struct map_session_data *sd, int n, unsigned short *item_list); + int (*elementalanalysis) (struct map_session_data *sd, uint16 skill_lv, const struct itemlist *item_list); + int (*changematerial) (struct map_session_data *sd, const struct itemlist *item_list); int (*get_elemental_type) (uint16 skill_id, uint16 skill_lv); void (*cooldown_save) (struct map_session_data * sd); int (*get_new_group_id) (void); |