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

int ac

Artifact-like activation.

Referenced by add_ability_aux(), copy_artifact_data(), count_abilities(), and parse_artifact_act().

int alloc_max

Lowest normal dungeon level.

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

int alloc_min

Highest normal dungeon level.

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

int alloc_prob
bool aware
struct object_base* base
bool* brands
random_value charge

Number of charges (staves/wands)

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

int cost
int* curses

Array of curse powers.

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

byte d_attr
wchar_t d_char
int dd
int ds
struct effect* effect
char* effect_msg
struct element_info el_info[ELEM_MAX]
bool everseen
bitflag flags[OF_SIZE]
struct flavor* flavor
int gen_mult_prob

Probability of generating more than one.

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

byte ignore
u32b kidx
bitflag kind_flags[KF_SIZE]
int level
char* name
struct object_kind* next
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().

quark_t note_unaware
int power

Power of the item's effect.

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

bool* slays
random_value stack_size

Number to generate.

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

int sval
char* text

Recharge time (rods/activation)

Referenced by copy_artifact_data(), object_prep(), parse_artifact_time(), parse_object_time(), and test_time0().

bool tried
int tval
int weight

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