Skip to content

Commit 63c6fc3

Browse files
committed
Remove support for the deprecated View field in the item DB
The field was replaced with ViewSprite and Subtype in a98b2d9 and PR HerculesWS#1828 (2016-09-04). Signed-off-by: Haru <[email protected]>
1 parent db809a3 commit 63c6fc3

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/map/itemdb.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2052,7 +2052,6 @@ static int itemdb_readdb_libconfig_sub(struct config_setting_t *it, int n, const
20522052
* WeaponLv: Weapon Level
20532053
* EquipLv: Equip required level or [min, max]
20542054
* Refine: Refineable
2055-
* View: View ID
20562055
* BindOnEquip: (true or false)
20572056
* BuyingStore: (true or false)
20582057
* Delay: Delay to use item
@@ -2219,21 +2218,6 @@ static int itemdb_readdb_libconfig_sub(struct config_setting_t *it, int n, const
22192218
if (itemdb->lookup_const(it, "ViewSprite", &i32) && i32 >= 0)
22202219
id.view_sprite = i32;
22212220

2222-
if (itemdb->lookup_const(it, "View", &i32) && i32 >= 0) { // TODO: Remove (Deprecated - 2016-09-04 [Haru])
2223-
if ((id.type == IT_WEAPON || id.type == IT_AMMO) && id.subtype == 0) {
2224-
ShowWarning("itemdb_readdb_libconfig_sub: The 'View' field is deprecated. Please rename it to 'Subtype' (or 'ViewSprite'). (Item #%d: %s)\n",
2225-
id.nameid, id.name);
2226-
id.subtype = i32;
2227-
} else if ((id.type != IT_WEAPON && id.type != IT_AMMO) && id.view_sprite == 0) {
2228-
ShowWarning("itemdb_readdb_libconfig_sub: The 'View' field is deprecated. Please rename it to 'ViewSprite' (or 'Subtype'). (Item #%d: %s)\n",
2229-
id.nameid, id.name);
2230-
id.view_sprite = i32;
2231-
} else {
2232-
ShowWarning("itemdb_readdb_libconfig_sub: The 'View' field is deprecated. Please rename it to 'Subtype' or 'ViewSprite'. (Item #%d: %s)\n",
2233-
id.nameid, id.name);
2234-
}
2235-
}
2236-
22372221
if( (t = libconfig->setting_get_member(it, "BindOnEquip")) )
22382222
id.flag.bindonequip = libconfig->setting_get_bool(t) ? 1 : 0;
22392223

0 commit comments

Comments
 (0)