From f1afe0dfee7f97d46f6dad924f75d08956d17620 Mon Sep 17 00:00:00 2001 From: Haru Date: Tue, 15 Dec 2015 00:21:43 +0100 Subject: Added some missing item IDs to their enum --- src/map/itemdb.h | 2 ++ src/map/mob.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/itemdb.h b/src/map/itemdb.h index f508f5c1d..5ea22b190 100644 --- a/src/map/itemdb.h +++ b/src/map/itemdb.h @@ -104,6 +104,8 @@ enum item_itemid { ITEMID_FRAGMENT_OF_CRYSTAL = 7321, ITEMID_SKULL_ = 7420, ITEMID_TOKEN_OF_SIEGFRIED = 7621, + ITEMID_GOLD_KEY77 = 7782, + ITEMID_SILVER_KEY77 = 7783, ITEMID_TRAP_ALLOY = 7940, ITEMID_RED_POUCH_OF_SURPRISE = 12024, ITEMID_BLOODY_DEAD_BRANCH = 12103, diff --git a/src/map/mob.c b/src/map/mob.c index d3feb16b8..16b5417b9 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2412,7 +2412,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) { * so while we discuss, for a small period of time, the list is hardcoded (yes officially only those 2 use it, * thus why we're unsure on how to best place the setting) */ /* temp, will not be hardcoded for long thudu. */ - if( it->nameid == 7782 || it->nameid == 7783 ) /* for when not hardcoded: add a check on mvp bonus drop as well */ + if (it->nameid == ITEMID_GOLD_KEY77 || it->nameid == ITEMID_SILVER_KEY77) /* for when not hardcoded: add a check on mvp bonus drop as well */ clif->item_drop_announce(mvp_sd, it->nameid, md->name); // Announce first, or else ditem will be freed. [Lance] -- cgit v1.2.3-70-g09d2