… | |
… | |
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 */ |