#include "hack.h"
#include "edog.h"
Data Structures | |
struct | musable |
Defines | |
#define | POTION_OCCUPANT_CHANCE(n) (13 + 2*(n)) |
#define | MUSE_SCR_TELEPORTATION 1 |
#define | MUSE_WAN_TELEPORTATION_SELF 2 |
#define | MUSE_POT_HEALING 3 |
#define | MUSE_POT_EXTRA_HEALING 4 |
#define | MUSE_WAN_DIGGING 5 |
#define | MUSE_TRAPDOOR 6 |
#define | MUSE_TELEPORT_TRAP 7 |
#define | MUSE_UPSTAIRS 8 |
#define | MUSE_DOWNSTAIRS 9 |
#define | MUSE_WAN_CREATE_MONSTER 10 |
#define | MUSE_SCR_CREATE_MONSTER 11 |
#define | MUSE_UP_LADDER 12 |
#define | MUSE_DN_LADDER 13 |
#define | MUSE_SSTAIRS 14 |
#define | MUSE_WAN_TELEPORTATION 15 |
#define | MUSE_BUGLE 16 |
#define | MUSE_UNICORN_HORN 17 |
#define | MUSE_POT_FULL_HEALING 18 |
#define | MUSE_LIZARD_CORPSE 19 |
#define | MUSE_POT_VAMPIRE_BLOOD 20 |
#define | nomore(x) if(m.has_defense==x) continue; |
#define | m_flee(m) |
#define | MUSE_WAN_DEATH 1 |
#define | MUSE_WAN_SLEEP 2 |
#define | MUSE_WAN_FIRE 3 |
#define | MUSE_WAN_COLD 4 |
#define | MUSE_WAN_LIGHTNING 5 |
#define | MUSE_WAN_MAGIC_MISSILE 6 |
#define | MUSE_WAN_STRIKING 7 |
#define | MUSE_SCR_FIRE 8 |
#define | MUSE_POT_PARALYSIS 9 |
#define | MUSE_POT_BLINDNESS 10 |
#define | MUSE_POT_CONFUSION 11 |
#define | MUSE_FROST_HORN 12 |
#define | MUSE_FIRE_HORN 13 |
#define | MUSE_POT_ACID 14 |
#define | MUSE_POT_SLEEPING 16 |
#define | MUSE_SCR_EARTH 17 |
#define | MUSE_WAN_CANCELLATION 18 |
#define | nomore(x) if(m.has_offense==x) continue; |
#define | MUSE_POT_GAIN_LEVEL 1 |
#define | MUSE_WAN_MAKE_INVISIBLE 2 |
#define | MUSE_POT_INVISIBILITY 3 |
#define | MUSE_POLY_TRAP 4 |
#define | MUSE_WAN_POLYMORPH 5 |
#define | MUSE_POT_SPEED 6 |
#define | MUSE_WAN_SPEED_MONSTER 7 |
#define | MUSE_BULLWHIP 8 |
#define | MUSE_POT_POLYMORPH 9 |
#define | nomore(x) if(m.has_misc==x) continue; |
Functions | |
STATIC_DCL struct permonst * | FDECL (muse_newcham_mon,(struct monst *)) |
STATIC_DCL int | FDECL (precheck,(struct monst *, struct obj *)) |
STATIC_DCL void | FDECL (mzapmsg,(struct monst *, struct obj *, BOOLEAN_P)) |
STATIC_DCL void | FDECL (mreadmsg,(struct monst *, struct obj *)) |
STATIC_DCL void | FDECL (mquaffmsg,(struct monst *, struct obj *)) |
STATIC_PTR int | FDECL (mbhitm,(struct monst *, struct obj *)) |
STATIC_DCL void | FDECL (mbhit,(struct monst *, int, int FDECL((*),(MONST_P, OBJ_P)), int FDECL((*),(OBJ_P, OBJ_P)), struct obj *)) |
STATIC_DCL void | FDECL (you_aggravate,(struct monst *)) |
STATIC_DCL void | FDECL (mon_consume_unstone,(struct monst *, struct obj *, BOOLEAN_P, BOOLEAN_P)) |
STATIC_OVL int | precheck (struct monst *mon, struct obj *obj) |
STATIC_OVL void | mzapmsg (struct monst *mtmp, struct obj *otmp, boolean self) |
STATIC_OVL void | mreadmsg (struct monst *mtmp, struct obj *otmp) |
STATIC_OVL void | mquaffmsg (struct monst *mtmp, struct obj *otmp) |
boolean | find_defensive (struct monst *mtmp) |
int | use_defensive (struct monst *mtmp) |
int | rnd_defensive_item (struct monst *mtmp) |
boolean | find_offensive (struct monst *mtmp) |
STATIC_PTR int | mbhitm (struct monst *mtmp, struct obj *otmp) |
STATIC_OVL void | mbhit (struct monst *mon, int range, fhitm, fhito, struct obj *obj) |
int | use_offensive (struct monst *mtmp) |
int | rnd_offensive_item (struct monst *mtmp) |
boolean | find_misc (struct monst *mtmp) |
static struct permonst * | muse_newcham_mon (struct monst *mon) |
int | use_misc (struct monst *mtmp) |
STATIC_OVL void | you_aggravate (struct monst *mtmp) |
int | rnd_misc_item (struct monst *mtmp) |
boolean | searches_for_item (struct monst *mon, struct obj *obj) |
boolean | mon_reflects (struct monst *mon, const char *str) |
boolean | ureflects (char *fmt, char *str) const |
boolean | munstone (struct monst *mon, boolean by_you) |
STATIC_OVL void | mon_consume_unstone (struct monst *mon, struct obj *obj, boolean by_you, boolean stoning) |
Variables | |
const int | monstr [] |
boolean | m_using = FALSE |
static struct musable | m |
static int | trapx |
static int | trapy |
static boolean | zap_oseen |
#define m_flee | ( | m ) |
#define MUSE_BUGLE 16 |
Referenced by find_defensive(), and use_defensive().
#define MUSE_BULLWHIP 8 |
Referenced by find_misc(), and use_misc().
#define MUSE_DN_LADDER 13 |
Referenced by find_defensive(), and use_defensive().
#define MUSE_DOWNSTAIRS 9 |
Referenced by find_defensive(), and use_defensive().
#define MUSE_FIRE_HORN 13 |
Referenced by find_offensive(), and use_offensive().
#define MUSE_FROST_HORN 12 |
Referenced by find_offensive(), and use_offensive().
#define MUSE_LIZARD_CORPSE 19 |
Referenced by find_defensive(), and use_defensive().
#define MUSE_POLY_TRAP 4 |
Referenced by find_misc(), and use_misc().
#define MUSE_POT_ACID 14 |
Referenced by find_offensive(), and use_offensive().
#define MUSE_POT_BLINDNESS 10 |
Referenced by find_offensive(), and use_offensive().
#define MUSE_POT_CONFUSION 11 |
Referenced by find_offensive(), and use_offensive().
#define MUSE_POT_EXTRA_HEALING 4 |
Referenced by find_defensive(), and use_defensive().
#define MUSE_POT_FULL_HEALING 18 |
Referenced by find_defensive(), and use_defensive().
#define MUSE_POT_GAIN_LEVEL 1 |
Referenced by find_misc(), and use_misc().
#define MUSE_POT_HEALING 3 |
Referenced by find_defensive(), and use_defensive().
#define MUSE_POT_INVISIBILITY 3 |
Referenced by find_misc(), and use_misc().
#define MUSE_POT_PARALYSIS 9 |
Referenced by find_offensive(), and use_offensive().
#define MUSE_POT_POLYMORPH 9 |
Referenced by find_misc(), and use_misc().
#define MUSE_POT_SLEEPING 16 |
Referenced by find_offensive(), and use_offensive().
#define MUSE_POT_SPEED 6 |
Referenced by find_misc(), and use_misc().
#define MUSE_POT_VAMPIRE_BLOOD 20 |
Referenced by find_defensive(), and use_defensive().
#define MUSE_SCR_CREATE_MONSTER 11 |
Referenced by find_defensive(), and use_defensive().
#define MUSE_SCR_EARTH 17 |
Referenced by find_offensive(), and use_offensive().
#define MUSE_SCR_FIRE 8 |
Referenced by find_offensive(), and use_offensive().
#define MUSE_SCR_TELEPORTATION 1 |
Referenced by find_defensive(), and use_defensive().
#define MUSE_SSTAIRS 14 |
Referenced by find_defensive(), and use_defensive().
#define MUSE_TELEPORT_TRAP 7 |
Referenced by find_defensive(), and use_defensive().
#define MUSE_TRAPDOOR 6 |
Referenced by find_defensive(), and use_defensive().
#define MUSE_UNICORN_HORN 17 |
Referenced by find_defensive(), and use_defensive().
#define MUSE_UP_LADDER 12 |
Referenced by find_defensive(), and use_defensive().
#define MUSE_UPSTAIRS 8 |
Referenced by find_defensive(), and use_defensive().
#define MUSE_WAN_CANCELLATION 18 |
Referenced by find_offensive(), and use_offensive().
#define MUSE_WAN_COLD 4 |
Referenced by find_offensive(), and use_offensive().
#define MUSE_WAN_CREATE_MONSTER 10 |
Referenced by find_defensive(), and use_defensive().
#define MUSE_WAN_DEATH 1 |
Referenced by find_offensive(), and use_offensive().
#define MUSE_WAN_DIGGING 5 |
Referenced by find_defensive(), and use_defensive().
#define MUSE_WAN_FIRE 3 |
Referenced by find_offensive(), and use_offensive().
#define MUSE_WAN_LIGHTNING 5 |
Referenced by find_offensive(), and use_offensive().
#define MUSE_WAN_MAGIC_MISSILE 6 |
Referenced by find_offensive(), and use_offensive().
#define MUSE_WAN_MAKE_INVISIBLE 2 |
Referenced by find_misc(), and use_misc().
#define MUSE_WAN_POLYMORPH 5 |
Referenced by find_misc(), and use_misc().
#define MUSE_WAN_SLEEP 2 |
Referenced by find_offensive(), and use_offensive().
#define MUSE_WAN_SPEED_MONSTER 7 |
Referenced by find_misc(), and use_misc().
#define MUSE_WAN_STRIKING 7 |
Referenced by find_offensive(), and use_offensive().
#define MUSE_WAN_TELEPORTATION 15 |
Referenced by find_defensive(), use_defensive(), and use_offensive().
#define MUSE_WAN_TELEPORTATION_SELF 2 |
Referenced by find_defensive(), and use_defensive().
#define nomore | ( | x ) | if(m.has_defense==x) continue; |
Referenced by find_defensive(), find_misc(), and find_offensive().
#define nomore | ( | x ) | if(m.has_offense==x) continue; |
#define nomore | ( | x ) | if(m.has_misc==x) continue; |
#define POTION_OCCUPANT_CHANCE | ( | n ) | (13 + 2*(n)) |
Referenced by dodrink(), and precheck().
STATIC_DCL void FDECL | ( | you_aggravate | , |
(struct monst *) | |||
) |
STATIC_DCL void FDECL | ( | mon_consume_unstone | , |
(struct monst *, struct obj *, BOOLEAN_P, BOOLEAN_P) | |||
) |
STATIC_DCL void FDECL | ( | mbhit | , |
(struct monst *, int, int FDECL((*),(MONST_P, OBJ_P)), int FDECL((*),(OBJ_P, OBJ_P)), struct obj *) | |||
) |
References BEAR_TRAP, BOULDER, BUGLE, Can_fall_thru(), CORPSE, obj::corpsenm, monst::data, musable::defensive, dist2(), FALSE, dlevel_t::flags, musable::has_defense, haseyes, HOLE, if(), immobile, In_endgame, In_sokoban, In_V_tower(), inhishop(), is_animal, Is_botlevel(), is_floater, is_ice(), is_lava(), is_mercenary, is_pool(), is_unicorn, is_vampire, isok(), LADDER, ledger_no(), level, levl, m, m_at, m_carrying(), mindless, mon, mon_has_amulet(), mons, dlevel_t::monsters, MUSE_BUGLE, MUSE_DN_LADDER, MUSE_DOWNSTAIRS, MUSE_LIZARD_CORPSE, MUSE_POT_EXTRA_HEALING, MUSE_POT_FULL_HEALING, MUSE_POT_HEALING, MUSE_POT_VAMPIRE_BLOOD, MUSE_SCR_CREATE_MONSTER, MUSE_SCR_TELEPORTATION, MUSE_SSTAIRS, MUSE_TELEPORT_TRAP, MUSE_TRAPDOOR, MUSE_UNICORN_HORN, MUSE_UP_LADDER, MUSE_UPSTAIRS, MUSE_WAN_CREATE_MONSTER, MUSE_WAN_DIGGING, MUSE_WAN_TELEPORTATION, MUSE_WAN_TELEPORTATION_SELF, obj::nobj, nohands, nomore, onscary(), obj::otyp, passes_walls, PIT, PM_GRID_BUG, PM_GUARD, PM_LIZARD, PM_PESTILENCE, PM_VLAD_THE_IMPALER, POT_EXTRA_HEALING, POT_FULL_HEALING, POT_HEALING, POT_SICKNESS, POT_VAMPIRE_BLOOD, rn2(), SCR_CREATE_MONSTER, SCR_TELEPORTATION, sobj_at(), obj::spe, SPIKED_PIT, sstairs, STAIRS, stairway::sx, stairway::sy, t_at(), TELEP_TRAP, throws_rocks, TRAPDOOR, TRUE, u, you::ulevel, UNICORN_HORN, you::ustuck, you::ux, you::uy, you::uz, verysmall, W_NONDIGGABLE, WAN_CREATE_MONSTER, WAN_DIGGING, WAN_TELEPORTATION, WEB, trap::x, xdnladder, xdnstair, xupladder, xupstair, trap::y, ydnladder, ydnstair, yupladder, and yupstair.
Referenced by dochug().
References AT_GAZE, attacktype(), BOULDER, BULLWHIP, dist2(), distu, FALSE, musable::has_misc, immobile, is_animal, isok(), level, m, MFAST, mindless, musable::misc, permonst::mmove, MON_WEP, mons, monsndx(), dlevel_t::monsters, monstr, MUSE_BULLWHIP, MUSE_POLY_TRAP, MUSE_POT_GAIN_LEVEL, MUSE_POT_INVISIBILITY, MUSE_POT_POLYMORPH, MUSE_POT_SPEED, MUSE_WAN_MAKE_INVISIBLE, MUSE_WAN_POLYMORPH, MUSE_WAN_SPEED_MONSTER, obj::nobj, nohands, nomore, onscary(), obj::otyp, passes_walls, PM_GRID_BUG, POLY_TRAP, POT_GAIN_LEVEL, POT_INVISIBILITY, POT_POLYMORPH, POT_SPEED, See_invisible, sobj_at(), obj::spe, t_at(), throws_rocks, TRUE, u, you::ustuck, uwep, you::ux, you::uy, verysmall, WAN_MAKE_INVISIBLE, WAN_POLYMORPH, and WAN_SPEED_MONSTER.
Referenced by dochug().
References AD_HEAL, amorphous, AT_GAZE, attacktype(), dist2(), dmgtype(), FALSE, FIRE_HORN, FROST_HORN, musable::has_offense, haseyes, In_endgame, in_your_sanctuary(), is_animal, Is_earthlevel, is_metallic, Is_rogue_level, lined_up(), m, mindless, multi, MUSE_FIRE_HORN, MUSE_FROST_HORN, MUSE_POT_ACID, MUSE_POT_BLINDNESS, MUSE_POT_CONFUSION, MUSE_POT_PARALYSIS, MUSE_POT_SLEEPING, MUSE_SCR_EARTH, MUSE_SCR_FIRE, MUSE_WAN_CANCELLATION, MUSE_WAN_COLD, MUSE_WAN_DEATH, MUSE_WAN_FIRE, MUSE_WAN_LIGHTNING, MUSE_WAN_MAGIC_MISSILE, MUSE_WAN_SLEEP, MUSE_WAN_STRIKING, obj::nobj, nohands, nomore, noncorporeal, musable::offensive, obj::otyp, passes_walls, POT_ACID, POT_BLINDNESS, POT_CONFUSION, POT_PARALYSIS, POT_SLEEPING, Reflecting, REINCARNATION, resists_fire, rn2(), SCR_EARTH, SCR_FIRE, obj::spe, u, uarm, uarmc, uarmf, uarmg, uarmh, uarms, unsolid, uwep, you::uz, W_ARMH, WAN_CANCELLATION, WAN_COLD, WAN_DEATH, WAN_FIRE, WAN_LIGHTNING, WAN_MAGIC_MISSILE, WAN_SLEEP, WAN_STRIKING, and which_armor().
Referenced by mattacku().
References add_damage(), bhitpos, cansee, canspotmon, D_BROKEN, D_CLOSED, D_LOCKED, destroy_drawbridge(), doorlock(), find_drawbridge(), in_rooms(), IS_DOOR, isok(), level, levl, m_at, makeknown, map_invisible(), MON_AT, dlevel_t::objects, otmp, obj::otyp, SDOOR, sgn(), SHOPBASE, u, you::ux, you::uy, WAN_LOCKING, WAN_OPENING, WAN_STRIKING, nhcoord::x, nhcoord::y, youmonst, and ZAP_POS.
Referenced by use_defensive(), and use_offensive().
References Antimagic, bhitpos, cancel_monst(), cansee, canspotmon, d(), exclam(), FALSE, find_mac(), Half_spell_damage, hit(), in_rooms(), KILLED_BY_AN, losehp(), makeknown, map_invisible(), miss(), Monnam(), nomul(), pline(), resist(), resists_magm(), rloc(), rnd(), seemimic(), shieldeff(), SPE_CANCELLATION, stop_occupation(), tele(), tele_restrict(), TELL, TEMPLE, TRUE, u, you::uac, you::ux, you::uy, WAN_CANCELLATION, WAN_STRIKING, WAN_TELEPORTATION, nhcoord::x, nhcoord::y, youmonst, and zap_oseen.
Referenced by use_defensive(), and use_offensive().
STATIC_OVL void mon_consume_unstone | ( | struct monst * | mon, |
struct obj * | obj, | ||
boolean | by_you, | ||
boolean | stoning | ||
) |
References acidic, canseemon, CORPSE, obj::corpsenm, distant_name(), dog_nutrition(), doname(), EDOG, flags, Hallucination, edog::hungrytime, m_useup(), mon_adjust_speed(), mon_nam(), mondead(), Monnam(), mons, monstermoves, obj::otyp, pline(), PM_LIZARD, POT_ACID, obj::quan, resists_acid, rnd(), flag::soundok, and xkilled().
Referenced by munstone(), and use_defensive().
References AMULET_OF_REFLECTION, arti_reflects(), FALSE, makeknown, mon_nam(), MON_WEP, mons, obj::otyp, pline(), PM_CHROMATIC_DRAGON, PM_SILVER_DRAGON, s_suffix(), SHIELD_OF_REFLECTION, SILVER_DRAGON_SCALE_MAIL, SILVER_DRAGON_SCALES, TRUE, W_AMUL, W_ARM, W_ARMS, and which_armor().
Referenced by buzz(), gazemm(), gazemu(), passivemm(), passiveum(), and use_mirror().
References canseemon, doname(), flags, Monnam(), pline(), singular(), and flag::soundok.
Referenced by precheck(), use_defensive(), and use_misc().
References ARTICLE_A, BUFSZ, canseemon, doname(), FALSE, flags, mhe, mon_nam(), Monnam(), pline(), PM_PRIEST, Role_if, Role_switch, singular(), flag::soundok, Strcpy, SUPPRESS_INVISIBLE, SUPPRESS_IT, SUPPRESS_SADDLE, and x_monnam().
Referenced by use_defensive(), and use_offensive().
References acidic, CORPSE, obj::corpsenm, FALSE, mon_consume_unstone(), mons, obj::nobj, obj::otyp, PM_GREEN_SLIME, PM_LIZARD, POT_ACID, resists_ston, and TRUE.
Referenced by damageum(), hmon_hitmon(), and mdamagem().
References Dragon_mail_to_pm, Dragon_scales_to_pm, Is_dragon_mail, Is_dragon_scales, obj::otyp, rndmonst(), W_ARM, and which_armor().
Referenced by use_misc().
References an(), BOLT_LIM, canseemon, distu, doname(), flags, mhim, Monnam(), monst::mx, monst::my, pline(), flag::soundok, stop_occupation(), and xname().
Referenced by use_defensive(), use_misc(), and use_offensive().
References a_monnam(), AD_RBRE, an(), cansee, d(), flag::djinni_count, enexto(), flags, flag::ghost_count, Hallucination, musable::has_defense, musable::has_misc, musable::has_offense, m, m_useup(), makemon(), MAXMONNO, mon_nam(), mongone(), monkilled(), Monnam(), mons, mquaffmsg(), NO_MM_FLAGS, OBJ_DESCR, objects, obj::oclass, obj::otyp, pline(), PM_DJINNI, PM_GHOST, POTION_CLASS, POTION_OCCUPANT_CHANCE, rn2(), rndmonnam(), set_malign(), Something, flag::soundok, obj::spe, vis, WAND_CLASS, nhcoord::x, xname(), and nhcoord::y.
Referenced by use_defensive(), use_misc(), and use_offensive().
int rnd_defensive_item | ( | struct monst * | mtmp ) |
References AT_EXPL, attacktype(), dlevel_t::flags, is_animal, is_floater, level, mindless, permonst::mlet, mons, monsndx(), monstr, pm, PM_PESTILENCE, POT_EXTRA_HEALING, POT_FULL_HEALING, POT_HEALING, POT_SICKNESS, rn2(), S_GHOST, S_KOP, SCR_CREATE_MONSTER, SCR_TELEPORTATION, WAN_CREATE_MONSTER, WAN_DIGGING, and WAN_TELEPORTATION.
Referenced by m_initinv(), and mk_mplayer().
int rnd_misc_item | ( | struct monst * | mtmp ) |
References AMULET_OF_LIFE_SAVING, AT_EXPL, attacktype(), is_animal, mindless, permonst::mlet, monsndx(), monstr, nonliving, pm, POT_GAIN_LEVEL, POT_INVISIBILITY, POT_POLYMORPH, POT_SPEED, rn2(), S_GHOST, S_KOP, See_invisible, WAN_MAKE_INVISIBLE, WAN_POLYMORPH, and WAN_SPEED_MONSTER.
Referenced by m_initinv(), and mk_mplayer().
int rnd_offensive_item | ( | struct monst * | mtmp ) |
References amorphous, AT_EXPL, attacktype(), is_animal, is_metallic, mindless, permonst::mlet, monsndx(), monstr, noncorporeal, passes_walls, pm, POT_ACID, POT_BLINDNESS, POT_CONFUSION, POT_PARALYSIS, POT_SLEEPING, rn2(), S_GHOST, S_KOP, SCR_EARTH, unsolid, W_ARMH, WAN_COLD, WAN_DEATH, WAN_FIRE, WAN_LIGHTNING, WAN_MAGIC_MISSILE, WAN_SLEEP, WAN_STRIKING, and which_armor().
Referenced by m_initweap(), and mk_mplayer().
References acidic, AMULET_CLASS, AMULET_OF_LIFE_SAVING, AMULET_OF_REFLECTION, AT_GAZE, attacktype(), CORPSE, obj::corpsenm, EGG, FALSE, FIRE_HORN, FOOD_CLASS, FROST_HORN, is_animal, is_floater, is_unicorn, is_vampire, MFAST, mindless, mons, monsndx(), monstr, needspick, nonliving, objects, obj::oclass, obj::otyp, PICK_AXE, PM_GHOST, PM_GREEN_SLIME, PM_LIZARD, POT_ACID, POT_BLINDNESS, POT_CONFUSION, POT_EXTRA_HEALING, POT_FULL_HEALING, POT_GAIN_LEVEL, POT_HEALING, POT_INVISIBILITY, POT_PARALYSIS, POT_POLYMORPH, POT_SLEEPING, POT_SPEED, POT_VAMPIRE_BLOOD, POTION_CLASS, RAY, resists_ston, SCR_CREATE_MONSTER, SCR_EARTH, SCR_TELEPORTATION, SCROLL_CLASS, obj::spe, TOOL_CLASS, touch_petrifies, TRUE, UNICORN_HORN, W_ARMG, WAN_CREATE_MONSTER, WAN_DIGGING, WAN_MAKE_INVISIBLE, WAN_POLYMORPH, WAN_SPEED_MONSTER, WAN_STRIKING, WAN_TELEPORTATION, and WAND_CLASS.
Referenced by m_move(), and mpickstuff().
boolean ureflects | ( | char * | fmt, |
char * | str | ||
) | const |
References AMULET_OF_REFLECTION, monst::data, EReflecting, FALSE, makeknown, mons, pline(), PM_SILVER_DRAGON, SHIELD_OF_REFLECTION, TRUE, W_AMUL, W_ARM, W_ARMS, W_WEP, and youmonst.
Referenced by buzz(), cast_cleric_spell(), gazemu(), god_zaps_you(), and passive().
int use_defensive | ( | struct monst * | mtmp ) |
References awaken_soldiers(), bcsign(), bhito(), Can_dig_down(), cansee, canseemon, canspotmon, CORR, d(), musable::defensive, depth(), docall(), doname(), dunlev(), dunlevs_in_dungeon(), enexto(), FALSE, dlevel_t::flags, flags, get_level(), musable::has_defense, HOLE, In_endgame, Inhell, inhishop(), Is_botlevel(), IS_DRAWBRIDGE, is_drawbridge_wall(), is_flyer, IS_FURNITURE, is_pool(), known, ledger_no(), level, levl, locomotion(), m, m_flee, m_useup(), m_using, makeknown, makemon(), makeplural(), maketrap(), mbhit(), mbhitm(), mhim, MIGR_LADDER_DOWN, MIGR_LADDER_UP, MIGR_RANDOM, MIGR_SSTAIRS, MIGR_STAIRS_DOWN, MIGR_STAIRS_UP, migrate_to_level(), mon, mon_consume_unstone(), mon_has_amulet(), mon_has_special(), mon_nam(), mongone(), Monnam(), mons, mquaffmsg(), mreadmsg(), MUSE_BUGLE, MUSE_DN_LADDER, MUSE_DOWNSTAIRS, MUSE_LIZARD_CORPSE, MUSE_POT_EXTRA_HEALING, MUSE_POT_FULL_HEALING, MUSE_POT_HEALING, MUSE_POT_VAMPIRE_BLOOD, MUSE_SCR_CREATE_MONSTER, MUSE_SCR_TELEPORTATION, MUSE_SSTAIRS, MUSE_TELEPORT_TRAP, MUSE_TRAPDOOR, MUSE_UNICORN_HORN, MUSE_UP_LADDER, MUSE_UPSTAIRS, MUSE_WAN_CREATE_MONSTER, MUSE_WAN_DIGGING, MUSE_WAN_TELEPORTATION, MUSE_WAN_TELEPORTATION_SELF, mzapmsg(), newsym(), NO_MM_FLAGS, objects, On_W_tower_level(), otmp, obj::otyp, pline(), pm, PM_ACID_BLOB, PM_CROCODILE, PM_GIANT_EEL, POT_EXTRA_HEALING, POT_HEALING, POT_SICKNESS, POT_VAMPIRE_BLOOD, precheck(), random_teleport_level(), remove_monster(), rloc(), rn1, rn2(), rnd(), SCORR, SCR_CREATE_MONSTER, SCR_TELEPORTATION, seetrap(), something, flag::soundok, obj::spe, sstairs, surface(), stairway::sx, stairway::sy, t_at(), tele_restrict(), TELEP_TRAP, stairway::tolev, TRAPDOOR, trapx, trapy, TRUE, u, unbless(), unblock_point(), stairway::up, you::uz, vis, WAN_CREATE_MONSTER, WAN_DIGGING, WAN_TELEPORTATION, worm_move(), nhcoord::x, and nhcoord::y.
Referenced by dochug().
int use_misc | ( | struct monst * | mtmp ) |
References bimanual, body_part(), BUFSZ, Can_rise_up(), cansee, canseemon, ceiling(), depth(), docall(), dropy(), FALSE, freeinv(), get_level(), grow_up(), Hallucination, HAND, musable::has_misc, hates_silver(), HEAVY_IRON_BALL, is_plural, ledger_no(), locomotion(), m, m_useup(), makeknown, makeplural(), MIGR_RANDOM, migrate_to_level(), musable::misc, mon_adjust_speed(), mon_nam(), mon_set_minvis(), Monnam(), mpickobj(), mquaffmsg(), MUSE_BULLWHIP, muse_newcham_mon(), MUSE_POLY_TRAP, MUSE_POT_GAIN_LEVEL, MUSE_POT_INVISIBILITY, MUSE_POT_POLYMORPH, MUSE_POT_SPEED, MUSE_WAN_MAKE_INVISIBLE, MUSE_WAN_POLYMORPH, MUSE_WAN_SPEED_MONSTER, mzapmsg(), nambuf, newcham(), newsym(), objects, on_level(), otmp, obj::otyp, place_object(), pline(), POT_GAIN_LEVEL, POT_INVISIBILITY, POT_POLYMORPH, precheck(), remove_monster(), rn2(), s_suffix(), See_invisible, seetrap(), SILVER, obj::spe, Strcpy, surface(), t_at(), the(), TRUE, u, uwep, uwepgone(), you::ux, you::uy, you::uz, vis, WAN_MAKE_INVISIBLE, WAN_POLYMORPH, welded(), worm_move(), xname(), and you_aggravate().
Referenced by dochug().
int use_offensive | ( | struct monst * | mtmp ) |
References AD_COLD, AD_FIRE, bcsign(), bhito(), BLACKMARKET, burn_away_slime(), buzz(), cansee, canseemon, canspotmon, ceiling(), closed_door(), DEADMONSTER, destroy_mitem(), dist2(), distmin(), doname(), drop_boulder_on_monster(), drop_boulder_on_player(), FALSE, Fire_resistance, fmon, FROST_HORN, Half_spell_damage, musable::has_offense, IS_AIR, IS_ROCK, isok(), KILLED_BY_AN, levl, losehp(), m, m_throw(), m_useup(), m_using, makeknown, map_invisible(), mbhit(), mbhitm(), monst::mhp, mon_nam(), mondied(), Monnam(), mreadmsg(), MUSE_FIRE_HORN, MUSE_FROST_HORN, MUSE_POT_ACID, MUSE_POT_BLINDNESS, MUSE_POT_CONFUSION, MUSE_POT_PARALYSIS, MUSE_POT_SLEEPING, MUSE_SCR_EARTH, MUSE_SCR_FIRE, MUSE_WAN_CANCELLATION, MUSE_WAN_COLD, MUSE_WAN_DEATH, MUSE_WAN_FIRE, MUSE_WAN_LIGHTNING, MUSE_WAN_MAGIC_MISSILE, MUSE_WAN_SLEEP, MUSE_WAN_STRIKING, MUSE_WAN_TELEPORTATION, monst::mx, monst::my, mzapmsg(), monst::nmon, obj::oclass, musable::offensive, otmp, obj::otyp, pline(), POTION_CLASS, precheck(), resists_cold, resists_fire, rn1, rn2(), SCROLL_CLASS, sgn(), shieldeff(), singular(), SPBOOK_CLASS, obj::spe, TRUE, u, you::ux, you::uy, you::uz, vis, WAN_MAGIC_MISSILE, and xname().
Referenced by mattacku().
STATIC_OVL void you_aggravate | ( | struct monst * | mtmp ) |
References canspotmon, cls(), display_nhwindow, display_self, docrt(), map_invisible(), mon_to_glyph, multi, newsym(), noit_mon_nam(), nomovemsg, pline(), s_suffix(), show_glyph(), TRUE, unconscious(), and WIN_MAP.
Referenced by use_misc().
Referenced by artifact_exists(), dev_name(), discover_artifact(), disp_artifact_discoveries(), fill_rooms(), find_defensive(), find_misc(), find_offensive(), gd_move(), mk_artifact(), mkaltar(), mkfount(), mkgrave(), mktrap(), place_branch(), precheck(), rounddiv(), stock_room(), title_to_mon(), use_defensive(), use_misc(), and use_offensive().
Referenced by resist(), use_defensive(), and use_offensive().
const int monstr[] |
int trapx [static] |
Referenced by use_defensive().
int trapy |
Referenced by use_defensive().