Data Fields
monster_race Struct Reference

Monster "race" information, including racial memories. More...

#include <monster.h>

Data Fields

struct monster_racenext
unsigned int ridx
char * name
char * text
char * plural
struct monster_basebase
int avg_hp
int ac
int sleep
int hearing
int smell
int speed
int light
int mexp
int freq_innate
int freq_spell
int spell_power
bitflag flags [RF_SIZE]
bitflag spell_flags [RSF_SIZE]
struct monster_blowblow
int level
int rarity
byte d_attr
wchar_t d_char
byte max_num
int cur_num
struct monster_dropdrops
struct monster_friendsfriends
struct monster_friends_basefriends_base
struct monster_mimicmimic_kinds
struct monster_shapeshapes
int num_shapes

Detailed Description

Monster "race" information, including racial memories.

Note that "d_attr" and "d_char" are used for MORE than "visual" stuff.

Note that "cur_num" (and "max_num") represent the number of monsters of the given race currently on (and allowed on) the current level. This information yields the "dead" flag for Unique monsters.

Note that "max_num" is reset when a new player is created. Note that "cur_num" is reset when a new level is created.

Maybe "cur_num", and "max_num" should be moved out of this array since they are not read from "monster.txt".

Field Documentation

◆ ac

int ac

◆ avg_hp

int avg_hp

◆ base

struct monster_base* base

◆ blow

struct monster_blow* blow

◆ cur_num

int cur_num

◆ d_attr

byte d_attr

◆ d_char

wchar_t d_char

◆ drops

struct monster_drop* drops

◆ flags

bitflag flags[RF_SIZE]

Referenced by become_aware(), cave_generate(), compact_monsters(), count_known_monsters(), delete_monster_idx(), describe_origin(), display_monster(), do_animation(), do_cmd_knowledge_monsters(), do_cmd_mon_command(), do_cmd_query_symbol(), does_resist(), effect_handler_EARTHQUAKE(), get_message_type(), get_mon_name(), get_mon_num(), get_monster_brand_multiplier(), get_move(), get_move_find_range(), get_subject(), grid_data_as_text(), improve_attack_modifier(), lore_append_movement(), lore_description(), lore_monster_sex(), lore_title(), make_attack_normal(), mon_create_drop(), mon_create_drop_count(), mon_create_mimicked_object(), mon_pit_hook(), mon_select(), mon_take_nonplayer_hit(), monster_attack_monster(), monster_can_be_scared(), monster_can_kill(), monster_can_move(), monster_desc(), monster_elemental_damage(), monster_flags_known(), monster_group_remove_leader(), monster_has_spirit(), monster_hates_grid(), monster_is_destroyed(), monster_is_esp_detectable(), monster_is_evil(), monster_is_fearful(), monster_is_invisible(), monster_is_nonliving(), monster_is_not_invisible(), monster_is_powerful(), monster_is_smart(), monster_is_stupid(), monster_is_undead(), monster_is_unique(), monster_list_entry_line_color(), monster_passes_walls(), monster_take_terrain_damage(), monster_taking_terrain_damage(), monster_turn(), monster_turn_can_move(), monster_turn_grab_objects(), monster_turn_multiply(), monster_turn_should_stagger(), move_mimicked_object(), object_origin_combine(), parse_monster_base(), parse_monster_flags(), parse_monster_flags_off(), place_friends(), place_monster(), place_monster_base_okay(), place_new_monster_one(), player_init(), player_kill_monster(), poly_race(), process_player_cleanup(), project_m_apply_side_effects(), project_m_monster_attack(), project_monster_dispel(), project_monster_handler_DISEN(), project_monster_handler_LIGHT(), project_monster_handler_MON_CONF(), project_monster_handler_MON_HOLD(), project_monster_handler_MON_POLY(), project_monster_handler_MON_SLOW(), project_monster_handler_MON_STUN(), project_monster_handler_NETHER(), project_monster_hurt_immune(), project_monster_hurt_only(), project_monster_resist_element(), project_monster_resist_other(), project_monster_scare(), project_monster_sleep(), project_monster_teleport_away(), quest_check(), rd_monster_memory(), react_to_specific_slay(), regen_monster(), saving_throw(), spoil_mon_desc(), spoil_mon_info(), steal_monster_item(), summon_specific_okay(), target_set_interactive_aux(), test_blows(), test_flags0(), and update_mon().

◆ freq_innate

int freq_innate

◆ freq_spell

int freq_spell

◆ friends

struct monster_friends* friends

◆ friends_base

struct monster_friends_base* friends_base

◆ hearing

int hearing

◆ level

◆ light

int light

◆ max_num

byte max_num

◆ mexp

int mexp

◆ mimic_kinds

struct monster_mimic* mimic_kinds

◆ name

char* name

◆ next

struct monster_race* next

◆ num_shapes

int num_shapes

◆ plural

char* plural

◆ rarity

int rarity

◆ ridx

unsigned int ridx

◆ shapes

struct monster_shape* shapes

◆ sleep

int sleep

◆ smell

int smell

◆ speed

int speed

◆ spell_flags

bitflag spell_flags[RSF_SIZE]

◆ spell_power

int spell_power

◆ text

char* text

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