… | |
… | |
175 | #define EXIT 66 |
175 | #define EXIT 66 |
176 | #define ENCOUNTER 67 |
176 | #define ENCOUNTER 67 |
177 | #define SHOP_FLOOR 68 |
177 | #define SHOP_FLOOR 68 |
178 | #define SHOP_MAT 69 |
178 | #define SHOP_MAT 69 |
179 | #define RING 70 |
179 | #define RING 70 |
180 | #define FLOOR 71 /* this is a floor tile -> native layer 0 */ |
180 | //#define FLOOR 71 /* this is a floor tile -> native layer 0 */ // UNUSED??? |
181 | #define FLESH 72 /* animal 'body parts' -b.t. */ |
181 | #define FLESH 72 /* animal 'body parts' -b.t. */ |
182 | #define INORGANIC 73 /* metals and minerals */ |
182 | #define INORGANIC 73 /* metals and minerals */ |
183 | #define SKILL_TOOL 74 /* Allows the use of a skill */ |
183 | #define SKILL_TOOL 74 /* Allows the use of a skill */ |
184 | #define LIGHTER 75 |
184 | #define LIGHTER 75 |
185 | //76 |
185 | //76 |
… | |
… | |
280 | |
280 | |
281 | #define NUM_TYPES 166 // must be max(type) + 1 |
281 | #define NUM_TYPES 166 // must be max(type) + 1 |
282 | |
282 | |
283 | /* END TYPE DEFINE */ |
283 | /* END TYPE DEFINE */ |
284 | |
284 | |
|
|
285 | typedef std::bitset<NUM_TYPES> typeset; |
|
|
286 | |
|
|
287 | /* These are the items that currently can change digestion, regeneration, |
|
|
288 | * spell point recovery and mana point recovery. Seems sort of an arbitary |
|
|
289 | * list, but other items store other info into stats array. |
|
|
290 | * As a special exception, bows use stats.sp for their own purposes. |
|
|
291 | */ |
|
|
292 | static const struct digest_types : typeset |
|
|
293 | { |
|
|
294 | digest_types () |
|
|
295 | { |
|
|
296 | set (WEAPON); |
|
|
297 | set (BOW); |
|
|
298 | set (ARMOUR); |
|
|
299 | set (HELMET); |
|
|
300 | set (SHIELD); |
|
|
301 | set (RING); |
|
|
302 | set (BOOTS); |
|
|
303 | set (GLOVES); |
|
|
304 | set (AMULET); |
|
|
305 | set (GIRDLE); |
|
|
306 | set (BRACERS); |
|
|
307 | set (CLOAK); |
|
|
308 | set (DISEASE); |
|
|
309 | set (FORCE); |
|
|
310 | set (SKILL); |
|
|
311 | } |
|
|
312 | } digest_types; |
|
|
313 | |
285 | // maximum supported subtype number + 1, can be increased to 256 |
314 | // maximum supported subtype number + 1, can be increased to 256 |
286 | // currently (2007-09) in use: 50 |
315 | // currently (2007-09) in use: 50 |
287 | #define NUM_SUBTYPES 64 |
316 | #define NUM_SUBTYPES 64 |
288 | |
317 | |
289 | /* Subtypes for BUILDER */ |
318 | /* Subtypes for BUILDER */ |
… | |
… | |
690 | |
719 | |
691 | #define PREFER_HIGH 1 |
720 | #define PREFER_HIGH 1 |
692 | #define PREFER_LOW 0 |
721 | #define PREFER_LOW 0 |
693 | |
722 | |
694 | /* Flags for apply_special() */ |
723 | /* Flags for apply_special() */ |
695 | GENCONST_IV(AP_) |
|
|
696 | enum apply_flag |
724 | enum apply_flag |
697 | { |
725 | { |
698 | /* Basic flags/mode, always use one of these */ |
726 | /* Basic flags/mode, always use one of these */ |
699 | AP_TOGGLE = 0, |
727 | AP_TOGGLE = 0, |
700 | AP_APPLY = 0x01, |
728 | AP_APPLY = 0x01, |