File src/mon.c


Included Files


Preprocessor definitions

#define REVIVER( ptr )

#define KEEPTRAITS( mon )

#define mstoning( obj )

#define BREEDER_EGG


Global Variable animal_list

short* animal_list
Visible in:  src/mon.c
Used in: mon_animal_list()src/mon.c
  pick_animal()src/mon.c

Global Variable animal_list_count

int animal_list_count
Visible in:  src/mon.c
Used in: mon_animal_list()src/mon.c
  pick_animal()src/mon.c

Local Variables

cham_to_pm
static short cham_to_pm[]
Used in: kill_genocided_monsters()
  mondead()
  rescham()
  restore_cham()

poiseff
static const char* poiseff[]
Used in: poisoned()
  poisontell()


Global Function angry_guards()

boolean angry_guards ( boolean silent )
Prototyped in: include/extern.h
Calls: dist2()src/hacklib.c
  You(), You_hear(), pline_The()
Called by: dipfountain()src/fountain.c
  dokick()src/dokick.c
  dryup()src/fountain.c
  impact_drop()src/dokick.c
References Variables: flagssrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c
  mons

Global Function can_be_hatched()

int can_be_hatched ( int mnum )
Prototyped in: include/extern.h
Calls: little_to_big(), rn2()
Called by: mksobj()src/mkobj.c
References Variables: mons

Global Function can_carry()

boolean can_carry ( struct monst* mtmp, struct obj* otmp )
Prototyped in: include/extern.h
Calls: curr_mon_load()src/mon.c
  max_mon_load()src/mon.c
  hates_silver()
Called by: dog_goal()src/dogmove.c
  dog_invent()src/dogmove.c
  mpickstuff()src/mon.c
References Variables: usrc/decl.c
  mons, objects

Global Function curr_mon_load()

int curr_mon_load ( struct monst* mtmp )
Prototyped in: include/extern.h
Called by: can_carry()src/mon.c
  mfndpos()src/mon.c

Global Function dead_species()

boolean dead_species ( int m_idx, boolean egg )
Prototyped in: include/extern.h
Calls: big_to_little()
Called by: carry_obj_effects()src/invent.c
  curse()src/mkobj.c
  kill_eggs()src/mon.c
  mksobj()src/mkobj.c
References Variables: mvitalssrc/decl.c

Global Function dmonsfree()

void dmonsfree ( void )
Prototyped in: include/extern.h
Calls: free(), impossible()
Called by: makemaz()src/mkmaze.c
  movemon()src/mon.c
  savebones()src/bones.c
References Variables: iflagssrc/decl.c
  levelsrc/decl.c

Global Function egg_type_from_parent()

int egg_type_from_parent ( int mnum, boolean force_ordinary )
Prototyped in: include/extern.h
Calls: rn2()

Global Function golemeffects()

void golemeffects ( struct monst* mon, int damtype, int dam )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  mon_adjust_speed(), pline()
Called by: explode()src/explode.c
  mdamagem()src/mhitm.c
  passivemm()src/mhitm.c
  passiveum()src/mhitu.c
References Variables: viz_arraysrc/decl.c
  mons

Global Function kill_genocided_monsters()

void kill_genocided_monsters ( void )
Prototyped in: include/extern.h
Calls: kill_eggs()src/mon.c
  mondead()src/mon.c
  newcham()src/mon.c
  monsndx()
Called by: goto_level()src/do.c
References Variables: cham_to_pmsrc/mon.c
  inventsrc/decl.c
  levelsrc/decl.c
  mvitalssrc/decl.c

Global Function killed()

void killed ( struct monst* mtmp )
Prototyped in: include/extern.h
Calls: xkilled()src/mon.c
Called by: explode()src/explode.c
  gazemu()src/mhitu.c
  kickdmg()src/dokick.c
  mattacku()src/mhitu.c
  use_mirror()src/apply.c

Global Function m_respond()

void m_respond ( struct monst* mtmp )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  gazemu()src/mhitu.c
  makemon()src/makemon.c
  stop_occupation()src/allmain.c
  aggravate(), pline(), rn2()
References Variables: flagssrc/decl.c
  mons

Global Function max_mon_load()

int max_mon_load ( struct monst* mtmp )
Prototyped in: include/extern.h
Called by: can_carry()src/mon.c

Global Function mcalcdistress()

