File src/uhitm.c

FIXME


Included Files


Preprocessor definitions

#define PROJECTILE( obj )

#define useup_eggs( o )


External Variables

notonhead
extern boolean notonhead
Defined in: src/potion.c

Local Variables

dieroll
static int dieroll
Used in: hitum()
  hmon_hitmon()
  hmonas()

override_confirmation
static boolean override_confirmation
Used in: attack()
  attack_checks()
  known_hitum()


Global Function attack()

boolean attack ( struct monst* mtmp )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  You()src/pline.c
  aobjnam()src/objnam.c
  attack_checks()src/uhitm.c
  body_part()src/polyself.c
  check_capacity()src/hack.c
  dist2()src/hacklib.c
  dmgtype()src/mondata.c
  exercise()src/attrib.c
  find_roll_to_hit()src/uhitm.c
  highc()src/hacklib.c
  hitum()src/uhitm.c
  hmonas()src/uhitm.c
  in_rooms()src/hack.c
  m_move()src/monmove.c
  makeplural()src/objnam.c
  map_invisible()src/display.c
  noattacks()src/mhitm.c
  pline()src/pline.c
  rn2()src/rnd.c
  rnd()src/rnd.c
  u_wipe_engr()src/engrave.c
  y_monnam()src/do_name.c
  can_twoweapon(), strcpy(), untwoweapon(), worm_known()
Called by: domove()src/hack.c
  use_pick_axe()src/dig.c
  use_whip()src/apply.c
References Variables: flagssrc/decl.c
  levelsrc/decl.c
  monssrc/monst.c
  override_confirmationsrc/uhitm.c
  usrc/decl.c
  uarmgsrc/decl.c
  uballsrc/decl.c
  ublindfsrc/decl.c
  unweaponsrc/decl.c
  urolesrc/role.c
  uwepsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c

Global Function attack_checks()

boolean attack_checks ( struct monst* mtmp, struct obj* wep )
Prototyped in: include/extern.h
Calls: an()src/objnam.c
  dist2()src/hacklib.c
  dmgtype()src/mondata.c
  doname()src/objnam.c
  is_pool()src/dbridge.c
  l_monnam()src/do_name.c
  map_invisible()src/display.c
  mon_nam()src/do_name.c
  newsym()src/display.c
  pline()src/pline.c
  seemimic()src/mon.c
  stumble_onto_mimic()src/uhitm.c
  wakeup()src/mon.c
  sprintf(), worm_known()
Called by: attack()src/uhitm.c
  kick_monster()src/dokick.c
References Variables: c_common_stringssrc/decl.c
  flagssrc/decl.c
  levelsrc/decl.c
  monssrc/monst.c
  override_confirmationsrc/uhitm.c
  usrc/decl.c
  ublindfsrc/decl.c
  viz_arraysrc/decl.c
  yncharssrc/decl.c
  youmonstsrc/decl.c
  windowprocs

Global Function damageum()

int damageum ( struct monst* mdef, struct attack* mattk )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  You()src/pline.c
  You_feel()src/pline.c
  Your()src/pline.c
  can_blnd()src/mondata.c
  d()src/rnd.c
  demonpet()src/uhitm.c
  exercise()src/attrib.c
  golemeffects()src/mon.c
  hurtmarmor()src/uhitm.c
  impossible()src/pline.c
  is_pool()src/dbridge.c
  killed()src/mon.c
  m_slips_free()src/uhitm.c
  mbodypart()src/polyself.c
  minstapetrify()src/trap.c
  mon_nam()src/do_name.c
  morehungry()src/eat.c
  mpoisons_subj()src/mhitu.c
  munstone()src/muse.c
  newcham()src/mon.c
  night()src/hacklib.c
  pline()src/pline.c
  pline_The()src/pline.c
  pronoun_gender()src/mondata.c
  resists_drli()src/mondata.c
  rn2()src/rnd.c
  rnd()src/rnd.c
  s_suffix()src/hacklib.c
  shieldeff()src/display.c
  sleep_monst()src/mhitm.c
  slept_monst()src/mhitm.c
  steal_it()src/uhitm.c
  sticks()src/mondata.c
  u_teleport_mon()src/teleport.c
  violated_vegetarian()src/eat.c
  xkilled()src/mon.c
  destroy_mitem(), strcpy(), worm_known()
Called by: hmonas()src/uhitm.c
  kick_monster()src/dokick.c
References Variables: flagssrc/decl.c
  hissrc/decl.c
  monssrc/monst.c
  notonheadsrc/potion.c
  usrc/decl.c
  uarmfsrc/decl.c
  ublindfsrc/decl.c
  uwepsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c

Global Function find_roll_to_hit()

