Atrinik Server  4.0
Data Structures | Macros | Typedefs
treasure.h File Reference

Go to the source code of this file.

Data Structures

struct  treasure_attrs
 
struct  treasure
 
struct  treasure_list
 

Macros

#define CHANCE_FOR_ARTIFACT   20
 
#define NUM_COINS   6
 
#define DIFFLEVELS   201
 
#define MAXMAGIC   4
 
#define GT_ENVIRONMENT   0x0001
 
#define GT_STARTEQUIP   0x0004
 
#define GT_APPLY   0x0008
 
#define GT_ONLY_GOOD   0x0010
 
#define GT_UPDATE_INV   0x0020
 
#define GT_NO_VALUE   0x0040
 

Typedefs

typedef struct treasure_attrs treasure_attrs_t
 
typedef struct treasure treasure_t
 
typedef struct treasure_list treasure_list_t
 

Detailed Description

Defines and variables used by the artifact generation routines.

Definition in file treasure.h.

Macro Definition Documentation

#define CHANCE_FOR_ARTIFACT   20

Chance for an item to become artifact if not magical.

Definition at line 34 of file treasure.h.

#define DIFFLEVELS   201

Maximum difficulty levels.

Definition at line 42 of file treasure.h.

#define MAXMAGIC   4

Maximum magic.

Definition at line 47 of file treasure.h.

#define NUM_COINS   6

Number of coin types

Definition at line 37 of file treasure.h.

Typedef Documentation

When a treasure got cloned from archlist, we want to perhaps change some default values. All values in this structure will override the default arch.

Treasure list structure.

typedef struct treasure treasure_t

Treasure is one element in a linked list, which together consists of a complete treasure list.

Any arch can point to a treasure list to get generated standard treasure when an archetype of that type is generated.