void mcalcdistress ( void )
Prototyped in: include/extern.h
Calls: newcham()src/mon.c
  mon_regen(), rn2(), were_change()
Called by: moveloop()src/allmain.c
References Variables: levelsrc/decl.c

Global Function mcalcmove()

int mcalcmove ( struct monst* mon )
Prototyped in: include/extern.h
Calls: rn2()
Called by: moveloop()src/allmain.c
References Variables: flagssrc/decl.c
  usrc/decl.c

Global Function meatgold()

int meatgold ( struct monst* mtmp )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  delobj()src/invent.c
  grow_up()src/makemon.c
  mksobj_at()src/mkobj.c
  mon_to_stone()src/mon.c
  monstone()src/mon.c
  newcham()src/mon.c
  newsym()src/display.c
  pm_to_cham()src/mon.c
  touch_artifact()src/artifact.c
  You_hear(), distant_name(), obj_resists(), pline(), poly_when_stoned(), rnd(), unpunish(), worm_known()
References Functions: doname()
References Variables: flagssrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  uballsrc/decl.c
  ublindfsrc/decl.c
  uchainsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c
  mons, objects

Global Function meatobj()

int meatobj ( struct monst* mtmp )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  delobj()src/invent.c
  grow_up()src/makemon.c
  newcham()src/mon.c
  newsym()src/display.c
  obj_extract_self()src/mkobj.c
  pm_to_cham()src/mon.c
  start_corpse_timeout()src/mkobj.c
  touch_artifact()src/artifact.c
  You_hear(), distant_name(), mpickobj(), obj_resists(), pline(), sprintf()
References Functions: doname()
References Variables: flagssrc/decl.c
  levelsrc/decl.c
  monstermovessrc/decl.c
  uballsrc/decl.c
  uchainsrc/decl.c
  viz_arraysrc/decl.c
  mons, objects

Global Function mfndpos()

int mfndpos ( struct monst* mon, coord* poss, long* info, long flag )
Prototyped in: include/extern.h
Calls: bad_rock()src/hack.c
  curr_mon_load()src/mon.c
  in_rooms()src/hack.c
  is_lava()src/dbridge.c
  is_pool()src/dbridge.c
  may_dig()src/hack.c
  may_passwall()src/hack.c
  mm_aggression()src/mon.c
  on_level()src/dungeon.c
  online2()src/hacklib.c
  sobj_at()src/invent.c
  impossible(), in_your_sanctuary(), onscary(), t_at()
Called by: dog_move()src/dogmove.c
References Variables: dungeon_topologysrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  youmonstsrc/decl.c
  mons

Global Function minwater()

int minwater ( struct monst* mtmp )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  dryup()src/fountain.c
  is_pool()src/dbridge.c
  mondead()src/mon.c
  on_level()src/dungeon.c
  d(), pline(), rloc(), rn2(), split_mon(), water_damage()
Called by: domove()src/hack.c
  gush()src/fountain.c
  movemon()src/mon.c
References Variables: dungeon_topologysrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c
  mons

Global Function mlifesaver()

struct obj* mlifesaver ( struct monst* mon )
Prototyped in: include/extern.h
Calls: which_armor()
Called by: lifesaved_monster()src/mon.c
  mdamagem()src/mhitm.c

Global Function mnearto()

boolean mnearto ( struct monst* mtmp, xchar x, xchar y, boolean move_other )
Prototyped in: include/extern.h
Calls: mnearto()src/mon.c
  enexto(), goodpos(), remove_worm(), rloc_to()
Called by: mnearto()src/mon.c
  mon_arrive()src/dog.c
  mv_bubble()src/mkmaze.c
References Variables: levelsrc/decl.c

Global Function mnexto()

void mnexto ( struct monst* mtmp )
Prototyped in: include/extern.h
Calls: enexto(), rloc_to()
Called by: expels()src/mhitu.c
  goto_level()src/do.c
  kick_monster()src/dokick.c
  mon_arrive()src/dog.c
  mv_bubble()src/mkmaze.c
  newgame()src/allmain.c
  next_to_u()src/apply.c
  spoteffects()src/hack.c
  use_magic_whistle()src/apply.c
References Variables: usrc/decl.c

Global Function mon_animal_list()

void mon_animal_list ( boolean construct )
Prototyped in: include/extern.h
Calls: alloc()src/alloc.c
  free(), memcpy()