schar find_roll_to_hit ( struct monst* mtmp )
Prototyped in: include/extern.h
Calls: You()src/pline.c
  Your()src/pline.c
  adjalign()src/attrib.c
  near_capacity()src/hack.c
  rn2()src/rnd.c
  abon(), find_mac(), hitval(), weapon_hit_bonus()
Called by: attack()src/uhitm.c
  kick_monster()src/dokick.c
References Variables: usrc/decl.c
  uarmsrc/decl.c
  uracesrc/role.c
  urolesrc/role.c
  uwepsrc/decl.c
  youmonstsrc/decl.c

Global Function flash_hits_mon()

int flash_hits_mon ( struct monst* mtmp, struct obj* otmp )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  d()src/rnd.c
  dist2()src/hacklib.c
  killed()src/mon.c
  map_invisible()src/display.c
  mon_nam()src/do_name.c
  monkilled()src/mon.c
  pline()src/pline.c
  pline_The()src/pline.c
  resists_blnd()src/mondata.c
  rn2()src/rnd.c
  rnd()src/rnd.c
  setmangry()src/mon.c
  worm_known()
Called by: use_camera()src/apply.c
References Variables: flagssrc/decl.c
  monssrc/monst.c
  usrc/decl.c
  ublindfsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c

Global Function hmon()

boolean hmon ( struct monst* mon, struct obj* obj, int thrown )
Prototyped in: include/extern.h
Calls: angry_guards()src/mon.c
  ghod_hitsu()src/priest.c
  hmon_hitmon()src/uhitm.c
  rn2()src/rnd.c
Called by: drag_ball()src/ball.c
  flooreffects()src/do.c
  known_hitum()src/uhitm.c
  thitmonst()src/dothrow.c
References Variables: flagssrc/decl.c
  monssrc/monst.c

Global Function hurtmarmor()

void hurtmarmor ( struct monst* mdef, int attk )
Prototyped in: include/extern.h
Calls: rn2()src/rnd.c
  rust_dmg()src/trap.c
  xname()src/objnam.c
  which_armor()
Called by: damageum()src/uhitm.c
  mdamagem()src/mhitm.c

Global Function missum()

void missum ( struct monst* mdef, struct attack* mattk )
Prototyped in: include/extern.h
Calls: You()src/pline.c
  could_seduce()src/mhitu.c
  dist2()src/hacklib.c
  mon_nam()src/do_name.c
  wakeup()src/mon.c
  worm_known()
Called by: hmonas()src/uhitm.c
  kick_monster()src/dokick.c
  known_hitum()src/uhitm.c
References Variables: flagssrc/decl.c
  monssrc/monst.c
  usrc/decl.c
  ublindfsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c

Global Function passive()

int passive ( struct monst* mon, boolean mhit, int malive, uchar aatyp )
Prototyped in: include/extern.h
Calls: Adjmonnam()src/do_name.c
  Monnam()src/do_name.c
  You()src/pline.c
  You_feel()src/pline.c
  Your()src/pline.c
  acurr()src/attrib.c
  aobjnam()src/objnam.c
  change_luck()src/attrib.c
  d()src/rnd.c
  done_in_by()src/end.c
  erode_armor()src/do_wear.c
  exercise()src/attrib.c
  make_stunned()src/potion.c
  mdamageu()src/mhitu.c
  mon_nam()src/do_name.c
  monnear()src/mon.c
  nomul()src/hack.c
  pline()src/pline.c
  poly_when_stoned()src/mondata.c
  polymon()src/polyself.c
  resists_magm()src/mondata.c
  rn2()src/rnd.c
  rust_dmg()src/trap.c
  s_suffix()src/hacklib.c
  shieldeff()src/display.c
  split_mon()src/potion.c
  ugolemeffects()src/polyself.c
  ureflects()src/muse.c
  xname()src/objnam.c
  drain_item(), erode_weapon(), worm_known()
Called by: hitum()src/uhitm.c
  hmonas()src/uhitm.c
  kick_monster()src/dokick.c
  kickdmg()src/dokick.c
References Variables: flagssrc/decl.c
  monssrc/monst.c
  usrc/decl.c
  uarmfsrc/decl.c
  uarmgsrc/decl.c
  ublindfsrc/decl.c
  uwepsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c

Global Function stumble_onto_mimic()

void stumble_onto_mimic ( struct monst* mtmp )
Prototyped in: include/extern.h
Calls: a_monnam()src/do_name.c
  dmgtype()src/mondata.c
  pline()src/pline.c
  wakeup()src/mon.c
Called by: attack_checks()src/uhitm.c
  doclose()src/lock.c
  domove()src/hack.c
  doopen()src/lock.c
  untrap()src/trap.c
References Variables: levelsrc/decl.c
  monssrc/monst.c
  usrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c

Local Function demonpet()

