From a98b2d93f3727d18d8add5cb5c35830cbb171114 Mon Sep 17 00:00:00 2001 From: Haru Date: Mon, 5 Sep 2016 00:07:08 +0200 Subject: Split 'View' in two different fields in the item database - The field was used both for sprite view IDs and for weapon or ammunition subtypes. Now the fields 'ViewSprite' and 'Subtype' are used respectively. Signed-off-by: Haru --- doc/item_db.txt | 10 ++++++---- doc/script_commands.txt | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'doc') diff --git a/doc/item_db.txt b/doc/item_db.txt index c43b5a69c..04f05fb4e 100644 --- a/doc/item_db.txt +++ b/doc/item_db.txt @@ -65,7 +65,8 @@ item_db: ( EquipLv: Equip required level (int, defaults to 0) EquipLv: [min, max] (alternative syntax with min / max level) Refine: Refineable (boolean, defaults to true) - View: View ID (int, defaults to 0) + Subtype: Item Subtype (int, defaults to 0) + ViewSprite: Sprite view ID (int, defaults to 0) BindOnEquip: true/false (boolean, defaults to false) ForceSerial: true/false (boolean, defaults to false) BuyingStore: true/false (boolean, defaults to false) @@ -239,9 +240,10 @@ EquipLv: Base level required to be able to equip. It is possible to specify Refineable: true if the item can be refined, false otherwise. If no value is specified, it defaults to true. -View: For normal items, defines a replacement view-sprite for the item (eg: - Making apples look like apple juice). The special case are weapons - and ammo where this value indicates the weapon-class of the item. +ViewSprite: Defines a replacement view-sprite for the item (eg: + Making apples look like apple juice). + +Subtype: For weapons and ammo, indicates the weapon-class of the item. For weapons, the types are: W_FIST 0: Bare fist diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 779cd271c..79d609125 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -3186,7 +3186,7 @@ Valid types are: if = 0, then monsters don't drop it at all (rare or a quest item) if = 10000, then this item is sold in NPC shops only 4 - sex; 5 - equip; 6 - weight; 7 - atk; 8 - def; 9 - range; - 10 - slot; 11 - look; 12 - elv; 13 - wlv; 14 - view id + 10 - slot; 11 - subtype; 12 - elv; 13 - wlv; 14 - view id If RENEWAL is defined, 15 - matk @@ -8251,7 +8251,7 @@ Valid types are: if = 0, then monsters don't drop it at all (rare or a quest item) if = 10000, then this item is sold in NPC shops only 4 - sex; 5 - equip; 6 - weight; 7 - atk; 8 - def; 9 - range; - 10 - slot; 11 - look; 12 - elv; 13 - wlv; 14 - view id + 10 - slot; 11 - subtype; 12 - elv; 13 - wlv; 14 - view id Example: -- cgit v1.2.3-70-g09d2