diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-17 19:09:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-17 19:09:04 +0300 |
commit | 333c908061a1871a73a8562f0095bb15c3ddb740 (patch) | |
tree | 546c909b53960ca30b9512c27dd91d76bc701ed3 /src/emap/pc.h | |
parent | 45e89b39985270e12d5f8eb19c666c8fd0562661 (diff) | |
download | plugin-333c908061a1871a73a8562f0095bb15c3ddb740.tar.gz plugin-333c908061a1871a73a8562f0095bb15c3ddb740.tar.bz2 plugin-333c908061a1871a73a8562f0095bb15c3ddb740.tar.xz plugin-333c908061a1871a73a8562f0095bb15c3ddb740.zip |
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
}
Diffstat (limited to 'src/emap/pc.h')
-rw-r--r-- | src/emap/pc.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 |