Angband
Data Fields
artifact Struct Reference

Information about artifacts. More...

#include <object.h>

Data Fields

char * name
 
char * text
 
u32b aidx
 
struct artifactnext
 
int tval
 General artifact type (see TV_ macros) More...
 
int sval
 Artifact sub-type. More...
 
int to_h
 Bonus to hit. More...
 
int to_d
 Bonus to damage. More...
 
int to_a
 Bonus to armor. More...
 
int ac
 Base armor. More...
 
int dd
 Base damage dice. More...
 
int ds
 Base damage sides. More...
 
int weight
 Weight in 1/10lbs. More...
 
int cost
 Artifact (pseudo-)worth. More...
 
bitflag flags [OF_SIZE]
 Flags. More...
 
int modifiers [OBJ_MOD_MAX]
 
struct element_info el_info [ELEM_MAX]
 
bool * brands
 
bool * slays
 
intcurses
 Array of curse powers. More...
 
int level
 
int alloc_prob
 Difficulty level for activation. More...
 
int alloc_min
 Chance of being generated (i.e. More...
 
int alloc_max
 Minimum depth (can appear earlier) More...
 
bool created
 Maximum depth (will NEVER appear deeper) More...
 
bool seen
 Whether this artifact has been seen this game. More...
 
bool everseen
 Whether this artifact has ever been seen. More...
 
struct activationactivation
 Artifact activation. More...
 
char * alt_msg
 
random_value time
 Recharge time (if appropriate) More...
 

Detailed Description

Information about artifacts.

Note that ::cur_num is written to the savefile.

TODO: Fix this max_num/cur_num crap and just have a big boolean array of which artifacts have been created and haven't, so this can become read-only.

Field Documentation

int ac
u32b aidx
int alloc_max
int alloc_min
int alloc_prob
char* alt_msg
bool* brands
int cost

Artifact (pseudo-)worth.

Referenced by parse_artifact_info(), scramble_artifact(), and test_info0().

bool created
int* curses
int dd
int ds
struct element_info el_info[ELEM_MAX]
bool everseen

Whether this artifact has ever been seen.

Referenced by rd_artifacts(), wr_artifacts(), and wr_ignore().

bitflag flags[OF_SIZE]
int level
int modifiers[OBJ_MOD_MAX]
char* name
struct artifact* next
bool seen

Whether this artifact has been seen this game.

Referenced by player_init(), rd_artifacts(), and wr_artifacts().

bool* slays
int sval
char* text

Recharge time (if appropriate)

Referenced by add_activation(), copy_artifact_data(), parse_artifact_time(), and test_time0().

int to_a
int to_d
int to_h
int tval
int weight

The documentation for this struct was generated from the following file: