Angband
Macros | Functions | Variables
mon-init.c File Reference

Monster initialization routines. More...

#include "angband.h"
#include "datafile.h"
#include "effects.h"
#include "generate.h"
#include "init.h"
#include "mon-init.h"
#include "mon-lore.h"
#include "mon-msg.h"
#include "mon-spell.h"
#include "mon-util.h"
#include "mon-blows.h"
#include "monster.h"
#include "obj-tval.h"
#include "obj-util.h"
#include "object.h"
#include "player-spell.h"
#include "project.h"
#include "list-mon-race-flags.h"
#include "list-mon-spells.h"
#include "list-object-flags.h"
#include "list-effects.h"

Macros

#define RF(a, b, c)   #a,
 
#define RSF(a, b)   #a,
 
#define OF(a)   #a,
 
#define EFFECT(x, a, b, c, d, e)   #x,
 

Functions

int flag_index_by_name (const char *name)
 Return the index of a flag from its name. More...
 
static struct blow_methodfindmeth (const char *meth_name)
 

Initialize monster blow methods

More...
 
static enum parser_error parse_meth_name (struct parser *p)
 
static enum parser_error parse_meth_cut (struct parser *p)
 
static enum parser_error parse_meth_stun (struct parser *p)
 
static enum parser_error parse_meth_miss (struct parser *p)
 
static enum parser_error parse_meth_phys (struct parser *p)
 
static enum parser_error parse_meth_message_type (struct parser *p)
 
static enum parser_error parse_meth_act_msg (struct parser *p)
 
static enum parser_error parse_meth_desc (struct parser *p)
 
struct parserinit_parse_meth (void)
 
static errr run_parse_meth (struct parser *p)
 
static errr finish_parse_meth (struct parser *p)
 
static void cleanup_meth (void)
 
static struct blow_effectfindeff (const char *eff_name)
 

Initialize monster blow effects

More...
 
static enum parser_error parse_eff_name (struct parser *p)
 
static enum parser_error parse_eff_power (struct parser *p)
 
static enum parser_error parse_eff_eval (struct parser *p)
 
static enum parser_error parse_eff_desc (struct parser *p)
 
static enum parser_error parse_eff_lore_color (struct parser *p)
 
static enum parser_error parse_eff_lore_color_resist (struct parser *p)
 
static enum parser_error parse_eff_lore_color_immune (struct parser *p)
 
static enum parser_error parse_eff_effect_type (struct parser *p)
 
static enum parser_error parse_eff_resist (struct parser *p)
 
struct parserinit_parse_eff (void)
 
static errr run_parse_eff (struct parser *p)
 
static errr finish_parse_eff (struct parser *p)
 
static void cleanup_eff (void)
 
static enum parser_error parse_pain_type (struct parser *p)
 

Initialize monster pain messages

More...
 
static enum parser_error parse_pain_message (struct parser *p)
 
struct parserinit_parse_pain (void)
 
static errr run_parse_pain (struct parser *p)
 
static errr finish_parse_pain (struct parser *p)
 
static void cleanup_pain (void)
 
static enum parser_error parse_mon_spell_name (struct parser *p)
 

Initialize monster spells

More...
 
static enum parser_error parse_mon_spell_lore_color (struct parser *p)
 
static enum parser_error parse_mon_spell_lore_color_resist (struct parser *p)
 
static enum parser_error parse_mon_spell_lore_color_immune (struct parser *p)
 
static enum parser_error parse_mon_spell_message_type (struct parser *p)
 
static enum parser_error parse_mon_spell_message (struct parser *p)
 
static enum parser_error parse_mon_spell_message_strong (struct parser *p)
 
static enum parser_error parse_mon_spell_blind_message (struct parser *p)
 
static enum parser_error parse_mon_spell_blind_message_strong (struct parser *p)
 
static enum parser_error parse_mon_spell_miss_message (struct parser *p)
 
static enum parser_error parse_mon_spell_save_message (struct parser *p)
 
static enum parser_error parse_mon_spell_lore_desc (struct parser *p)
 
static enum parser_error parse_mon_spell_lore_desc_strong (struct parser *p)
 
static enum parser_error parse_mon_spell_hit (struct parser *p)
 
static enum parser_error parse_mon_spell_effect (struct parser *p)
 
static enum parser_error parse_mon_spell_effect_yx (struct parser *p)
 
static enum parser_error parse_mon_spell_dice (struct parser *p)
 
static enum parser_error parse_mon_spell_expr (struct parser *p)
 
struct parserinit_parse_mon_spell (void)
 
static errr run_parse_mon_spell (struct parser *p)
 
static errr finish_parse_mon_spell (struct parser *p)
 
static void cleanup_mon_spell (void)
 
static enum parser_error parse_mon_base_name (struct parser *p)
 

Initialize monster bases

More...
 
static enum parser_error parse_mon_base_glyph (struct parser *p)
 
static enum parser_error parse_mon_base_pain (struct parser *p)
 
static enum parser_error parse_mon_base_flags (struct parser *p)
 
static enum parser_error parse_mon_base_desc (struct parser *p)
 
static struct parserinit_parse_mon_base (void)
 
static errr run_parse_mon_base (struct parser *p)
 
static errr finish_parse_mon_base (struct parser *p)
 
static void cleanup_mon_base (void)
 
static enum parser_error parse_monster_name (struct parser *p)
 

Initialize monsters

More...
 
static enum parser_error parse_monster_base (struct parser *p)
 
static enum parser_error parse_monster_glyph (struct parser *p)
 
static enum parser_error parse_monster_color (struct parser *p)
 
static enum parser_error parse_monster_speed (struct parser *p)
 
static enum parser_error parse_monster_hit_points (struct parser *p)
 
static enum parser_error parse_monster_hearing (struct parser *p)
 
static enum parser_error parse_monster_smell (struct parser *p)
 
static enum parser_error parse_monster_armor_class (struct parser *p)
 
static enum parser_error parse_monster_sleepiness (struct parser *p)
 
static enum parser_error parse_monster_depth (struct parser *p)
 
static enum parser_error parse_monster_rarity (struct parser *p)
 
static enum parser_error parse_monster_experience (struct parser *p)
 
static enum parser_error parse_monster_blow (struct parser *p)
 
static enum parser_error parse_monster_flags (struct parser *p)
 
static enum parser_error parse_monster_flags_off (struct parser *p)
 
static enum parser_error parse_monster_desc (struct parser *p)
 
static enum parser_error parse_monster_spell_freq (struct parser *p)
 
static enum parser_error parse_monster_spell_power (struct parser *p)
 
static enum parser_error parse_monster_spells (struct parser *p)
 
static enum parser_error parse_monster_drop (struct parser *p)
 
static enum parser_error parse_monster_drop_base (struct parser *p)
 
static enum parser_error parse_monster_friends (struct parser *p)
 
static enum parser_error parse_monster_friends_base (struct parser *p)
 
static enum parser_error parse_monster_mimic (struct parser *p)
 
static enum parser_error parse_monster_plural (struct parser *p)
 
struct parserinit_parse_monster (void)
 
static errr run_parse_monster (struct parser *p)
 
static errr finish_parse_monster (struct parser *p)
 
static void cleanup_monster (void)
 
static enum parser_error parse_pit_name (struct parser *p)
 

Initialize monster pits

More...
 
static enum parser_error parse_pit_room (struct parser *p)
 
static enum parser_error parse_pit_alloc (struct parser *p)
 
static enum parser_error parse_pit_obj_rarity (struct parser *p)
 
static enum parser_error parse_pit_mon_base (struct parser *p)
 
static enum parser_error parse_pit_mon_ban (struct parser *p)
 
static enum parser_error parse_pit_color (struct parser *p)
 
static enum parser_error parse_pit_flags_req (struct parser *p)
 
static enum parser_error parse_pit_flags_ban (struct parser *p)
 
static enum parser_error parse_pit_spell_req (struct parser *p)
 
static enum parser_error parse_pit_spell_ban (struct parser *p)
 
struct parserinit_parse_pit (void)
 
static errr run_parse_pit (struct parser *p)
 
static errr finish_parse_pit (struct parser *p)
 
static void cleanup_pits (void)
 
static enum parser_error parse_lore_name (struct parser *p)
 

Initialize monster lore

More...
 
static enum parser_error parse_lore_base (struct parser *p)
 
static enum parser_error parse_lore_counts (struct parser *p)
 
static enum parser_error parse_lore_blow (struct parser *p)
 
static enum parser_error parse_lore_flags (struct parser *p)
 
static enum parser_error parse_lore_spells (struct parser *p)
 
static enum parser_error parse_lore_drop (struct parser *p)
 
static enum parser_error parse_lore_drop_base (struct parser *p)
 
static enum parser_error parse_lore_friends (struct parser *p)
 
static enum parser_error parse_lore_friends_base (struct parser *p)
 
static enum parser_error parse_lore_mimic (struct parser *p)
 
struct parserinit_parse_lore (void)
 
static errr run_parse_lore (struct parser *p)
 
static errr finish_parse_lore (struct parser *p)
 
static void cleanup_lore (void)
 

Variables

struct blow_methodblow_methods
 
struct blow_effectblow_effects
 
struct monster_painpain_messages
 
struct monster_spellmonster_spells
 
struct monster_baserb_info
 
struct monster_racer_info
 
const struct monster_raceref_race = NULL
 
struct monster_lorel_list
 Array[z_info->r_max] of monster lore. More...
 
const char * r_info_flags []
 
const char * r_info_spell_flags []
 
static const char * obj_flags []
 
static const char * effect_list []
 
struct file_parser meth_parser
 
struct file_parser eff_parser
 
struct file_parser pain_parser
 
struct file_parser mon_spell_parser
 
struct file_parser mon_base_parser
 
struct file_parser monster_parser
 
struct file_parser pit_parser
 
struct file_parser lore_parser
 

Detailed Description

Monster initialization routines.

Copyright (c) 1997 Ben Harrison

This work is free software; you can redistribute it and/or modify it under the terms of either:

a) the GNU General Public License as published by the Free Software Foundation, version 2, or

b) the "Angband licence": This software may be copied and distributed for educational, research, and not for profit purposes provided that this copyright and statement are included in all such copies. Other copyrights may also apply.

Macro Definition Documentation

◆ EFFECT

#define EFFECT (   x,
  a,
  b,
  c,
  d,
 
)    #x,

◆ OF

#define OF (   a)    #a,

◆ RF

#define RF (   a,
  b,
 
)    #a,

◆ RSF

#define RSF (   a,
 
)    #a,

Function Documentation

◆ cleanup_eff()

static void cleanup_eff ( void  )
static

◆ cleanup_lore()

static void cleanup_lore ( void  )
static

◆ cleanup_meth()

static void cleanup_meth ( void  )
static

◆ cleanup_mon_base()

static void cleanup_mon_base ( void  )
static

◆ cleanup_mon_spell()

static void cleanup_mon_spell ( void  )
static

◆ cleanup_monster()

static void cleanup_monster ( void  )
static

◆ cleanup_pain()

static void cleanup_pain ( void  )
static

◆ cleanup_pits()

static void cleanup_pits ( void  )
static

◆ findeff()

static struct blow_effect* findeff ( const char *  eff_name)
static


Initialize monster blow effects

References blow_effect::name, blow_effect::next, and streq.

Referenced by parse_lore_blow(), and parse_monster_blow().

◆ findmeth()

static struct blow_method* findmeth ( const char *  meth_name)
static


Initialize monster blow methods

References blow_method::name, blow_method::next, and streq.

Referenced by parse_lore_blow(), and parse_monster_blow().

◆ finish_parse_eff()

static errr finish_parse_eff ( struct parser p)
static

◆ finish_parse_lore()

static errr finish_parse_lore ( struct parser p)
static

◆ finish_parse_meth()

static errr finish_parse_meth ( struct parser p)
static

◆ finish_parse_mon_base()

static errr finish_parse_mon_base ( struct parser p)
static

References parser_destroy(), and parser_priv().

◆ finish_parse_mon_spell()

static errr finish_parse_mon_spell ( struct parser p)
static

References parser_destroy(), and parser_priv().

◆ finish_parse_monster()

static errr finish_parse_monster ( struct parser p)
static

◆ finish_parse_pain()

static errr finish_parse_pain ( struct parser p)
static

◆ finish_parse_pit()

static errr finish_parse_pit ( struct parser p)
static

◆ flag_index_by_name()

int flag_index_by_name ( const char *  name)

Return the index of a flag from its name.

References i, N_ELEMENTS, obj_flags, and streq.

Referenced by parse_eff_resist().

◆ init_parse_eff()

struct parser* init_parse_eff ( void  )

◆ init_parse_lore()

struct parser* init_parse_lore ( void  )

◆ init_parse_meth()

struct parser* init_parse_meth ( void  )

◆ init_parse_mon_base()

static struct parser* init_parse_mon_base ( void  )
static

◆ init_parse_mon_spell()

struct parser* init_parse_mon_spell ( void  )

◆ init_parse_monster()

struct parser* init_parse_monster ( void  )

◆ init_parse_pain()

struct parser* init_parse_pain ( void  )

◆ init_parse_pit()

struct parser* init_parse_pit ( void  )

◆ parse_eff_desc()

static enum parser_error parse_eff_desc ( struct parser p)
static

◆ parse_eff_effect_type()

static enum parser_error parse_eff_effect_type ( struct parser p)
static

◆ parse_eff_eval()

static enum parser_error parse_eff_eval ( struct parser p)
static

◆ parse_eff_lore_color()

static enum parser_error parse_eff_lore_color ( struct parser p)
static

◆ parse_eff_lore_color_immune()

static enum parser_error parse_eff_lore_color_immune ( struct parser p)
static

◆ parse_eff_lore_color_resist()

static enum parser_error parse_eff_lore_color_resist ( struct parser p)
static

◆ parse_eff_name()

static enum parser_error parse_eff_name ( struct parser p)
static

◆ parse_eff_power()

static enum parser_error parse_eff_power ( struct parser p)
static

◆ parse_eff_resist()

static enum parser_error parse_eff_resist ( struct parser p)
static

◆ parse_lore_base()

static enum parser_error parse_lore_base ( struct parser p)
static

◆ parse_lore_blow()

static enum parser_error parse_lore_blow ( struct parser p)
static

◆ parse_lore_counts()

static enum parser_error parse_lore_counts ( struct parser p)
static

◆ parse_lore_drop()

static enum parser_error parse_lore_drop ( struct parser p)
static

◆ parse_lore_drop_base()

static enum parser_error parse_lore_drop_base ( struct parser p)
static

◆ parse_lore_flags()

static enum parser_error parse_lore_flags ( struct parser p)
static

◆ parse_lore_friends()

static enum parser_error parse_lore_friends ( struct parser p)
static

◆ parse_lore_friends_base()

static enum parser_error parse_lore_friends_base ( struct parser p)
static

◆ parse_lore_mimic()

static enum parser_error parse_lore_mimic ( struct parser p)
static

◆ parse_lore_name()

static enum parser_error parse_lore_name ( struct parser p)
static

◆ parse_lore_spells()

static enum parser_error parse_lore_spells ( struct parser p)
static

◆ parse_meth_act_msg()

static enum parser_error parse_meth_act_msg ( struct parser p)
static

◆ parse_meth_cut()

static enum parser_error parse_meth_cut ( struct parser p)
static

◆ parse_meth_desc()

static enum parser_error parse_meth_desc ( struct parser p)
static

◆ parse_meth_message_type()

static enum parser_error parse_meth_message_type ( struct parser p)
static

◆ parse_meth_miss()

static enum parser_error parse_meth_miss ( struct parser p)
static

◆ parse_meth_name()

static enum parser_error parse_meth_name ( struct parser p)
static

◆ parse_meth_phys()

static enum parser_error parse_meth_phys ( struct parser p)
static

◆ parse_meth_stun()

static enum parser_error parse_meth_stun ( struct parser p)
static

◆ parse_mon_base_desc()

static enum parser_error parse_mon_base_desc ( struct parser p)
static

◆ parse_mon_base_flags()

static enum parser_error parse_mon_base_flags ( struct parser p)
static

◆ parse_mon_base_glyph()

static enum parser_error parse_mon_base_glyph ( struct parser p)
static

◆ parse_mon_base_name()

static enum parser_error parse_mon_base_name ( struct parser p)
static

◆ parse_mon_base_pain()

static enum parser_error parse_mon_base_pain ( struct parser p)
static

◆ parse_mon_spell_blind_message()

static enum parser_error parse_mon_spell_blind_message ( struct parser p)
static

◆ parse_mon_spell_blind_message_strong()

static enum parser_error parse_mon_spell_blind_message_strong ( struct parser p)
static

◆ parse_mon_spell_dice()

static enum parser_error parse_mon_spell_dice ( struct parser p)
static

◆ parse_mon_spell_effect()

static enum parser_error parse_mon_spell_effect ( struct parser p)
static

◆ parse_mon_spell_effect_yx()

static enum parser_error parse_mon_spell_effect_yx ( struct parser p)
static

◆ parse_mon_spell_expr()

static enum parser_error parse_mon_spell_expr ( struct parser p)
static

◆ parse_mon_spell_hit()

static enum parser_error parse_mon_spell_hit ( struct parser p)
static

◆ parse_mon_spell_lore_color()

static enum parser_error parse_mon_spell_lore_color ( struct parser p)
static

◆ parse_mon_spell_lore_color_immune()

static enum parser_error parse_mon_spell_lore_color_immune ( struct parser p)
static

◆ parse_mon_spell_lore_color_resist()

static enum parser_error parse_mon_spell_lore_color_resist ( struct parser p)
static

◆ parse_mon_spell_lore_desc()

static enum parser_error parse_mon_spell_lore_desc ( struct parser p)
static

◆ parse_mon_spell_lore_desc_strong()

static enum parser_error parse_mon_spell_lore_desc_strong ( struct parser p)
static

◆ parse_mon_spell_message()

static enum parser_error parse_mon_spell_message ( struct parser p)
static

◆ parse_mon_spell_message_strong()

static enum parser_error parse_mon_spell_message_strong ( struct parser p)
static

◆ parse_mon_spell_message_type()

static enum parser_error parse_mon_spell_message_type ( struct parser p)
static

◆ parse_mon_spell_miss_message()

static enum parser_error parse_mon_spell_miss_message ( struct parser p)
static

◆ parse_mon_spell_name()

static enum parser_error parse_mon_spell_name ( struct parser p)
static

◆ parse_mon_spell_save_message()

static enum parser_error parse_mon_spell_save_message ( struct parser p)
static

◆ parse_monster_armor_class()

static enum parser_error parse_monster_armor_class ( struct parser p)
static

◆ parse_monster_base()

static enum parser_error parse_monster_base ( struct parser p)
static

◆ parse_monster_blow()

static enum parser_error parse_monster_blow ( struct parser p)
static

◆ parse_monster_color()

static enum parser_error parse_monster_color ( struct parser p)
static

◆ parse_monster_depth()

static enum parser_error parse_monster_depth ( struct parser p)
static

◆ parse_monster_desc()

static enum parser_error parse_monster_desc ( struct parser p)
static

◆ parse_monster_drop()

static enum parser_error parse_monster_drop ( struct parser p)
static

◆ parse_monster_drop_base()

static enum parser_error parse_monster_drop_base ( struct parser p)
static

◆ parse_monster_experience()

static enum parser_error parse_monster_experience ( struct parser p)
static

◆ parse_monster_flags()

static enum parser_error parse_monster_flags ( struct parser p)
static

◆ parse_monster_flags_off()

static enum parser_error parse_monster_flags_off ( struct parser p)
static

◆ parse_monster_friends()

static enum parser_error parse_monster_friends ( struct parser p)
static

◆ parse_monster_friends_base()

static enum parser_error parse_monster_friends_base ( struct parser p)
static

◆ parse_monster_glyph()

static enum parser_error parse_monster_glyph ( struct parser p)
static

◆ parse_monster_hearing()

static enum parser_error parse_monster_hearing ( struct parser p)
static

◆ parse_monster_hit_points()

static enum parser_error parse_monster_hit_points ( struct parser p)
static

◆ parse_monster_mimic()

static enum parser_error parse_monster_mimic ( struct parser p)
static

◆ parse_monster_name()

static enum parser_error parse_monster_name ( struct parser p)
static

◆ parse_monster_plural()

static enum parser_error parse_monster_plural ( struct parser p)
static

◆ parse_monster_rarity()

static enum parser_error parse_monster_rarity ( struct parser p)
static

◆ parse_monster_sleepiness()

static enum parser_error parse_monster_sleepiness ( struct parser p)
static

◆ parse_monster_smell()

static enum parser_error parse_monster_smell ( struct parser p)
static

◆ parse_monster_speed()

static enum parser_error parse_monster_speed ( struct parser p)
static

◆ parse_monster_spell_freq()

static enum parser_error parse_monster_spell_freq ( struct parser p)
static

◆ parse_monster_spell_power()

static enum parser_error parse_monster_spell_power ( struct parser p)
static

◆ parse_monster_spells()

static enum parser_error parse_monster_spells ( struct parser p)
static

◆ parse_pain_message()

static enum parser_error parse_pain_message ( struct parser p)
static

◆ parse_pain_type()

static enum parser_error parse_pain_type ( struct parser p)
static


Initialize monster pain messages

References h, mem_zalloc(), monster_pain::next, monster_pain::pain_idx, parser_getuint(), parser_priv(), and parser_setpriv().

Referenced by init_parse_pain().

◆ parse_pit_alloc()

static enum parser_error parse_pit_alloc ( struct parser p)
static

◆ parse_pit_color()

static enum parser_error parse_pit_color ( struct parser p)
static

◆ parse_pit_flags_ban()

static enum parser_error parse_pit_flags_ban ( struct parser p)
static

◆ parse_pit_flags_req()

static enum parser_error parse_pit_flags_req ( struct parser p)
static

◆ parse_pit_mon_ban()

static enum parser_error parse_pit_mon_ban ( struct parser p)
static

◆ parse_pit_mon_base()

static enum parser_error parse_pit_mon_base ( struct parser p)
static

◆ parse_pit_name()

static enum parser_error parse_pit_name ( struct parser p)
static

◆ parse_pit_obj_rarity()

static enum parser_error parse_pit_obj_rarity ( struct parser p)
static

◆ parse_pit_room()

static enum parser_error parse_pit_room ( struct parser p)
static

◆ parse_pit_spell_ban()

static enum parser_error parse_pit_spell_ban ( struct parser p)
static

◆ parse_pit_spell_req()

static enum parser_error parse_pit_spell_req ( struct parser p)
static

◆ run_parse_eff()

static errr run_parse_eff ( struct parser p)
static

◆ run_parse_lore()

static errr run_parse_lore ( struct parser p)
static

◆ run_parse_meth()

static errr run_parse_meth ( struct parser p)
static

◆ run_parse_mon_base()

static errr run_parse_mon_base ( struct parser p)
static

◆ run_parse_mon_spell()

static errr run_parse_mon_spell ( struct parser p)
static

◆ run_parse_monster()

static errr run_parse_monster ( struct parser p)
static

◆ run_parse_pain()

static errr run_parse_pain ( struct parser p)
static

◆ run_parse_pit()

static errr run_parse_pit ( struct parser p)
static

Variable Documentation

◆ blow_effects

struct blow_effect* blow_effects

