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
 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

◆ ac

int ac

◆ activation

◆ aidx

u32b aidx

◆ alloc_max

int alloc_max

◆ alloc_min

int alloc_min

◆ alloc_prob

int alloc_prob

◆ alt_msg

char* alt_msg

◆ brands

bool* brands

◆ cost

int cost

Artifact (pseudo-)worth.

Referenced by artifact_set_data_free(), parse_artifact_cost(), and test_info0().

◆ created

bool created

◆ curses

int* curses

◆ dd

int dd

◆ ds

int ds

◆ el_info

struct element_info el_info[ELEM_MAX]

◆ everseen

bool everseen

Whether this artifact has ever been seen.

Referenced by rd_artifacts(), and wr_artifacts().

◆ flags

bitflag flags[OF_SIZE]

◆ level

◆ modifiers

int modifiers[OBJ_MOD_MAX]

◆ name

char* name

◆ next

struct artifact* next

◆ seen

bool seen

Whether this artifact has been seen this game.

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

◆ slays

bool* slays

◆ sval

int sval

◆ text

char* text

◆ time

◆ to_a

int to_a

◆ to_d

int to_d

◆ to_h

int to_h

◆ tval

int tval

◆ weight

int weight

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