summaryrefslogtreecommitdiff
path: root/src/map/pc.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-07-15 20:30:08 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-18 16:52:44 +0300
commitf26152a2f3fc1e9f21ee0d8d1bc0ea8e8c8ffabf (patch)
treebd35b6347a793aeb230d6ab71a58b6a734f3ced9 /src/map/pc.h
parent88bf50a01e60e7647c4c6c9f194a95e766ad1e5a (diff)
downloadhercules-f26152a2f3fc1e9f21ee0d8d1bc0ea8e8c8ffabf.tar.gz
hercules-f26152a2f3fc1e9f21ee0d8d1bc0ea8e8c8ffabf.tar.bz2
hercules-f26152a2f3fc1e9f21ee0d8d1bc0ea8e8c8ffabf.tar.xz
hercules-f26152a2f3fc1e9f21ee0d8d1bc0ea8e8c8ffabf.zip
Move check cards related code into separate functions.
This remove code duplicates and improve a bit code.
Diffstat (limited to 'src/map/pc.h')
-rw-r--r--src/map/pc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/pc.h b/src/map/pc.h
index 4dea27693..c370f9956 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -880,6 +880,8 @@ END_ZEROED_BLOCK; /* End */
int (*skill) (struct map_session_data *sd, int id, int level, int flag);
int (*insert_card) (struct map_session_data *sd,int idx_card,int idx_equip);
+ bool (*can_insert_card) (struct map_session_data* sd, int idx_card);
+ bool (*can_insert_card_into) (struct map_session_data* sd, int idx_card, int idx_equip);
int (*steal_item) (struct map_session_data *sd,struct block_list *bl, uint16 skill_lv);
int (*steal_coin) (struct map_session_data *sd,struct block_list *bl);