#include "hack.h"
#include "artifact.h"
#include "edog.h"
Functions | |
STATIC_DCL char * | FDECL (mon_nam_too,(char *, struct monst *, struct monst *)) |
STATIC_DCL void | FDECL (mrustm,(struct monst *, struct monst *, struct obj *)) |
STATIC_DCL int | FDECL (hitmm,(struct monst *, struct monst *, struct attack *)) |
STATIC_DCL int | FDECL (gazemm,(struct monst *, struct monst *, struct attack *)) |
STATIC_DCL int | FDECL (gulpmm,(struct monst *, struct monst *, struct attack *)) |
STATIC_DCL int | FDECL (explmm,(struct monst *, struct monst *, struct attack *)) |
STATIC_DCL int | FDECL (mdamagem,(struct monst *, struct monst *, struct attack *)) |
STATIC_DCL void | FDECL (mswingsm,(struct monst *, struct monst *, struct obj *)) |
STATIC_DCL void | FDECL (noises,(struct monst *, struct attack *)) |
STATIC_DCL void | FDECL (missmm,(struct monst *, struct monst *, struct attack *)) |
STATIC_DCL int | FDECL (passivemm,(struct monst *, struct monst *, BOOLEAN_P, int)) |
STATIC_OVL char * | mon_nam_too (char *outbuf, struct monst *mon, struct monst *other_mon) |
STATIC_OVL void | noises (struct monst *magr, struct attack *mattk) |
STATIC_OVL void | missmm (struct monst *magr, struct monst *mdef, struct attack *mattk) |
int | fightm (struct monst *mtmp) |
int | mattackm (struct monst *magr, struct monst *mdef) |
STATIC_OVL int | hitmm (struct monst *magr, struct monst *mdef, struct attack *mattk) |
STATIC_OVL int | gazemm (struct monst *magr, struct monst *mdef, struct attack *mattk) |
STATIC_OVL int | gulpmm (struct monst *magr, struct monst *mdef, struct attack *mattk) |
STATIC_OVL int | explmm (struct monst *magr, struct monst *mdef, struct attack *mattk) |
STATIC_OVL int | mdamagem (struct monst *magr, struct monst *mdef, struct attack *mattk) |
int | noattacks (struct permonst *ptr) |
int | sleep_monst (struct monst *mon, int amt, int how) |
void | slept_monst (struct monst *mon) |
STATIC_OVL void | mrustm (struct monst *magr, struct monst *mdef, struct obj *obj) |
STATIC_OVL void | mswingsm (struct monst *magr, struct monst *mdef, struct obj *otemp) |
STATIC_OVL int | passivemm (struct monst *magr, struct monst *mdef, boolean mhit, int mdead) |
long | attk_protection (int aatyp) |
Variables | |
boolean | notonhead |
static NEARDATA boolean | vis |
static NEARDATA boolean | far_noise |
static NEARDATA long | noisetime |
static NEARDATA struct obj * | otmp |
static const char | brief_feeling [] = "have a %s feeling for a moment, then it passes." |
static int | dieroll |
long attk_protection | ( | int | aatyp ) |
References brief_feeling, cansee, mdamagem(), MM_AGR_DIED, MM_MISS, mondead(), Monnam(), noises(), and pline().
Referenced by mattackm().
int fightm | ( | struct monst * | mtmp ) |
References bhitpos, DEADMONSTER, fmon, itsstuck(), mattackm(), MM_AGR_DIED, MM_DEF_DIED, MM_HIT, mon, Monnam(), monnear(), monst::movement, monst::mx, monst::my, monst::nmon, NORMAL_SPEED, notonhead, pline(), resist(), RING_CLASS, rn2(), u, you::ustuck, nhcoord::x, and nhcoord::y.
Referenced by movemon().
References BUFSZ, canseemon, mdamagem(), mhis, MM_AGR_DIED, MM_MISS, mon_nam(), mon_reflects(), Monnam(), mons, monstone(), perceives, pline(), PM_MEDUSA, Sprintf, and vis.
Referenced by mattackm().
References BUFSZ, cansee, mdamagem(), MM_AGR_DIED, MM_DEF_DIED, MM_MISS, mon_nam(), Monnam(), MZ_HUGE, newsym(), obj::nobj, pline(), remove_monster(), snuff_lit(), Sprintf, and vis.
Referenced by mattackm().
References attack::aatyp, AT_BITE, AT_BUTT, AT_HUGS, AT_STNG, AT_TENT, AT_TUCH, BUFSZ, canspotmon, could_seduce(), map_invisible(), mdamagem(), mon_nam(), mon_nam_too(), Monnam(), noises(), pline(), s_suffix(), seemimic(), Sprintf, Strcpy, u, you::ustuck, and vis.
Referenced by mattackm().
References a_monnam(), attack::aatyp, AT_BITE, AT_BUTT, AT_CLAW, AT_ENGL, AT_EXPL, AT_GAZE, AT_HUGS, AT_KICK, AT_STNG, AT_TENT, AT_TUCH, AT_WEAP, BUFSZ, cansee, canseemon, canspotmon, clone_mon(), Conflict, dieroll, distmin(), explmm(), FALSE, find_mac(), G_UNIQ, gazemm(), getmattk(), gulpmm(), hitmm(), hitval(), IRON, is_elf, is_orc, m_monnam(), makeplural(), missmm(), MM_AGR_DIED, MM_DEF_DIED, MM_HIT, MM_MISS, mon_nam(), MON_WEP, mon_wield_item(), Monnam(), mons, monstermoves, mswingsm(), NATTK, NEED_HTH_WEAPON, NEED_WEAPON, newsym(), objects, obj::otyp, pa, passivemm(), pline(), PM_BLACK_PUDDING, PM_BROWN_PUDDING, PM_GRID_BUG, possibly_unwield(), resists_disint, rnd(), sensemon, Strcpy, touch_petrifies, u, you::usleep, you::ustuck, vis, and WEBB_DISINT.
Referenced by dog_move(), fightm(), m_move(), and mattacku().
References AD_ACID, AD_BLND, AD_COLD, AD_CONF, AD_CORR, AD_CURS, AD_DCAY, AD_DGST, AD_DISN, AD_DRCO, AD_DRDX, AD_DRIN, AD_DRLI, AD_DRST, AD_ELEC, AD_ENCH, AD_FIRE, AD_HALU, AD_HEAD, AD_HEAL, AD_LEGS, AD_PHYS, AD_PLYS, AD_RUST, AD_SEDU, AD_SGLD, AD_SITM, AD_SLEE, AD_SLIM, AD_SLOW, AD_SSEX, AD_STCK, AD_STON, AD_STUN, AD_TLPT, AD_WERE, AD_WRAP, add_to_minv(), amorphous, ARTICLE_THE, artifact_hit(), AT_BITE, AT_KICK, AT_WEAP, attk_protection(), brief_feeling, BUFSZ, can_blnd(), canseemon, canspotmon, CHAM_ORDINARY, CORPSE, corpse_chance(), obj::corpsenm, d(), dealloc_obj(), destroy_mitem(), distant_name(), dmgval(), dog_nutrition(), doname(), EDOG, erode_armor(), erode_obj(), FALSE, flags, flaming, G_NOCORPSE, golemeffects(), grow_up(), has_blood, has_head, haseyes, hurtmarmor(), is_rider, is_vampire, is_were, m_at, m_useup(), magic_negation(), makeplural(), mbodypart(), mhis, mindless, mksobj(), mlifesaver(), MM_AGR_DIED, MM_DEF_DIED, MM_HIT, MM_MISS, mon_adjust_speed(), mon_nam(), mon_to_stone(), MON_WEP, mondied(), monkilled(), Monnam(), mons, monsndx(), monstone(), mpoisons_subj(), mrustm(), mselftouch(), MSLOW, munstone(), mvitals::mvflags, NECK, newcham(), night(), obj::nobj, noncorporeal, notonhead, obj::oartifact, obj_extract_self(), on_fire(), oresist_disintegration, obj::otyp, obj::owornmask, obj::owt, pa, pline(), PM_CLAY_GOLEM, PM_FAMINE, PM_GREEN_SLIME, PM_GREMLIN, PM_IRON_GOLEM, PM_LEATHER_GOLEM, PM_NURSE, PM_PAPER_GOLEM, PM_PESTILENCE, PM_PURPLE_WORM, PM_SHRIEKER, PM_STRAW_GOLEM, PM_WOOD_GOLEM, PM_WRAITH, poly_when_stoned(), possibly_unwield(), POTION_CLASS, remove_monster(), resists_acid, resists_cold, resists_drli(), resists_elec, resists_fire, resists_poison, resists_ston, RING_CLASS, rloc(), rn1, rn2(), rnd(), S_HUMAN, S_JABBERWOCK, S_NYMPH, s_suffix(), SCROLL_CLASS, setmnotwielded(), shieldeff(), sleep_monst(), slept_monst(), flag::soundok, SPBOOK_CLASS, stagger(), STRAT_WAITFORU, Strcpy, tele_restrict(), thick_skinned, touch_petrifies, TRUE, u, update_mon_intrinsics(), flag::verbose, vis, W_ARM, W_ARMC, W_ARMG, W_ARMH, W_ARMS, W_WEP, WAND_CLASS, weight(), were_change(), which_armor(), x_monnam(), and xname().
Referenced by explmm(), gazemm(), gulpmm(), and hitmm().
References BUFSZ, canspotmon, could_seduce(), map_invisible(), mon_nam_too(), Monnam(), noises(), pline(), seemimic(), Sprintf, and vis.
Referenced by mattackm().
References mon_nam(), pronoun_gender(), and Strcpy.
Referenced by hitmm(), and missmm().
References AD_CORR, AD_RUST, aobjnam(), cansee, dmgtype(), FALSE, flags, is_corrodeable, is_rustprone, MAX_ERODE, Monnam(), pline(), rn2(), s_suffix(), TRUE, and flag::verbose.
Referenced by mdamagem().
References Blind, BUFSZ, flags, mhis, mon_nam(), mon_visible, Monnam(), objects, PIERCE, pline(), singular(), Strcpy, flag::verbose, and xname().
Referenced by mattackm().
int noattacks | ( | struct permonst * | ptr ) |
References NATTK.
Referenced by attack(), dochugw(), and monster_nearby().
References attack::aatyp, AD_ACID, AD_COLD, AD_ELEC, AD_ENCH, AD_FIRE, AD_PLYS, AD_STUN, attack::adtyp, AT_NONE, BUFSZ, canseemon, d(), attack::damd, attack::damn, drain_item(), golemeffects(), haseyes, makeplural(), permonst::mattk, permonst::mlevel, MM_AGR_DIED, mon_nam(), mon_reflects(), monkilled(), Monnam(), mons, NATTK, perceives, pline(), PM_FLOATING_EYE, resists_acid, resists_cold, resists_elec, resists_fire, rn2(), s_suffix(), split_mon(), Sprintf, stagger(), and Strcpy.
Referenced by mattackm().
int sleep_monst | ( | struct monst * | mon, |
int | amt, | ||
int | how | ||
) |
References if(), min, NOTELL, resist(), resists_sleep, and shieldeff().
Referenced by bhitm(), damageum(), mdamagem(), potionhit(), put_monsters_to_sleep(), and zhitm().
void slept_monst | ( | struct monst * | mon ) |
References monst::data, Monnam(), pline(), s_suffix(), sticks(), u, unstuck(), you::ustuck, and youmonst.
Referenced by bhitm(), buzz(), damageum(), mdamagem(), potionhit(), and put_monsters_to_sleep().
const char brief_feeling[] = "have a %s feeling for a moment, then it passes." [static] |
Referenced by explmm(), and mdamagem().
int dieroll [static] |
Referenced by mattackm().
Referenced by artifact_hit(), destroy_mitem(), doorlock(), gazemm(), gulpmm(), hitmm(), mattackm(), mdamagem(), missmm(), mon_break_armor(), ohitmon(), precheck(), urustm(), use_defensive(), use_mirror(), use_misc(), and use_offensive().