Angband
Data Fields
object_kind Struct Reference

Information about object kinds, including player knowledge. More...

#include <object.h>

Data Fields

char * name
 
char * text
 
struct object_basebase
 
struct object_kindnext
 
u32b kidx
 
int tval
 General object type (see TV_ macros) More...
 
int sval
 Object sub-type. More...
 
random_value pval
 
random_value to_h
 Bonus to hit. More...
 
random_value to_d
 Bonus to damage. More...
 
random_value to_a
 Bonus to armor. More...
 
int ac
 Base armor. More...
 
int dd
 Damage dice. More...
 
int ds
 Damage sides. More...
 
int weight
 Weight, in 1/10lbs. More...
 
int cost
 Object base cost. More...
 
bitflag flags [OF_SIZE]
 Flags. More...
 
bitflag kind_flags [KF_SIZE]
 Kind flags. More...
 
random_value modifiers [OBJ_MOD_MAX]
 
struct element_info el_info [ELEM_MAX]
 
bool * brands
 
bool * slays
 
intcurses
 Array of curse powers. More...
 
byte d_attr
 Default object attribute. More...
 
wchar_t d_char
 Default object character. More...
 
int alloc_prob
 Allocation: commonness. More...
 
int alloc_min
 Highest normal dungeon level. More...
 
int alloc_max
 Lowest normal dungeon level. More...
 
int level
 Level (difficulty of activation) More...
 
struct activationactivation
 Artifact-like activation. More...
 
struct effecteffect
 Effect this item produces (effects.c) More...
 
int power
 Power of the item's effect. More...
 
char * effect_msg
 
random_value time
 Recharge time (rods/activation) More...
 
random_value charge
 Number of charges (staves/wands) More...
 
int gen_mult_prob
 Probability of generating more than one. More...
 
random_value stack_size
 Number to generate. More...
 
struct flavorflavor
 Special object flavor (or zero) More...
 
quark_t note_aware
 Also saved in savefile. More...
 
quark_t note_unaware
 Autoinscription quark number. More...
 
bool aware
 Set if player is aware of the kind's effects. More...
 
bool tried
 Set if kind has been tried. More...
 
byte ignore
 Ignore settings. More...
 
bool everseen
 Kind has been seen (to despoilify ignore menus) More...
 

Detailed Description

Information about object kinds, including player knowledge.

TODO: split out the user-changeable bits into a separate struct so this one can be read-only.

Field Documentation

◆ ac

int ac

◆ activation

◆ alloc_max

int alloc_max

Lowest normal dungeon level.

Referenced by alloc_init_objects(), parse_object_alloc(), and test_alloc0().

◆ alloc_min

int alloc_min

Highest normal dungeon level.

Referenced by alloc_init_objects(), make_object(), parse_object_alloc(), and test_alloc0().

◆ alloc_prob

int alloc_prob

◆ aware

bool aware

◆ base

struct object_base* base

◆ brands

bool* brands

◆ charge

random_value charge

Number of charges (staves/wands)

Referenced by object_prep(), parse_object_charges(), store_carry(), and test_charges0().

◆ cost

int cost

◆ curses

int* curses

Array of curse powers.

Referenced by cleanup_object(), object_prep(), and parse_object_curse().

◆ d_attr

byte d_attr

◆ d_char

wchar_t d_char

◆ dd

int dd

◆ ds

int ds

◆ effect

struct effect* effect

◆ effect_msg

char* effect_msg

◆ el_info

struct element_info el_info[ELEM_MAX]

◆ everseen

bool everseen

◆ flags

bitflag flags[OF_SIZE]

◆ flavor

struct flavor* flavor

◆ gen_mult_prob

int gen_mult_prob

Probability of generating more than one.

Referenced by make_object(), parse_object_pile(), and test_pile0().

◆ ignore

byte ignore

◆ kidx

u32b kidx

◆ kind_flags

bitflag kind_flags[KF_SIZE]

◆ level

◆ modifiers

◆ name

char* name

◆ next

struct object_kind* next

◆ note_aware

quark_t note_aware

Also saved in savefile.

Autoinscription quark number

Referenced by add_autoinscription(), get_autoinscription(), o_xtra_act(), o_xtra_prompt(), rd_ignore(), remove_autoinscription(), and wr_ignore().

◆ note_unaware

quark_t note_unaware

◆ power

int power

Power of the item's effect.

Referenced by add_curse(), object_power_calculation_EFFECT_POWER(), and parse_object_power().

◆ pval

◆ slays

bool* slays

◆ stack_size

random_value stack_size

Number to generate.

Referenced by make_object(), parse_object_pile(), and test_pile0().

◆ sval

int sval

◆ text

char* text

◆ time

◆ to_a

◆ to_d

◆ to_h

◆ tried

bool tried

◆ tval

int tval

◆ weight

int weight

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