ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/define.h
(Generate patch)

Comparing deliantra/server/include/define.h (file contents):
Revision 1.120 by root, Sun Apr 4 04:58:46 2010 UTC vs.
Revision 1.124 by root, Tue Apr 6 21:11:48 2010 UTC

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
285typedef 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 */
292static 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() */
695GENCONST_IV(AP_)
696enum apply_flag 724enum 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,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines