#include "hack.h"
Defines | |
#define | MGC_PSI_BOLT 0 |
#define | MGC_CURE_SELF 1 |
#define | MGC_HASTE_SELF 2 |
#define | MGC_STUN_YOU 3 |
#define | MGC_DISAPPEAR 4 |
#define | MGC_WEAKEN_YOU 5 |
#define | MGC_DESTRY_ARMR 6 |
#define | MGC_CURSE_ITEMS 7 |
#define | MGC_AGGRAVATION 8 |
#define | MGC_SUMMON_MONS 9 |
#define | MGC_CLONE_WIZ 10 |
#define | MGC_DEATH_TOUCH 11 |
#define | CLC_OPEN_WOUNDS 0 |
#define | CLC_CURE_SELF 1 |
#define | CLC_CONFUSE_YOU 2 |
#define | CLC_PARALYZE 3 |
#define | CLC_BLIND_YOU 4 |
#define | CLC_INSECTS 5 |
#define | CLC_CURSE_ITEMS 6 |
#define | CLC_LIGHTNING 7 |
#define | CLC_FIRE_PILLAR 8 |
#define | CLC_GEYSER 9 |
#define | ad_to_typ(k) (10 + (int)k - 1) |
Functions | |
STATIC_DCL void | FDECL (cursetxt,(struct monst *, BOOLEAN_P)) |
STATIC_DCL int | FDECL (choose_magic_spell,(int)) |
STATIC_DCL int | FDECL (choose_clerical_spell,(int)) |
STATIC_DCL void | FDECL (cast_wizard_spell,(struct monst *, int, int)) |
STATIC_DCL void | FDECL (cast_cleric_spell,(struct monst *, int, int)) |
STATIC_DCL boolean | FDECL (is_undirected_spell,(unsigned int, int)) |
STATIC_DCL boolean | FDECL (spell_would_be_useless,(struct monst *, unsigned int, int)) |
STATIC_OVL void | cursetxt (struct monst *mtmp, boolean undirected) |
STATIC_OVL int | choose_magic_spell (int spellval) |
STATIC_OVL int | choose_clerical_spell (int spellnum) |
int | castmu (struct monst *mtmp, struct attack *mattk, boolean thinks_it_foundyou, boolean foundyou) |
STATIC_OVL void | cast_wizard_spell (struct monst *mtmp, int dmg, int spellnum) |
STATIC_OVL void | cast_cleric_spell (struct monst *mtmp, int dmg, int spellnum) |
STATIC_DCL boolean | is_undirected_spell (unsigned int adtyp, int spellnum) |
STATIC_DCL boolean | spell_would_be_useless (struct monst *mtmp, unsigned int adtyp, int spellnum) |
int | buzzmu (struct monst *mtmp, struct attack *mattk) |
Variables | |
const char *const | flash_types [] |
#define ad_to_typ | ( | k ) | (10 + (int)k - 1) |
Referenced by buzzmu().
#define CLC_BLIND_YOU 4 |
Referenced by cast_cleric_spell(), choose_clerical_spell(), and spell_would_be_useless().
#define CLC_CONFUSE_YOU 2 |
Referenced by cast_cleric_spell(), and choose_clerical_spell().
#define CLC_CURE_SELF 1 |
Referenced by cast_cleric_spell(), choose_clerical_spell(), is_undirected_spell(), and spell_would_be_useless().
#define CLC_CURSE_ITEMS 6 |
Referenced by cast_cleric_spell(), and choose_clerical_spell().
#define CLC_FIRE_PILLAR 8 |
Referenced by cast_cleric_spell(), and choose_clerical_spell().
#define CLC_GEYSER 9 |
Referenced by cast_cleric_spell(), and choose_clerical_spell().
#define CLC_INSECTS 5 |
Referenced by cast_cleric_spell(), choose_clerical_spell(), is_undirected_spell(), and spell_would_be_useless().
#define CLC_LIGHTNING 7 |
Referenced by cast_cleric_spell(), and choose_clerical_spell().
#define CLC_OPEN_WOUNDS 0 |
Referenced by cast_cleric_spell(), and choose_clerical_spell().
#define CLC_PARALYZE 3 |
Referenced by cast_cleric_spell(), and choose_clerical_spell().
#define MGC_AGGRAVATION 8 |
Referenced by cast_wizard_spell(), choose_magic_spell(), is_undirected_spell(), and spell_would_be_useless().
#define MGC_CLONE_WIZ 10 |
Referenced by cast_wizard_spell(), choose_magic_spell(), is_undirected_spell(), and spell_would_be_useless().
#define MGC_CURE_SELF 1 |
Referenced by cast_wizard_spell(), choose_magic_spell(), is_undirected_spell(), and spell_would_be_useless().
#define MGC_CURSE_ITEMS 7 |
Referenced by cast_wizard_spell(), and choose_magic_spell().
#define MGC_DEATH_TOUCH 11 |
Referenced by cast_wizard_spell(), and choose_magic_spell().
#define MGC_DESTRY_ARMR 6 |
Referenced by cast_wizard_spell(), and choose_magic_spell().
#define MGC_DISAPPEAR 4 |
Referenced by cast_wizard_spell(), choose_magic_spell(), is_undirected_spell(), and spell_would_be_useless().
#define MGC_HASTE_SELF 2 |
Referenced by cast_wizard_spell(), choose_magic_spell(), is_undirected_spell(), and spell_would_be_useless().
#define MGC_PSI_BOLT 0 |
Referenced by cast_wizard_spell(), and choose_magic_spell().
#define MGC_STUN_YOU 3 |
Referenced by cast_wizard_spell(), and choose_magic_spell().
#define MGC_SUMMON_MONS 9 |
Referenced by cast_wizard_spell(), choose_magic_spell(), is_undirected_spell(), and spell_would_be_useless().
#define MGC_WEAKEN_YOU 5 |
Referenced by cast_wizard_spell(), and choose_magic_spell().
References AD_SPC2, ad_to_typ, buzz(), canseemon, cursetxt(), FALSE, lined_up(), Monnam(), nomul(), pline(), rn2(), sgn(), tbx, and tby.
Referenced by mattacku().
STATIC_OVL void cast_cleric_spell | ( | struct monst * | mtmp, |
int | dmg, | ||
int | spellnum | ||
) |
References AD_CLRC, AD_ELEC, AD_FIRE, Antimagic, Blind, Blinded, body_part(), burn_away_slime(), burn_floor_paper(), burnarmor(), canseemon, CLC_BLIND_YOU, CLC_CONFUSE_YOU, CLC_CURE_SELF, CLC_CURSE_ITEMS, CLC_FIRE_PILLAR, CLC_GEYSER, CLC_INSECTS, CLC_LIGHTNING, CLC_OPEN_WOUNDS, CLC_PARALYZE, Confusion, d(), monst::data, destroy_item(), Displaced, enexto(), EYE, eyecount, FALSE, Fire_resistance, Free_action, Half_physical_damage, Half_spell_damage, Hallucination, HConfusion, if(), Invisible, is_undirected_spell(), make_blinded(), make_confused(), makemon(), makeplural(), mdamageu(), mkclass(), Monnam(), monst::mtame, multi, NO_MM_FLAGS, nomul(), perceives, pline(), pm, POTION_CLASS, RING_CLASS, rnd(), rndcurse(), S_ANT, S_SNAKE, SCROLL_CLASS, set_malign(), shieldeff(), Shock_resistance, SPBOOK_CLASS, TRUE, u, ureflects(), you::ux, you::uy, vision_clears, WAND_CLASS, nhcoord::x, nhcoord::y, and youmonst.
Referenced by castmu().
STATIC_OVL void cast_wizard_spell | ( | struct monst * | mtmp, |
int | dmg, | ||
int | spellnum | ||
) |
References A_DEX, ACURR, AD_SPEL, aggravate(), Antimagic, body_part(), canseemon, clonewiz(), d(), monst::data, destroy_arm(), DIED, Displaced, done(), done_in_by(), FALSE, flags, Free_action, Half_spell_damage, Hallucination, HEAD, HStun, Invisible, is_demon, is_undirected_spell(), KILLED_BY_AN, killer, killer_format, losestr(), make_stunned(), mdamageu(), MGC_AGGRAVATION, MGC_CLONE_WIZ, MGC_CURE_SELF, MGC_CURSE_ITEMS, MGC_DEATH_TOUCH, MGC_DESTRY_ARMR, MGC_DISAPPEAR, MGC_HASTE_SELF, MGC_PSI_BOLT, MGC_STUN_YOU, MGC_SUMMON_MONS, MGC_WEAKEN_YOU, mhe, mon_adjust_speed(), mon_set_minvis(), Monnam(), nasty(), flag::no_of_wizards, nonliving, obj::otyp, perceives, pline(), plur, rn2(), rnd(), rndcurse(), See_invisible, shieldeff(), some_armor(), Stunned, TINFOIL_HAT, u, uarmh, you::uhp, you::ux, you::uy, yname(), and youmonst.
Referenced by castmu().
int castmu | ( | struct monst * | mtmp, |
struct attack * | mattk, | ||
boolean | thinks_it_foundyou, | ||
boolean | foundyou | ||
) |
References AD_CLRC, AD_COLD, AD_FIRE, AD_MAGM, AD_SPEL, Antimagic, burn_away_slime(), canseemon, canspotmon, cast_cleric_spell(), cast_wizard_spell(), choose_clerical_spell(), choose_magic_spell(), Cold_resistance, cursetxt(), d(), Displaced, Fire_resistance, flags, Half_spell_damage, Invisible, is_undirected_spell(), levl, mdamageu(), mon_nam(), Monnam(), nomul(), perceives, pline(), rn2(), shieldeff(), flag::soundok, spell_would_be_useless(), u, you::ux, you::uy, and WATER.
Referenced by mattacku().
STATIC_OVL int choose_clerical_spell | ( | int | spellnum ) |
References CLC_BLIND_YOU, CLC_CONFUSE_YOU, CLC_CURE_SELF, CLC_CURSE_ITEMS, CLC_FIRE_PILLAR, CLC_GEYSER, CLC_INSECTS, CLC_LIGHTNING, CLC_OPEN_WOUNDS, and CLC_PARALYZE.
Referenced by castmu().
STATIC_OVL int choose_magic_spell | ( | int | spellval ) |
References MGC_AGGRAVATION, MGC_CLONE_WIZ, MGC_CURE_SELF, MGC_CURSE_ITEMS, MGC_DEATH_TOUCH, MGC_DESTRY_ARMR, MGC_DISAPPEAR, MGC_HASTE_SELF, MGC_PSI_BOLT, MGC_STUN_YOU, MGC_SUMMON_MONS, and MGC_WEAKEN_YOU.
Referenced by castmu().
References canseemon, couldsee, Displaced, flags, Invis, M_AP_OBJECT, monst::m_ap_type, monst::mappearance, Monnam(), moves, perceives, pline(), rn2(), flag::soundok, STRANGE_OBJECT, u, you::ux, you::uy, and youmonst.
Referenced by buzzmu(), and castmu().
STATIC_DCL void FDECL | ( | cast_wizard_spell | , |
(struct monst *, int, int) | |||
) |
STATIC_DCL void FDECL | ( | cursetxt | , |
(struct monst *, BOOLEAN_P) | |||
) |
STATIC_DCL int FDECL | ( | choose_magic_spell | , |
(int) | |||
) |
STATIC_DCL int FDECL | ( | choose_clerical_spell | , |
(int) | |||
) |
STATIC_DCL void FDECL | ( | cast_cleric_spell | , |
(struct monst *, int, int) | |||
) |
STATIC_DCL boolean FDECL | ( | is_undirected_spell | , |
(unsigned int, int) | |||
) |
STATIC_DCL boolean is_undirected_spell | ( | unsigned int | adtyp, |
int | spellnum | ||
) |
References AD_CLRC, AD_SPEL, CLC_CURE_SELF, CLC_INSECTS, FALSE, MGC_AGGRAVATION, MGC_CLONE_WIZ, MGC_CURE_SELF, MGC_DISAPPEAR, MGC_HASTE_SELF, MGC_SUMMON_MONS, and TRUE.
Referenced by cast_cleric_spell(), cast_wizard_spell(), and castmu().
References AD_CLRC, AD_SPEL, Blinded, CLC_BLIND_YOU, CLC_CURE_SELF, CLC_INSECTS, couldsee, FALSE, flags, MFAST, MGC_AGGRAVATION, MGC_CLONE_WIZ, MGC_CURE_SELF, MGC_DISAPPEAR, MGC_HASTE_SELF, MGC_SUMMON_MONS, flag::no_of_wizards, See_invisible, and TRUE.
Referenced by castmu().
const char* const flash_types[] |