Called by: pick_animal()src/mon.c
References Variables: animal_listsrc/mon.c
  animal_list_countsrc/mon.c
  mons

Global Function mon_to_stone()

void mon_to_stone ( struct monst* mtmp )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  a_monnam()src/do_name.c
  newcham()src/mon.c
  an(), impossible(), pline(), worm_known()
Called by: mdamagem()src/mhitm.c
  meatgold()src/mon.c
  passiveum()src/mhitu.c
References Variables: usrc/decl.c
  ublindfsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c
  mons

Global Function mondead()

void mondead ( struct monst* mtmp )
Prototyped in: include/extern.h
Calls: lifesaved_monster()src/mon.c
  m_detach()src/mon.c
  makemon()src/makemon.c
  unmap_object()src/display.c
  dismount_steed(), grddead(), monsndx(), nemdead(), rnd(), set_mon_data(), wizdead()
Called by: explmm()src/mhitm.c
  explmu()src/mhitu.c
  kill_genocided_monsters()src/mon.c
  minwater()src/mon.c
  mondied()src/mon.c
  monkilled()src/mon.c
  monstone()src/mon.c
  xkilled()src/mon.c
References Variables: cham_to_pmsrc/mon.c
  dnstairsrc/decl.c
  levelsrc/decl.c
  mvitalssrc/decl.c
  usrc/decl.c
  mons

Global Function mondied()

void mondied ( struct monst* mdef )
Prototyped in: include/extern.h
Calls: corpse_chance()src/mon.c
  make_corpse()src/mon.c
  mondead()src/mon.c
Called by: check_leash()src/apply.c
  dog_hunger()src/dogmove.c
  grow_up()src/makemon.c
  mdamagem()src/mhitm.c
  monkilled()src/mon.c

Global Function mongone()

void mongone ( struct monst* mdef )
Prototyped in: include/extern.h
Calls: discard_minvent()src/mkobj.c
  m_detach()src/mon.c
  dismount_steed()
Called by: demon_talk()src/minion.c
  dog_move()src/dogmove.c
  dowaterdemon()src/fountain.c
  fixup_special()src/mkmaze.c
  getbones()src/bones.c
  hitmu()src/mhitu.c
  savebones()src/bones.c
References Variables: usrc/decl.c

Global Function monkilled()

void monkilled ( struct monst* mdef, const char* fltxt, int how )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  mondead()src/mon.c
  mondied()src/mon.c
  You(), pline(), worm_known()
Called by: e_died()src/dbridge.c
  explode()src/explode.c
  mdamagem()src/mhitm.c
  passivemm()src/mhitm.c
References Variables: viz_arraysrc/decl.c

Global Function monnear()

boolean monnear ( struct monst* mon, int x, int y )
Prototyped in: include/extern.h
Calls: dist2()src/hacklib.c
Called by: dog_move()src/dogmove.c
  fightm()src/mhitm.c
  keepdogs()src/dog.c
  mattacku()src/mhitu.c
  thitmonst()src/dothrow.c
References Variables: mons

Global Function monstone()

void monstone ( struct monst* mdef )
Prototyped in: include/extern.h
Calls: add_to_container()src/mkobj.c
  flooreffects()src/do.c
  lifesaved_monster()src/mon.c
  mkcorpstat()src/mkobj.c
  mksobj()src/mkobj.c
  mksobj_at()src/mkobj.c
  mondead()src/mon.c
  newsym()src/display.c
  obj_extract_self()src/mkobj.c
  oname()src/do_name.c
  place_object()src/mkobj.c
  stackobj()src/invent.c
  unmap_object()src/display.c
  weight()src/mkobj.c
  end_burn(), obj_resists(), rn2()
Called by: mdamagem()src/mhitm.c
  meatgold()src/mon.c
  xkilled()src/mon.c
References Variables: levelsrc/decl.c
  viz_arraysrc/decl.c
  mons

Global Function movemon()

int movemon ( void )
Prototyped in: include/extern.h
Calls: any_light_source()src/light.c
  deferred_goto()src/do.c
  dist2()src/hacklib.c
  dmonsfree()src/mon.c
  fightm()src/mhitm.c
  minwater()src/mon.c
  restrap()src/mon.c
  dochugw()
