Crossfire Server, Trunk  R20513
Macros
Treasure options

Some defines for various options which can be set for random map treasures. More...

Macros

#define CONCENTRATED   1 /* all the treasure is at the C's for onions. */
 
#define DOORED   8 /* treasure has doors around it. */
 
#define FILLED   128 /* Fill/tile the entire map with treasure */
 
#define HIDDEN   2 /* doors to treasure are hidden. */
 
#define KEYREQUIRED   4 /* chest has a key, which is placed randomly in the map. */
 
#define LAST_OPTION   64 /* set this to the last real option, for random */
 
#define RICH   64 /* 2x as much treasure as default */
 
#define SPARSE   32 /* 1/2 as much treasure as default */
 
#define TRAPPED   16 /* trap dropped in same location as chest. */
 

Detailed Description

Some defines for various options which can be set for random map treasures.

Macro Definition Documentation

#define CONCENTRATED   1 /* all the treasure is at the C's for onions. */

Definition at line 35 of file treasure.c.

Referenced by place_treasure().

#define DOORED   8 /* treasure has doors around it. */

Definition at line 38 of file treasure.c.

Referenced by lock_and_hide_doors(), place_treasure(), and surround_by_doors().

#define FILLED   128 /* Fill/tile the entire map with treasure */

Definition at line 42 of file treasure.c.

#define HIDDEN   2 /* doors to treasure are hidden. */

Definition at line 36 of file treasure.c.

Referenced by lock_and_hide_doors(), and place_treasure().

#define KEYREQUIRED   4 /* chest has a key, which is placed randomly in the map. */

Definition at line 37 of file treasure.c.

Referenced by place_chest().

#define LAST_OPTION   64 /* set this to the last real option, for random */

Definition at line 43 of file treasure.c.

Referenced by place_treasure().

#define RICH   64 /* 2x as much treasure as default */

Definition at line 41 of file treasure.c.

Referenced by place_treasure().

#define SPARSE   32 /* 1/2 as much treasure as default */

Definition at line 40 of file treasure.c.

Referenced by place_treasure().

#define TRAPPED   16 /* trap dropped in same location as chest. */

Definition at line 39 of file treasure.c.

Referenced by place_chest().