From 333c908061a1871a73a8562f0095bb15c3ddb740 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 17 Aug 2015 19:09:04 +0300 Subject: Add support for card limits. Into item db to item need add AllowCards group. In format id: amount If AllowCards not present, all cards allowed. Example: AllowCards: { id5001: 2 id5002: 1 } --- src/emap/pc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/emap/pc.h') diff --git a/src/emap/pc.h b/src/emap/pc.h index 7250de6..bce3187 100644 --- a/src/emap/pc.h +++ b/src/emap/pc.h @@ -50,5 +50,7 @@ int epc_delitem_pre(struct map_session_data *sd, int *nPtr, int *amountPtr, int epc_delitem_post(int retVal, struct map_session_data *sd, int *nPtr, int *amountPtr, int *typePtr, short *reasonPtr, e_log_pick_type *log_type); +bool epc_can_insert_card_into_post(bool retVal, struct map_session_data* sd, + int *idx_card, int *idx_equip); #endif // EVOL_MAP_PC -- cgit v1.2.3-70-g09d2