Called by: moveloop()src/allmain.c
References Variables: levelsrc/decl.c
  usrc/decl.c
  vision_full_recalcsrc/decl.c
  viz_arraysrc/decl.c

Global Function mpickgold()

void mpickgold ( struct monst* mtmp )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  delobj()src/invent.c
  g_at()src/invent.c
  newsym()src/display.c
  pline()
References Variables: flagssrc/decl.c
  viz_arraysrc/decl.c

Global Function mpickstuff()

boolean mpickstuff ( struct monst* mtmp, const char* str )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  can_carry()src/mon.c
  dist2()src/hacklib.c
  is_pool()src/dbridge.c
  newsym()src/display.c
  obj_extract_self()src/mkobj.c
  touch_artifact()src/artifact.c
  distant_name(), doname(), inhishop(), m_dowear(), mpickobj(), pline(), searches_for_item(), strchr(), unblock_point()
References Functions: doname()
References Variables: flagssrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  viz_arraysrc/decl.c
  mons

Global Function newcham()

int newcham ( struct monst* mtmp, struct permonst* mdat )
Prototyped in: include/extern.h
Calls: adj_lev()src/makemon.c
  del_light_source()src/light.c
  expels()src/mhitu.c
  flooreffects()src/do.c
  is_pool()src/dbridge.c
  mon_nam()src/do_name.c
  new_light_source()src/light.c
  newsym()src/display.c
  obj_extract_self()src/mkobj.c
  place_object()src/mkobj.c
  select_newcham_form()src/mon.c
  unstuck()src/mon.c
  You(), attacktype(), count_wsegs(), get_wormno(), initworm(), m_dowear(), mon_break_armor(), monsndx(), mselftouch(), place_monster(), place_worm_tail_randomly(), possibly_unwield(), rn2(), set_mon_data(), sticks(), strchr(), wormgone()
Called by: dog_eat()src/dogmove.c
  kill_genocided_monsters()src/mon.c
  makemon()src/makemon.c
  mcalcdistress()src/mon.c
  mdamagem()src/mhitm.c
  meatgold()src/mon.c
  meatobj()src/mon.c
  mon_to_stone()src/mon.c
  rescham()src/mon.c
  restore_cham()src/mon.c
References Variables: dungeon_topologysrc/decl.c
  flagssrc/decl.c
  levelsrc/decl.c
  mvitalssrc/decl.c
  usrc/decl.c
  youmonstsrc/decl.c
  mons

Global Function pacify_guards()

void pacify_guards ( void )
Prototyped in: include/extern.h
References Variables: levelsrc/decl.c
  mons

Global Function pm_to_cham()

int pm_to_cham ( int mndx )
Prototyped in: include/extern.h
Called by: dog_eat()src/dogmove.c
  makemon()src/makemon.c
  meatgold()src/mon.c
  meatobj()src/mon.c
  restartcham()src/mon.c
  restore_cham()src/mon.c

Global Function poisoned()

void poisoned ( const char* string, int typ, const char* pname, int fatal )
Prototyped in: include/extern.h
Calls: adjattrib()src/attrib.c
  done()src/end.c
  losehp()src/hack.c
  shieldeff()src/display.c
  encumber_msg(), pline(), pline_The(), rn2(), rnd(), strcmp(), strlen(), strncmp()
Called by: hitmu()src/mhitu.c
References Variables: killersrc/decl.c
  killer_formatsrc/decl.c
  poiseffsrc/mon.c
  usrc/decl.c
  youmonstsrc/decl.c

Global Function poisontell()

void poisontell ( int typ )
Prototyped in: include/extern.h
Calls: pline()
References Variables: poiseffsrc/mon.c

Global Function relmon()

void relmon ( struct monst* mon )
Prototyped in: include/extern.h
Calls: panic()src/end.c
Called by: keepdogs()src/dog.c
  migrate_to_level()src/dog.c
  replmon()src/mon.c
References Variables: levelsrc/decl.c

Global Function replmon()

void replmon ( struct monst* mtmp, struct monst* mtmp2 )
Prototyped in: include/extern.h
Calls: del_light_source()src/light.c
  new_light_source()src/light.c
  relmon()src/mon.c
  free(), place_monster(), place_wsegs(), replshk()
Called by: christen_monst()src/do_name.c
  tamedog()src/dog.c
References Variables: levelsrc/decl.c
  usrc/decl.c
  mons

