One Click Identify feature adjustments (#1463)

- In Official, you can also use Novice Magnifiers
- If you have both type of magnifiers in your inventory, it will always consume the normal magnifier first
This commit is contained in:
Limestone 2016-07-30 06:06:50 +08:00 committed by Lemongrass3110
parent b8660e327d
commit 120df3353e
2 changed files with 3 additions and 1 deletions

View File

@ -18657,7 +18657,8 @@ void clif_parse_Oneclick_Itemidentify(int fd, struct map_session_data *sd) {
return;
// Ignore the request - No magnifiers in inventory
if ((magnifier_idx = pc_search_inventory(sd, ITEMID_MAGNIFIER)) == -1)
if ((magnifier_idx = pc_search_inventory(sd, ITEMID_MAGNIFIER)) == -1 &&
(magnifier_idx = pc_search_inventory(sd, ITEMID_NOVICE_MAGNIFIER)) == -1))
return;
if (pc_delitem(sd, magnifier_idx, 1, 0, 0, LOG_TYPE_OTHER) != 0) // Deleting of magnifier failed, for whatever reason...

View File

@ -106,6 +106,7 @@ enum item_itemid
ITEMID_M_BERSERK_POTION = 12243,
ITEMID_COMP_BATTLE_MANUAL = 12263,
ITEMID_THICK_BATTLE_MANUAL = 12312,
ITEMID_NOVICE_MAGNIFIER = 12325,
ITEMID_ANCILLA = 12333,
ITEMID_DUN_TELE_SCROLL3 = 12352,
ITEMID_REINS_OF_MOUNT = 12622,