static void demonpet ( void )
Prototyped in: src/uhitm.c
Calls: exercise()src/attrib.c
  makemon()src/makemon.c
  ndemon()src/minion.c
  pline()src/pline.c
  rn2()src/rnd.c
  tamedog()src/dog.c
Called by: damageum()src/uhitm.c
References Variables: monssrc/monst.c
  usrc/decl.c
  youmonstsrc/decl.c

Local Function end_engulf()

static void end_engulf ( void )
Prototyped in: src/uhitm.c
Calls: newsym()src/display.c
  tmp_at()src/display.c
Called by: gulpum()src/uhitm.c
References Variables: monssrc/monst.c
  usrc/decl.c
  youmonstsrc/decl.c

Local Function explum()

static int explum ( struct monst* mdef, struct attack* mattk )
Prototyped in: src/uhitm.c
Calls: Monnam()src/do_name.c
  You()src/pline.c
  d()src/rnd.c
  golemeffects()src/mon.c
  killed()src/mon.c
  mon_nam()src/do_name.c
  pline()src/pline.c
  pline_The()src/pline.c
  resists_blnd()src/mondata.c
  shieldeff()src/display.c
Called by: hmonas()src/uhitm.c

Local Function gulpum()

static int gulpum ( struct monst* mdef, struct attack* mattk )
Prototyped in: src/uhitm.c
Calls: Monnam()src/do_name.c
  You()src/pline.c
  an()src/objnam.c
  can_blnd()src/mondata.c
  d()src/rnd.c
  done()src/end.c
  end_engulf()src/uhitm.c
  exercise()src/attrib.c
  golemeffects()src/mon.c
  instapetrify()src/trap.c
  killed()src/mon.c
  m_useup()src/mthrowu.c
  mlifesaver()src/mon.c
  mon_nam()src/do_name.c
  newuhs()src/eat.c
  nomul()src/hack.c
  pline()src/pline.c
  pline_The()src/pline.c
  rn2()src/rnd.c
  s_suffix()src/hacklib.c
  snuff_lit()src/apply.c
  start_engulf()src/uhitm.c
  violated_vegetarian()src/eat.c
  xkilled()src/mon.c
  sprintf()
Called by: hmonas()src/uhitm.c
References Variables: killersrc/decl.c
  killer_formatsrc/decl.c
  monssrc/monst.c
  nomovemsgsrc/decl.c
  usrc/decl.c
  youmonstsrc/decl.c

Local Function hitum()

static boolean hitum ( struct monst* mon, int tmp, struct attack* uattk )
Prototyped in: src/uhitm.c
Calls: exercise()src/attrib.c
  known_hitum()src/uhitm.c
  passive()src/uhitm.c
  rnd()src/rnd.c
Called by: attack()src/uhitm.c
References Variables: dierollsrc/uhitm.c
  usrc/decl.c

Local Function hmon_hitmon()

NOTE: perhaps obj is undefined!! (if !thrown && BOOMERANG) * *OR* if attacking bare-handed!!

static boolean hmon_hitmon ( struct monst* mon, struct obj* obj, int thrown )
Prototyped in: src/uhitm.c
Calls: Monnam()src/do_name.c
  You()src/pline.c
  You_feel()src/pline.c
  Your()src/pline.c
  abuse_dog()src/dog.c
  adjalign()src/attrib.c
  an()src/objnam.c
  artifact_hit()src/artifact.c
  breaktest()src/dothrow.c
  can_blnd()src/mondata.c
  change_luck()src/attrib.c
  clone_mon()src/makemon.c
  d()src/rnd.c
  dist2()src/hacklib.c
  exercise()src/attrib.c
  freeinv()src/invent.c
  goodpos()src/teleport.c
  hates_silver()src/mondata.c
  highc()src/hacklib.c
  killed()src/mon.c
  m_useup()src/mthrowu.c
  minstapetrify()src/trap.c
  mon_nam()src/do_name.c
  munstone()src/muse.c
  newsym()src/display.c
  nohandglow()src/uhitm.c
  obfree()src/shk.c
  obj_stop_timers()src/timeout.c
  place_monster()src/steed.c
  place_object()src/mkobj.c
  pline()src/pline.c
  pline_The()src/pline.c
  potionhit()src/potion.c
  rn2()src/rnd.c
  rnd()src/rnd.c
  rnl()src/rnd.c
  s_suffix()src/hacklib.c
  set_apparxy()src/monmove.c
  setmangry()src/mon.c
  sgn()src/hacklib.c
  shk_your()src/shk.c
  splitobj()src/mkobj.c
  the()src/objnam.c
  useup()src/invent.c
  useupall()src/invent.c
  wakeup()src/mon.c
  weight()src/mkobj.c
  xkilled()src/mon.c
  xname()src/objnam.c
  dbon(), dmgval(), exclam(), hit(), obj_resists(), resist(), setuwep(), setworn(), strcat(), use_skill(), uwep_skill_type(), weapon_dam_bonus(), weapon_type(), worm_known()