Global Function rescham()

void rescham ( void )
Prototyped in: include/extern.h
Calls: newcham()src/mon.c
  seemimic()src/mon.c
  new_were()
Called by: Ring_on()src/do_wear.c
  eataccessory()src/eat.c
References Variables: cham_to_pmsrc/mon.c
  levelsrc/decl.c
  viz_arraysrc/decl.c
  mons

Global Function restartcham()

void restartcham ( void )
Prototyped in: include/extern.h
Calls: newsym()src/display.c
  pm_to_cham()src/mon.c
  set_mimic_sym()src/makemon.c
  monsndx()
Called by: Ring_off_or_gone()src/do_wear.c
References Variables: levelsrc/decl.c
  viz_arraysrc/decl.c

Global Function restore_cham()

void restore_cham ( struct monst* mon )
Prototyped in: include/extern.h
Calls: newcham()src/mon.c
  pm_to_cham()src/mon.c
  monsndx(), new_were()
References Variables: cham_to_pmsrc/mon.c
  usrc/decl.c
  mons

Global Function seemimic()

void seemimic ( struct monst* mtmp )
Prototyped in: include/extern.h
Calls: newsym()src/display.c
  unblock_point()
Called by: domove()src/hack.c
  dosearch0()src/detect.c
  findone()src/detect.c
  hitmm()src/mhitm.c
  kickdmg()src/dokick.c
  missmm()src/mhitm.c
  rescham()src/mon.c
  wakeup()src/mon.c

Global Function setmangry()

void setmangry ( struct monst* mtmp )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  adjalign()src/attrib.c
  dmgtype(), growl(), makeplural(), p_coaligned(), pline(), pline_The(), quest_info(), worm_known()
Called by: ghitm()src/dokick.c
  kick_monster()src/dokick.c
  wakeup()src/mon.c
References Variables: flagssrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c
  mons

Global Function undead_to_corpse()

int undead_to_corpse ( int mndx )
Prototyped in: include/extern.h
Called by: make_corpse()src/mon.c
  mksobj()src/mkobj.c

Global Function unstuck()

void unstuck ( struct monst* mtmp )
Prototyped in: include/extern.h
Calls: docrt()src/display.c
  placebc()src/ball.c
Called by: expels()src/mhitu.c
  m_detach()src/mon.c
  newcham()src/mon.c
  slept_monst()src/mhitm.c
  tamedog()src/dog.c
References Variables: usrc/decl.c
  uballsrc/decl.c
  vision_full_recalcsrc/decl.c

Global Function wake_nearby()

void wake_nearby ( void )
Prototyped in: include/extern.h
Calls: dist2()src/hacklib.c
Called by: dighole()src/dig.c
  dokick()src/dokick.c
  forcelock()src/lock.c
  use_bell()src/apply.c
  use_magic_whistle()src/apply.c
  use_whistle()src/apply.c
References Variables: levelsrc/decl.c
  movessrc/decl.c
  usrc/decl.c

Global Function wake_nearto()

void wake_nearto ( int x, int y, int distance )
Prototyped in: include/extern.h
Calls: dist2()src/hacklib.c
Called by: boulder_hits_pool()src/do.c
  destroy_drawbridge()src/dbridge.c
  doorlock()src/lock.c
  openone()src/detect.c
References Variables: levelsrc/decl.c

Global Function wakeup()

void wakeup ( struct monst* mtmp )
Prototyped in: include/extern.h
Calls: seemimic()src/mon.c
  setmangry()src/mon.c
Called by: ghitm()src/dokick.c
  hurtle_step()src/dothrow.c
  thitmonst()src/dothrow.c
  tmiss()src/dothrow.c
  use_whip()src/apply.c

Global Function xkilled()

void xkilled ( struct monst* mtmp, int dest )
Prototyped in: include/extern.h
Calls: adjalign()src/attrib.c
  change_luck()src/attrib.c
  corpse_chance()src/mon.c
  delobj()src/invent.c
  dist2()src/hacklib.c
  experience()src/exper.c
  is_pool()src/dbridge.c
  make_corpse()src/mon.c
  mkobj_at()src/mkobj.c
  mon_nam()src/do_name.c
  mondead()src/mon.c
  monstone()src/mon.c
  more_experienced()src/exper.c
  newexplevel()src/exper.c
  newsym()src/display.c
  on_level()src/dungeon.c
  see_monsters()src/display.c
  sgn()src/hacklib.c
  sobj_at()src/invent.c
  spoteffects()src/hack.c
  x_monnam()src/do_name.c
  You(), You_feel(), You_hear(), accessible(), dmgtype(), monsndx(), p_coaligned(), pline(), rn2(), t_at(), worm_known()
Called by: e_died()src/dbridge.c
  killed()src/mon.c
  passiveum()src/mhitu.c
References Variables: dungeon_topologysrc/decl.c
  flagssrc/decl.c
  levelsrc/decl.c
  movessrc/decl.c
  mvitalssrc/decl.c
  stonedsrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c
  mons, objects

Local Function corpse_chance()

static boolean corpse_chance ( struct monst* mon )
Prototyped in: src/mon.c
Calls: Monnam()src/do_name.c
  explode()src/explode.c
  on_level()src/dungeon.c
  s_suffix()src/hacklib.c
  d(), pline(), rn2(), sprintf()
Called by: mondied()src/mon.c
  xkilled()src/mon.c
References Variables: dungeon_topologysrc/decl.c
  killersrc/decl.c
  killer_bufsrc/decl.c
  killer_formatsrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  viz_arraysrc/decl.c
  mons

Local Function kill_eggs()

static void kill_eggs ( struct obj* obj_list )
Prototyped in: src/mon.c
Calls: dead_species()src/mon.c
  kill_eggs()src/mon.c
  kill_egg()
Called by: kill_eggs()src/mon.c
  kill_genocided_monsters()src/mon.c

Local Function lifesaved_monster()

static void lifesaved_monster ( struct monst* mtmp )
Prototyped in: src/mon.c
Calls: Monnam()src/do_name.c
  mlifesaver()src/mon.c
  mon_nam()src/do_name.c
  s_suffix()src/hacklib.c
  wary_dog()src/dog.c
  discover_object(), m_useup(), monsndx(), pline(), pline_The()
Called by: mondead()src/mon.c
  monstone()src/mon.c
References Variables: movessrc/decl.c
  mvitalssrc/decl.c
  viz_arraysrc/decl.c

Local Function m_detach()

static void m_detach ( struct monst* mtmp, struct permonst* mptr )
Prototyped in: src/mon.c
Calls: del_light_source()src/light.c
  m_unleash()src/apply.c
  newsym()src/display.c
  unstuck()src/mon.c
  fill_pit(), relobj(), shkgone(), wormgone()
Called by: mondead()src/mon.c
  mongone()src/mon.c
References Variables: iflagssrc/decl.c
  levelsrc/decl.c
  mons

Local Function make_corpse()

static struct obj* make_corpse ( struct monst* mtmp )
Prototyped in: src/mon.c
Calls: artifact_exists()src/artifact.c
  mkcorpstat()src/mkobj.c
  mkgold()src/mkobj.c
  mksobj_at()src/mkobj.c
  newsym()src/display.c
  oname()src/do_name.c
  stackobj()src/invent.c
  undead_to_corpse()src/mon.c
  weight()src/mkobj.c
  d(), monsndx(), rn2(), rnd(), rnl(), strcpy()
Called by: mondied()src/mon.c
  xkilled()src/mon.c
References Variables: mvitalssrc/decl.c
  mons

Local Function mm_aggression()

static long mm_aggression ( struct monst* magr, struct monst* mdef )
Prototyped in: src/mon.c
Called by: mfndpos()src/mon.c
References Variables: mons

Local Function pick_animal()

static int pick_animal ( void )
Prototyped in: src/mon.c
Calls: mon_animal_list()src/mon.c
  rn2()
Called by: select_newcham_form()src/mon.c
References Variables: animal_listsrc/mon.c
  animal_list_countsrc/mon.c

Local Function restrap()

static boolean restrap ( struct monst* mtmp )
Prototyped in: src/mon.c
Calls: set_mimic_sym()src/makemon.c
  rn2()
Called by: movemon()src/mon.c
References Variables: levelsrc/decl.c
  usrc/decl.c
  viz_arraysrc/decl.c

Local Function select_newcham_form()

static int select_newcham_form ( struct monst* mon )
Prototyped in: src/mon.c
Calls: pick_animal()src/mon.c
  pick_nasty(), rn2()
Called by: newcham()src/mon.c