--- deliantra/server/include/define.h 2010/04/04 04:58:46 1.120 +++ deliantra/server/include/define.h 2010/04/06 21:11:48 1.124 @@ -177,7 +177,7 @@ #define SHOP_FLOOR 68 #define SHOP_MAT 69 #define RING 70 -#define FLOOR 71 /* this is a floor tile -> native layer 0 */ +//#define FLOOR 71 /* this is a floor tile -> native layer 0 */ // UNUSED??? #define FLESH 72 /* animal 'body parts' -b.t. */ #define INORGANIC 73 /* metals and minerals */ #define SKILL_TOOL 74 /* Allows the use of a skill */ @@ -282,6 +282,35 @@ /* END TYPE DEFINE */ +typedef std::bitset typeset; + +/* These are the items that currently can change digestion, regeneration, + * spell point recovery and mana point recovery. Seems sort of an arbitary + * list, but other items store other info into stats array. + * As a special exception, bows use stats.sp for their own purposes. + */ +static const struct digest_types : typeset +{ + digest_types () + { + set (WEAPON); + set (BOW); + set (ARMOUR); + set (HELMET); + set (SHIELD); + set (RING); + set (BOOTS); + set (GLOVES); + set (AMULET); + set (GIRDLE); + set (BRACERS); + set (CLOAK); + set (DISEASE); + set (FORCE); + set (SKILL); + } +} digest_types; + // maximum supported subtype number + 1, can be increased to 256 // currently (2007-09) in use: 50 #define NUM_SUBTYPES 64 @@ -692,7 +721,6 @@ #define PREFER_LOW 0 /* Flags for apply_special() */ -GENCONST_IV(AP_) enum apply_flag { /* Basic flags/mode, always use one of these */