Called by: hmon()src/uhitm.c
References Variables: dierollsrc/uhitm.c
  flagssrc/decl.c
  levelsrc/decl.c
  monssrc/monst.c
  objectssrc/objects.c
  usrc/decl.c
  uarmsrc/decl.c
  uarmgsrc/decl.c
  uarmssrc/decl.c
  ublindfsrc/decl.c
  uleftsrc/decl.c
  unweaponsrc/decl.c
  uracesrc/role.c
  urightsrc/decl.c
  urolesrc/role.c
  uwepsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c


Local Function hmonas()

static boolean hmonas ( struct monst* mon, int tmp )
Prototyped in: src/uhitm.c
Calls: Monnam()src/do_name.c
  You()src/pline.c
  Your()src/pline.c
  could_seduce()src/mhitu.c
  damageum()src/uhitm.c
  explum()src/uhitm.c
  gulpum()src/uhitm.c
  impossible()src/pline.c
  known_hitum()src/uhitm.c
  missum()src/uhitm.c
  mon_nam()src/do_name.c
  passive()src/uhitm.c
  pline()src/pline.c
  rehumanize()src/polyself.c
  rnd()src/rnd.c
  sticks()src/mondata.c
  wakeup()src/mon.c
  hitval(), weapon_hit_bonus()
Called by: attack()src/uhitm.c
References Variables: dierollsrc/uhitm.c
  levelsrc/decl.c
  monssrc/monst.c
  multisrc/decl.c
  usrc/decl.c
  uarmfsrc/decl.c
  uwepsrc/decl.c
  youmonstsrc/decl.c

Local Function known_hitum()

static boolean known_hitum ( struct monst* mon, int* mhit, struct attack* uattk )
Prototyped in: src/uhitm.c
Calls: Monnam()src/do_name.c
  Your()src/pline.c
  hmon()src/uhitm.c
  missum()src/uhitm.c
  pline()src/pline.c
  rn2()src/rnd.c
  rnd()src/rnd.c
  sticks()src/mondata.c
  cutworm()
Called by: hitum()src/uhitm.c
  hmonas()src/uhitm.c
References Variables: flagssrc/decl.c
  notonheadsrc/potion.c
  objectssrc/objects.c
  override_confirmationsrc/uhitm.c
  usrc/decl.c
  ublindfsrc/decl.c
  uswapwepsrc/decl.c
  uwepsrc/decl.c
  youmonstsrc/decl.c

Local Function m_slips_free()

static boolean m_slips_free ( struct monst* mdef, struct attack* mattk )
Prototyped in: src/uhitm.c
Calls: You()src/pline.c
  mon_nam()src/do_name.c
  pline_The()src/pline.c
  rn2()src/rnd.c
  s_suffix()src/hacklib.c
  xname()src/objnam.c
  which_armor()
Called by: damageum()src/uhitm.c
References Variables: objectssrc/objects.c

Local Function nohandglow()

static void nohandglow ( struct monst* mon )
Prototyped in: src/uhitm.c
Calls: Your()src/pline.c
  body_part()src/polyself.c
  hcolor()src/do_name.c
  makeplural()src/objnam.c
  pline_The()src/pline.c
Called by: hmon_hitmon()src/uhitm.c
References Variables: c_color_namessrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c

Local Function start_engulf()

static void start_engulf ( struct monst* mdef )
Prototyped in: src/uhitm.c
Calls: You()src/pline.c
  dmgtype()src/mondata.c
  map_location()src/display.c
  mon_nam()src/do_name.c
  monsndx()src/mondata.c
  rn2()src/rnd.c
  tmp_at()src/display.c
Called by: gulpum()src/uhitm.c
References Variables: monssrc/monst.c
  usrc/decl.c
  youmonstsrc/decl.c
  windowprocs

Local Function steal_it()

static void steal_it ( struct monst* mdef, struct attack* mattk )
Prototyped in: src/uhitm.c
Calls: Monnam()src/do_name.c
  You()src/pline.c
  could_seduce()src/mhitu.c
  doname()src/objnam.c
  gender()src/mondata.c
  hold_another_object()src/invent.c
  instapetrify()src/trap.c
  mon_nam()src/do_name.c
  mselftouch()src/trap.c
  obj_extract_self()src/mkobj.c
  panic()src/end.c
  pline()src/pline.c
  pronoun_gender()src/mondata.c
  possibly_unwield(), sprintf(), update_mon_intrinsics()
Called by: damageum()src/uhitm.c
References Variables: hesrc/decl.c
  hissrc/decl.c
  monssrc/monst.c
  usrc/decl.c
  uarmgsrc/decl.c
  youmonstsrc/decl.c