#include "hack.h"
#include "eshk.h"
#include "epri.h"
Functions | |
void | set_mon_data (struct monst *mon, struct permonst *ptr, int flag) |
struct attack * | attacktype_fordmg (struct permonst *ptr, int atyp, int dtyp) |
boolean | attacktype (struct permonst *ptr, int atyp) |
boolean | poly_when_stoned (struct permonst *ptr) |
boolean | resists_drli (struct monst *mon) |
boolean | resists_magm (struct monst *mon) |
boolean | resists_blnd (struct monst *mon) |
boolean | can_blnd (struct monst *magr, struct monst *mdef, uchar aatyp, struct obj *obj) |
boolean | ranged_attk (struct permonst *ptr) |
boolean | hates_silver (struct permonst *ptr) |
boolean | passes_bars (struct permonst *mptr) |
boolean | can_track (struct permonst *ptr) |
boolean | sliparm (struct permonst *ptr) |
boolean | breakarm (struct permonst *ptr) |
boolean | sticks (struct permonst *ptr) |
int | num_horns (struct permonst *ptr) |
struct attack * | dmgtype_fromattack (struct permonst *ptr, int dtyp, int atyp) |
boolean | dmgtype (struct permonst *ptr, int dtyp) |
int | max_passive_dmg (struct monst *mdef, struct monst *magr) |
int | monsndx (struct permonst *ptr) |
int | name_to_mon (char *in_str) const |
int | gender (struct monst *mtmp) |
int | pronoun_gender (struct monst *mtmp) |
boolean | levl_follower (struct monst *mtmp) |
int | little_to_big (int montype) |
int | big_to_little (int montype) |
struct permonst * | raceptr (struct monst *mtmp) |
const char * | locomotion (struct permonst *ptr, const char *def) const |
const char * | stagger (struct permonst *ptr, const char *def) const |
const char * | on_fire (struct permonst *mptr, struct attack *mattk) |
Variables | |
static const short | grownups [][2] |
static const char * | levitate [4] = { "float", "Float", "wobble", "Wobble" } |
static const char * | flys [4] = { "fly", "Fly", "flutter", "Flutter" } |
static const char * | flyl [4] = { "fly", "Fly", "stagger", "Stagger" } |
static const char * | slither [4] = { "slither", "Slither", "falter", "Falter" } |
static const char * | ooze [4] = { "ooze", "Ooze", "tremble", "Tremble" } |
static const char * | immobile [4] = { "wiggle", "Wiggle", "pulsate", "Pulsate" } |
static const char * | crawl [4] = { "crawl", "Crawl", "falter", "Falter" } |
References AD_ANY, attacktype_fordmg(), FALSE, and TRUE.
Referenced by dochug(), dog_invent(), domonability(), domove(), find_misc(), find_offensive(), kick_monster(), lifesaved_monster(), make_familiar(), Mb_hit(), mbodypart(), mpickobj(), nasty(), newcham(), polymon(), possibly_unwield(), rnd_defensive_item(), rnd_misc_item(), rnd_offensive_item(), searches_for_item(), sticks(), and tamedog().
References attack::aatyp, AD_ANY, attack::adtyp, and NATTK.
Referenced by attacktype(), and dobreathe().
int big_to_little | ( | int | montype ) |
References grownups, and LOW_PM.
Referenced by dead_species(), and hatch_egg().
References bigmonst, humanoid, mons, MZ_SMALL, PM_MARILITH, PM_WINGED_GARGOYLE, and sliparm().
Referenced by break_armor(), and mon_break_armor().
References AT_BOOM, AT_BREA, AT_CLAW, AT_ENGL, AT_EXPL, AT_GAZE, AT_MAGC, AT_NONE, AT_SPIT, AT_STNG, AT_TUCH, AT_WEAP, Blindfolded, BLINDING_VENOM, CREAM_PIE, monst::data, FALSE, haseyes, invent, monst::minvent, obj::nobj, OBJ_DESCR, objects, obj::otyp, obj::owornmask, POT_BLINDNESS, resists_blnd(), TRUE, u, ublindf, you::ucreamed, you::usleep, W_ARMH, and youmonst.
Referenced by damageum(), gulpmu(), gulpum(), hitmu(), hmon_hitmon(), m_throw(), mdamagem(), ohitmon(), toss_up(), and use_cream_pie().
References ART_EXCALIBUR, haseyes, obj::oartifact, TRUE, and uwep.
Referenced by m_move().
References AT_ANY, dmgtype_fromattack(), FALSE, and TRUE.
Referenced by attack_checks(), cpostfx(), explmu(), find_offensive(), gulpmu(), hitmu(), montraits(), mrustm(), potionhit(), resists_magm(), stealarm(), sticks(), stumble_onto_mimic(), and urustm().
References attack::aatyp, attack::adtyp, AT_ANY, and NATTK.
Referenced by dmgtype(), and resists_blnd().
int gender | ( | struct monst * | mtmp ) |
References is_neuter.
Referenced by could_seduce(), and steal_it().
References is_demon, is_vampire, is_were, mons, PM_SHADE, PM_TENGU, and S_IMP.
Referenced by can_carry(), dmgval(), dogfood(), hmon_hitmon(), ohitmon(), select_hwep(), select_rwep(), thitu(), and use_misc().
References FALSE, is_fshk(), M2_STALK, mon_has_amulet(), TRUE, u, and you::uhave.
Referenced by keepdogs().
int little_to_big | ( | int | montype ) |
References grownups, and LOW_PM.
Referenced by can_be_hatched(), grow_up(), and learn_egg_type().
const char* locomotion | ( | struct permonst * | ptr, |
const char * | def | ||
) | const |
References amorphous, crawl, flyl, flys, highc(), immobile, is_floater, is_flyer, levitate, MZ_SMALL, nolimbs, ooze, slither, and slithy.
Referenced by check_special_room(), dodown(), domove(), dotele(), dotrap(), fig_transform(), hatch_egg(), hitmu(), level_tele_trap(), m_move(), monstone(), revive_corpse(), shopdig(), use_defensive(), and use_misc().
References AD_ACID, AD_COLD, AD_ELEC, AD_FIRE, AD_PHYS, attack::adtyp, AT_BOOM, AT_NONE, NATTK, resists_acid, resists_cold, resists_elec, and resists_fire.
Referenced by dog_move().
int monsndx | ( | struct permonst * | ptr ) |
References mons, NON_PM, NUMMONS, PM_PLAYERMON, and upermonst.
Referenced by bhitm(), bite_monster(), clone_mon(), cloneu(), create_monster(), do_genocide(), domonnoise(), find_misc(), get_mplname(), gold_detect(), grow_up(), gulpum(), hitmu(), is_home_elemental(), kill_genocided_monsters(), kill_monster_on_level(), lifesaved_monster(), lminion(), m_initinv(), m_initweap(), m_move(), make_corpse(), makemon(), mdamagem(), mintrap(), mk_mplayer(), mkcorpstat(), msummon(), ndemon(), new_were(), newcham(), num_horns(), on_fire(), restartcham(), restmonchn(), restore_cham(), rnd_defensive_item(), rnd_misc_item(), rnd_offensive_item(), rndmonnum(), save_mtraits(), searches_for_item(), spo_object(), swallowed(), thrwmu(), were_change(), were_summon(), x_monnam(), and xkilled().
int name_to_mon | ( | char * | in_str ) | const |
References BUFSZ, LOW_PM, mons, name, names, NON_PM, NUMMONS, PM_ARCH_LICH, PM_BALUCHITHERIUM, PM_CAVEMAN, PM_CAVEWOMAN, PM_DJINNI, PM_ELF_LORD, PM_ERINYS, PM_GRAY_OOZE, PM_GRAY_UNICORN, PM_GREEN_ELF, PM_GREY_ELF, PM_HOMUNCULUS, PM_INCUBUS, PM_KI_RIN, PM_LURKER_ABOVE, PM_MASTER_MIND_FLAYER, PM_MASTER_OF_THIEVES, PM_MIND_FLAYER, PM_MUMAK, PM_OLOG_HAI, PM_ORC_CAPTAIN, PM_SUCCUBUS, PM_URUK_HAI, PM_VIOLET_FUNGUS, PM_WOODLAND_ELF, strcmpi, Strcpy, strncmpi(), strstri(), and title_to_mon().
Referenced by do_genocide(), fruitadd(), nh_timeout(), parse_monster_color(), poisoned(), polyself(), readobjnam(), and select_newcham_form().
int num_horns | ( | struct permonst * | ptr ) |
References monsndx(), PM_ASMODEUS, PM_BALROG, PM_BLACK_UNICORN, PM_GRAY_UNICORN, PM_HORNED_DEVIL, PM_KI_RIN, PM_MINOTAUR, and PM_WHITE_UNICORN.
Referenced by break_armor(), and canwearobj().
References attack::aatyp, AT_HUGS, monsndx(), PM_AIR_ELEMENTAL, PM_CLAY_GOLEM, PM_DUST_VORTEX, PM_EARTH_ELEMENTAL, PM_ENERGY_VORTEX, PM_FIRE_ELEMENTAL, PM_FIRE_VORTEX, PM_FLAMING_SPHERE, PM_FOG_CLOUD, PM_GLASS_GOLEM, PM_GOLD_GOLEM, PM_ICE_VORTEX, PM_SALAMANDER, PM_STEAM_VORTEX, PM_STONE_GOLEM, PM_WATER_ELEMENTAL, and what.
Referenced by damageum(), hitmu(), and mdamagem().
References amorphous, bigmonst, is_whirly, passes_walls, slithy, and verysmall.
Referenced by dog_move(), m_move(), and test_move().
References G_GENOD, is_golem, mons, and PM_STONE_GOLEM.
Referenced by cprefx(), eatcorpse(), edibility_prompts(), feel_cockatrice(), fixup_special(), fpostfx(), gazemu(), help_monster_out(), hitmu(), in_container(), kick_object(), m_throw(), mdamagem(), meatmetal(), minstapetrify(), out_container(), passive(), passiveum(), pickup_object(), polymon(), toss_up(), use_tinning_kit(), and use_whip().
int pronoun_gender | ( | struct monst * | mtmp ) |
References canspotmon, G_UNIQ, humanoid, is_neuter, and type_is_pname.
Referenced by mon_nam_too().
References Race::malenum, mons, Upolyd, urace, and youmonst.
Referenced by racial_exception().
References attack::aatyp, AT_BREA, AT_GAZE, AT_SPIT, AT_WEAP, FALSE, permonst::mattk, NATTK, and TRUE.
References AD_BLND, AT_EXPL, AT_GAZE, Blind, BLINDED, defends(), dmgtype_fromattack(), FALSE, haseyes, invent, MON_WEP, obj::nobj, obj::oartifact, objects, objclass::oc_oprop, obj::otyp, obj::owornmask, protects(), TRUE, u, you::usleep, uwep, and youmonst.
Referenced by buzz(), can_blnd(), domagictrap(), engrave(), explmu(), explum(), flash_hits_mon(), gazemu(), use_crystal_ball(), zapyourself(), and zhitm().
References AD_DRLI, defends(), is_demon, is_undead, is_were, MON_WEP, mons, obj::oartifact, PM_DEATH, uwep, and youmonst.
Referenced by bhitm(), damageum(), losexp(), mdamagem(), and spec_applies().
References AD_MAGM, AD_RBRE, ANTIMAGIC, defends(), dmgtype(), FALSE, invent, MON_WEP, mons, obj::nobj, obj::oartifact, objects, objclass::oc_oprop, obj::otyp, obj::owornmask, PM_BABY_GRAY_DRAGON, protects(), TRUE, uwep, and youmonst.
Referenced by bhitm(), explode(), mbhitm(), mintrap(), and zhitm().
References permonst::mresists.
Referenced by grow_up(), makemon(), new_were(), newcham(), and set_uasmon().
References is_whirly, MZ_SMALL, and noncorporeal.
Referenced by break_armor(), breakarm(), and mon_break_armor().
const char* stagger | ( | struct permonst * | ptr, |
const char * | def | ||
) | const |
References amorphous, crawl, flyl, flys, highc(), immobile, is_floater, is_flyer, levitate, MZ_SMALL, nolimbs, ooze, slither, and slithy.
Referenced by chest_trap(), damageum(), encumber_msg(), hmon_hitmon(), make_stunned(), mdamagem(), passivemm(), and passiveum().
References AD_STCK, AD_WRAP, AT_HUGS, attacktype(), and dmgtype().
Referenced by damageum(), dog_move(), domove(), dountrap(), enlightenment(), float_down(), hitmu(), hmonas(), itsstuck(), known_hitum(), lookat(), Mb_hit(), monflee(), mstatusline(), newcham(), polyman(), polymon(), slept_monst(), tamedog(), and ustatusline().
const char* crawl[4] = { "crawl", "Crawl", "falter", "Falter" } [static] |
Referenced by drown(), locomotion(), and stagger().
const char* flyl[4] = { "fly", "Fly", "stagger", "Stagger" } [static] |
Referenced by locomotion(), and stagger().
const char* flys[4] = { "fly", "Fly", "flutter", "Flutter" } [static] |
Referenced by locomotion(), and stagger().
const short grownups[][2] [static] |
Referenced by big_to_little(), and little_to_big().
const char* immobile[4] = { "wiggle", "Wiggle", "pulsate", "Pulsate" } [static] |
Referenced by find_defensive(), find_misc(), locomotion(), and stagger().
const char* levitate[4] = { "float", "Float", "wobble", "Wobble" } [static] |
Referenced by locomotion(), and stagger().
const char* ooze[4] = { "ooze", "Ooze", "tremble", "Tremble" } [static] |
Referenced by locomotion(), and stagger().
const char* slither[4] = { "slither", "Slither", "falter", "Falter" } [static] |
Referenced by locomotion(), and stagger().