Referenced by cleanup_eff().

◆ blow_methods

struct blow_method* blow_methods

◆ eff_parser

struct file_parser eff_parser
Initial value:
= {
"blow_effects",
}
static errr finish_parse_eff(struct parser *p)
Definition: mon-init.c:427
static errr run_parse_eff(struct parser *p)
Definition: mon-init.c:423
struct parser * init_parse_eff(void)
Definition: mon-init.c:408
static void cleanup_eff(void)
Definition: mon-init.c:458

◆ effect_list

const char* effect_list[]
static

Referenced by parse_mon_spell_effect().

◆ l_list

struct monster_lore* l_list

◆ lore_parser

struct file_parser lore_parser
Initial value:
= {
"lore",
}
static errr run_parse_lore(struct parser *p)
Definition: mon-init.c:2256
static void cleanup_lore(void)
Definition: mon-init.c:2305
static errr finish_parse_lore(struct parser *p)
Definition: mon-init.c:2264
struct parser * init_parse_lore(void)
Definition: mon-init.c:2221

◆ meth_parser

struct file_parser meth_parser
Initial value:
= {
"blow_methods",
}
static void cleanup_meth(void)
Definition: mon-init.c:251
static errr finish_parse_meth(struct parser *p)
Definition: mon-init.c:221
static errr run_parse_meth(struct parser *p)
Definition: mon-init.c:217
struct parser * init_parse_meth(void)
Definition: mon-init.c:203

◆ mon_base_parser

struct file_parser mon_base_parser
Initial value:
= {
"monster_base",
}
static void cleanup_mon_base(void)
Definition: mon-init.c:1042
static struct parser * init_parse_mon_base(void)
Definition: mon-init.c:1020
static errr finish_parse_mon_base(struct parser *p)
Definition: mon-init.c:1036
static errr run_parse_mon_base(struct parser *p)
Definition: mon-init.c:1032

◆ mon_spell_parser

struct file_parser mon_spell_parser
Initial value:
= {
"monster_spell",
}
static errr finish_parse_mon_spell(struct parser *p)
Definition: mon-init.c:911
static errr run_parse_mon_spell(struct parser *p)
Definition: mon-init.c:907
static void cleanup_mon_spell(void)
Definition: mon-init.c:917
struct parser * init_parse_mon_spell(void)
Definition: mon-init.c:883

◆ monster_parser

struct file_parser monster_parser
Initial value:
= {
"monster",
}
static errr run_parse_monster(struct parser *p)
Definition: mon-init.c:1521
static errr finish_parse_monster(struct parser *p)
Definition: mon-init.c:1525
static void cleanup_monster(void)
Definition: mon-init.c:1626
struct parser * init_parse_monster(void)
Definition: mon-init.c:1488

◆ monster_spells

struct monster_spell* monster_spells

◆ obj_flags

const char* obj_flags[]
static

◆ pain_messages

struct monster_pain* pain_messages

◆ pain_parser

struct file_parser pain_parser
Initial value:
= {
"pain messages",
}
static errr run_parse_pain(struct parser *p)
Definition: mon-init.c:519
static void cleanup_pain(void)
Definition: mon-init.c:552
static errr finish_parse_pain(struct parser *p)
Definition: mon-init.c:523
struct parser * init_parse_pain(void)
Definition: mon-init.c:510

◆ pit_parser

struct file_parser pit_parser
Initial value:
= {
"pits",
}
struct parser * init_parse_pit(void)
Definition: mon-init.c:1871
static void cleanup_pits(void)
Definition: mon-init.c:1927
static errr finish_parse_pit(struct parser *p)
Definition: mon-init.c:1893
static errr run_parse_pit(struct parser *p)
Definition: mon-init.c:1889

◆ r_info

struct monster_race* r_info

◆ r_info_flags

const char* r_info_flags[]

◆ r_info_spell_flags

const char* r_info_spell_flags[]

◆ rb_info

struct monster_base* rb_info

◆ ref_race

const struct monster_race* ref_race = NULL