2 * Copyright (c) 2015-2020 Philip Pavlick. See '3rdparty.txt' for other
3 * licenses. All rights reserved.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the SwashRL project nor the names of its
13 * contributors may be used to endorse or promote products derived from
14 * this software without specific prior written permission.
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 * POSSIBILITY OF SUCH DAMAGE.
29 // iflags.d: Flags which define item properties & behavior
31 // A generic placeholder value indicating either that there is no item here
32 // or that a certain property about an item (e.g. equipment slot) is not
36 // equip areas (for armor)
38 enum EQUIP_NO_ARMOR
= 0x000;
39 enum EQUIP_SHIELD
= 0x001;
40 enum EQUIP_HELMET
= 0x002;
41 enum EQUIP_CUIRASS
= 0x004;
42 enum EQUIP_PAULDRONS
= 0x008;
43 enum EQUIP_GLOVES
= 0x010;
44 enum EQUIP_BRACERS
= 0x020;
45 enum EQUIP_GREAVES
= 0x040;
46 enum EQUIP_KILT
= 0X080;
47 enum EQUIP_FEET
= 0x100;
48 enum EQUIP_TAIL
= 0x200;
49 enum EQUIP_JEWELERY_RING
= 0x400;
50 enum EQUIP_JEWELERY_NECK
= 0x800;
54 enum ITEM_WEAPON
= 0x0001;
55 enum ITEM_WEAPON_LARGE
= 0x0003;
56 enum ITEM_WEAPON_LAUNCHER
= 0x0007;
57 enum ITEM_WEAPON_MISSILE
= 0x0009;
58 enum ITEM_TOOL
= 0x0010;
59 enum ITEM_FOOD
= 0x0020;
60 enum ITEM_DRINK
= 0x0040;
61 enum ITEM_SCROLL
= 0x0080;
62 enum ITEM_BOOK
= 0x0100;
63 enum ITEM_ARMOR
= 0x0200;
64 enum ITEM_JEWELERY
= 0x0400;
65 enum ITEM_COIN
= 0x0800;
66 enum ITEM_REAGENT
= 0x1000;