File src/trap.c


Included Files


Preprocessor definitions

#define burn_dmg( obj, descr )

Local Variables

a_your
static const char* a_your[2]
Used in: dotrap()
  mintrap()

A_Your
static const char* A_Your[2]
Used in: dotrap()

the_your
static const char* the_your[2]
Used in: disarm_beartrap()
  disarm_landmine()
  disarm_shooting_trap()

tower_of_flame
static const char tower_of_flame[]
Used in: dofiretrap()
  mintrap()

A_gush_of_water_hits
static const char* A_gush_of_water_hits
Used in: dotrap()
  mintrap()

oil
static const char oil[]
Used in: disarm_squeaky_board()

lava_killer
static char lava_killer[]
Used in: lava_effects()


Global Function activate_statue_trap()

struct monst* activate_statue_trap ( struct trap* trap, xchar x, xchar y, boolean shatter )
Prototyped in: include/extern.h
Calls: animate_statue()src/trap.c
  deltrap()src/trap.c
  feel_location()src/display.c
  newsym()src/display.c
  sobj_at()src/invent.c
Called by: dosearch0()src/detect.c
  dotrap()src/trap.c
References Variables: usrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c

Global Function animate_statue()

struct monst* animate_statue ( struct obj* statue, xchar x, xchar y, int cause, int* fail_reason )
Prototyped in: include/extern.h
Calls: You()src/pline.c
  a_monnam()src/do_name.c
  add_to_minv()src/mkobj.c
  christen_monst()src/do_name.c
  delobj()src/invent.c
  makemon()src/makemon.c
  obj_extract_self()src/mkobj.c
  pline()src/pline.c
  pline_The()src/pline.c
  seemimic()src/mon.c
  wary_dog()src/dog.c
  m_dowear(), montraits()
Called by: activate_statue_trap()src/trap.c
References Variables: levelsrc/decl.c
  monssrc/monst.c
  usrc/decl.c
  youmonstsrc/decl.c

Global Function b_trapped()

void b_trapped ( const char* item, int bodypart )
Prototyped in: include/extern.h
Calls: The()src/objnam.c
  exercise()src/attrib.c
  level_difficulty()src/dungeon.c
  losehp()src/hack.c
  make_stunned()src/potion.c
  pline()src/pline.c
  rnd()src/rnd.c
  wake_nearby()src/mon.c
Called by: dig()src/dig.c
  dokick()src/dokick.c
  doopen()src/lock.c
  openone()src/detect.c
  opentin()src/eat.c
  picklock()src/lock.c
  still_chewing()src/hack.c
  untrap()src/trap.c
References Variables: usrc/decl.c

Global Function burnarmor()

boolean burnarmor ( struct monst* victim )
Prototyped in: include/extern.h
Calls: rn2()src/rnd.c
  rust_dmg()src/trap.c
  xname()src/objnam.c
  sprintf(), which_armor()
Called by: dofiretrap()src/trap.c
  explode()src/explode.c
  mintrap()src/trap.c
References Variables: materialnmsrc/decl.c
  objectssrc/objects.c
  uarmsrc/decl.c
  uarmcsrc/decl.c
  uarmfsrc/decl.c
  uarmgsrc/decl.c
  uarmhsrc/decl.c
  uarmssrc/decl.c
  uarmusrc/decl.c
  youmonstsrc/decl.c

Global Function chest_trap()

boolean chest_trap ( struct obj* obj, int bodypart, boolean disarm )
Prototyped in: include/extern.h
Calls: The()src/objnam.c
  You()src/pline.c
  You_feel()src/pline.c
  body_part()src/polyself.c
  bot()src/botl.c
  costly_spot()src/shk.c
  d()src/rnd.c
  delete_contents()src/shk.c
  delobj()src/invent.c
  dmgtype()src/mondata.c
  dofiretrap()src/trap.c
  exercise()src/attrib.c
  hcolor()src/do_name.c
  impossible()src/pline.c
  in_rooms()src/hack.c
  inside_shop()src/shk.c
  losehp()src/hack.c
  make_angry_shk()src/shk.c
  make_hallucinated()src/potion.c
  make_stunned()src/potion.c
  nomul()src/hack.c
  pline()src/pline.c
  poisoned()src/mon.c
  rn2()src/rnd.c
  shieldeff()src/display.c
  shop_keeper()src/shk.c
  stolen_value()src/shk.c
  the()src/objnam.c
  wake_nearby()src/mon.c
  xname()src/objnam.c
  destroy_item(), get_obj_location(), sprintf()
Called by: kick_object()src/dokick.c
  picklock()src/lock.c
  untrap()src/trap.c
  use_container()src/pickup.c
References Variables: WIN_MESSAGEsrc/decl.c
  c_common_stringssrc/decl.c
  levelsrc/decl.c
  nomovemsgsrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c
  windowprocs

Global Function delfloortrap()

boolean delfloortrap ( struct trap* ttmp )
Prototyped in: include/extern.h
Calls: deltrap()src/trap.c
Called by: dighole()src/dig.c
  gush()src/fountain.c
References Variables: levelsrc/decl.c
  usrc/decl.c

Global Function deltrap()

void deltrap ( struct trap* trap )
Prototyped in: include/extern.h
Calls: free()
Called by: activate_statue_trap()src/trap.c
  close_drawbridge()src/dbridge.c
  cnv_trap_obj()src/trap.c
  deferred_goto()src/do.c
  delfloortrap()src/trap.c
  destroy_drawbridge()src/dbridge.c
  disarm_squeaky_board()src/trap.c
  dospinweb()src/polyself.c
  dotele()src/teleport.c
  dotrap()src/trap.c
  drop_ball()src/ball.c
  expulsion()src/quest.c
  flooreffects()src/do.c
  floorfood()src/eat.c
  getlev()src/restore.c
  jump()src/apply.c
  level_tele_trap()src/teleport.c
  load_maze()src/sp_lev.c
  mintrap()src/trap.c
  mkinvpos()src/mklev.c
  moverock()src/hack.c
  open_drawbridge()src/dbridge.c
  put_lregion_here()src/mkmaze.c
  repair_damage()src/shk.c
  scatter()src/explode.c
  tele_trap()src/teleport.c
References Variables: ftrapsrc/decl.c

Global Function dotrap()

void dotrap ( struct trap* trap )
Prototyped in: include/extern.h
Calls: Can_fall_thru()src/dungeon.c
  In_quest()src/dungeon.c
  You()src/pline.c
  You_feel()src/pline.c
  Your()src/pline.c
  activate_statue_trap()src/trap.c
  acurr()src/attrib.c
  ballfall()src/ball.c
  blow_up_landmine()src/trap.c
  body_part()src/polyself.c
  ceiling()src/engrave.c
  d()src/rnd.c
  deltrap()src/trap.c
  dmgtype()src/mondata.c
  dofiretrap()src/trap.c
  domagicportal()src/teleport.c
  domagictrap()src/trap.c
  dotrap()src/trap.c
  drain_en()src/trap.c
  exercise()src/attrib.c
  fall_asleep()src/timeout.c
  fall_through()src/trap.c
  impossible()src/pline.c
  launch_obj()src/trap.c
  level_tele_trap()src/teleport.c
  locomotion()src/mondata.c
  losehp()src/hack.c
  mksobj()src/mkobj.c
  mksobj_at()src/mkobj.c
  mon_nam()src/do_name.c
  newsym()src/display.c
  nomul()src/hack.c
  obfree()src/shk.c
  on_level()src/dungeon.c
  place_object()src/mkobj.c
  placebc()src/ball.c
  pline()src/pline.c
  poisoned()src/mon.c
  polyself()src/polyself.c
  rehumanize()src/polyself.c
  resists_magm()src/mondata.c
  rn2()src/rnd.c
  rnd()src/rnd.c
  rust_dmg()src/trap.c
  s_suffix()src/hacklib.c
  seetrap()src/trap.c
  selftouch()src/trap.c
  set_wounded_legs()src/do.c
  shieldeff()src/display.c
  snuff_lit()src/apply.c
  split_mon()src/potion.c
  stackobj()src/invent.c
  t_at()src/trap.c
  tele_trap()src/teleport.c
  thitu()src/mthrowu.c
  unplacebc()src/ball.c
  wake_nearby()src/mon.c
  weight()src/mkobj.c
  xname()src/objnam.c
  dmgval(), erode_weapon()
Called by: dosit()src/sit.c
  dospinweb()src/polyself.c
  dotrap()src/trap.c
  float_down()src/trap.c
  set_trap()src/apply.c
  spoteffects()src/hack.c
  try_disarm()src/trap.c
References Functions: Hear_again()src/eat.c
References Variables: A_Yoursrc/trap.c
  A_gush_of_water_hitssrc/trap.c
  a_yoursrc/trap.c
  afternmvsrc/decl.c
  defsymssrc/drawing.c
  dungeon_topologysrc/decl.c
  flagssrc/decl.c
  inventsrc/decl.c
  monssrc/monst.c
  objectssrc/objects.c
  usrc/decl.c
  uarmsrc/decl.c
  uarmcsrc/decl.c
  uarmgsrc/decl.c
  uarmhsrc/decl.c
  uarmssrc/decl.c
  uarmusrc/decl.c
  uballsrc/decl.c
  ublindfsrc/decl.c
  urolesrc/role.c
  uswapwepsrc/decl.c
  uwepsrc/decl.c
  vision_full_recalcsrc/decl.c
  youmonstsrc/decl.c

Global Function dountrap()

int dountrap ( void )
Prototyped in: include/extern.h
Calls: Your()src/pline.c
  body_part()src/polyself.c
  makeplural()src/objnam.c
  mon_nam()src/do_name.c
  near_capacity()src/hack.c
  pline()src/pline.c
  sticks()src/mondata.c
  untrap()src/trap.c
  welded()
Used in:  src/cmd.c
References Variables: objectssrc/objects.c
  usrc/decl.c
  uwepsrc/decl.c
  youmonstsrc/decl.c

Global Function drain_en()

void drain_en ( int n )
Prototyped in: include/extern.h
Calls: You_feel()src/pline.c
Called by: dotrap()src/trap.c
  hitmu()src/mhitu.c
References Variables: flagssrc/decl.c
  usrc/decl.c

Global Function drown()

boolean drown ( void )
Prototyped in: include/extern.h
Calls: You()src/pline.c
  Your()src/pline.c
  d()src/rnd.c
  dismount_steed()src/steed.c
  dmgtype()src/mondata.c
  done()src/end.c
  dotele()src/teleport.c
  emergency_disrobe()src/trap.c
  goodpos()src/teleport.c
  is_pool()src/dbridge.c
  losehp()src/hack.c
  number_leashed()src/apply.c
  on_level()src/dungeon.c
  placebc()src/ball.c
  pline()src/pline.c
  pline_The()src/pline.c
  rn2()src/rnd.c
  safe_teleds()src/teleport.c
  split_mon()src/potion.c
  teleds()src/teleport.c
  under_water()src/display.c
  unleash_all()src/apply.c
  unplacebc()src/ball.c
  water_damage()src/trap.c
  vision_recalc()
Called by: Amulet_off()src/do_wear.c
  dighole()src/dig.c
  e_died()src/dbridge.c
  float_down()src/trap.c
  spoteffects()src/hack.c
References Variables: dungeon_topologysrc/decl.c
  flagssrc/decl.c
  inventsrc/decl.c
  killersrc/decl.c
  killer_formatsrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  uballsrc/decl.c
  vision_full_recalcsrc/decl.c
  youmonstsrc/decl.c

Global Function fall_through()

void fall_through ( boolean td )
Prototyped in: include/extern.h
Calls: Can_fall_thru()src/dungeon.c
  In_hell()src/dungeon.c
  You()src/pline.c
  ceiling()src/engrave.c
  dunlev()src/dungeon.c
  dunlevs_in_dungeon()src/dungeon.c
  find_hell()src/dungeon.c
  impact_drop()src/dokick.c
  next_to_u()src/apply.c
  on_level()src/dungeon.c
  pline()src/pline.c
  pline_The()src/pline.c
  rn2()src/rnd.c
  schedule_goto()src/do.c
  shopdig()src/shk.c
  surface()src/engrave.c
  t_at()src/trap.c
  sprintf()
Called by: dokick()src/dokick.c
  dotrap()src/trap.c
References Variables: WIN_MESSAGEsrc/decl.c
  dungeon_topologysrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c
  windowprocs

Global Function fill_pit()

void fill_pit ( int x, int y )
Prototyped in: include/extern.h
Calls: flooreffects()src/do.c
  obj_extract_self()src/mkobj.c
  sobj_at()src/invent.c
  t_at()src/trap.c
Called by: domove()src/hack.c
  drop_ball()src/ball.c
  float_up()src/trap.c
  goto_level()src/do.c
  help_monster_out()src/trap.c
  m_detach()src/mon.c
  mintrap()src/trap.c
  teleds()src/teleport.c
  use_magic_whistle()src/apply.c

Global Function float_down()

int float_down ( long hmask, long emask )
Prototyped in: include/extern.h
Calls: Can_fall_thru()src/dungeon.c
  You()src/pline.c
  You_feel()src/pline.c
  assign_level()src/dungeon.c
  dismount_steed()src/steed.c
  dmgtype()src/mondata.c
  dotrap()src/trap.c
  drown()src/trap.c
  is_lava()src/dbridge.c
  is_pool()src/dbridge.c
  lava_effects()src/trap.c
  losehp()src/hack.c
  movobj()src/hack.c
  newsym()src/display.c
  on_level()src/dungeon.c
  pickup()src/pickup.c
  pline()src/pline.c
  rnd()src/rnd.c
  selftouch()src/trap.c
  surface()src/engrave.c
  t_at()src/trap.c
Called by: Boots_off()src/do_wear.c
  Ring_off_or_gone()src/do_wear.c
  arti_invoke()src/artifact.c
  dismount_steed()src/steed.c
  dodown()src/do.c
  nh_timeout()src/timeout.c
References Variables: dungeon_topologysrc/decl.c
  usrc/decl.c
  uballsrc/decl.c
  uchainsrc/decl.c
  vision_full_recalcsrc/decl.c
  youmonstsrc/decl.c

Global Function float_up()

void float_up ( void )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  You()src/pline.c
  Your()src/pline.c
  body_part()src/polyself.c
  dismount_steed()src/steed.c
  dmgtype()src/mondata.c
  fill_pit()src/trap.c
  makeplural()src/objnam.c
  mon_nam()src/do_name.c
  on_level()src/dungeon.c
  pline()src/pline.c
  spoteffects()src/hack.c
  surface()src/engrave.c
Called by: Boots_on()src/do_wear.c
  Ring_on()src/do_wear.c
  arti_invoke()src/artifact.c
  eataccessory()src/eat.c
  peffects()src/potion.c
References Variables: dungeon_topologysrc/decl.c
  usrc/decl.c
  vision_full_recalcsrc/decl.c
  youmonstsrc/decl.c

Global Function grease_protect()

void grease_protect ( struct obj* otmp, const char* ostr, boolean plu, struct monst* victim )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  Your()src/pline.c
  aobjnam()src/objnam.c
  pline()src/pline.c
  pline_The()src/pline.c
  rn2()src/rnd.c
  worm_known()
Called by: erode_armor()src/do_wear.c
  get_wet()src/potion.c
  rust_dmg()src/trap.c
References Variables: usrc/decl.c
  ublindfsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c
  windowprocs

Global Function instapetrify()

void instapetrify ( const char* str )
Prototyped in: include/extern.h
Calls: You()src/pline.c
  done()src/end.c
  poly_when_stoned()src/mondata.c
  polymon()src/polyself.c
Called by: Gloves_off()src/do_wear.c
  feel_cockatrice()src/invent.c
  help_monster_out()src/trap.c
  mount_steed()src/steed.c
  pickup_object()src/pickup.c
  polymon()src/polyself.c
  selftouch()src/trap.c
  throw_obj()src/dothrow.c
  use_saddle()src/steed.c
  use_tinning_kit()src/apply.c
  use_whip()src/apply.c
References Variables: killersrc/decl.c
  killer_formatsrc/decl.c
  usrc/decl.c
  youmonstsrc/decl.c

Global Function launch_obj()

int launch_obj ( short otyp, int x1, int y1, int x2, int y2, int style )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  closed_door()src/monmove.c
  curs_on_u()src/display.c
  distmin()src/hacklib.c
  dmgtype()src/mondata.c
  down_gate()src/dokick.c
  flooreffects()src/do.c
  mpickobj()src/steal.c
  newsym()src/display.c
  nomul()src/hack.c
  obj_extract_self()src/mkobj.c
  ohitmon()src/mthrowu.c
  place_object()src/mkobj.c
  pline()src/pline.c
  pline_The()src/pline.c
  rn2()src/rnd.c
  sgn()src/hacklib.c
  ship_object()src/dokick.c
  sobj_at()src/invent.c
  splitobj()src/mkobj.c
  stop_occupation()src/allmain.c
  thitu()src/mthrowu.c
  tmp_at()src/display.c
  dmgval(), memset()
Called by: dotrap()src/trap.c
  mintrap()src/trap.c
References Variables: bhitpossrc/decl.c
  diggingsrc/decl.c
  levelsrc/decl.c
  multisrc/decl.c
  otg_tempsrc/decl.c
  usrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c
  windowprocs

Global Function lava_effects()

boolean lava_effects ( void )
Prototyped in: include/extern.h
Calls: Amulet_off()src/do_wear.c
  Armor_gone()src/do_wear.c
  Blindf_off()src/do_wear.c
  Boots_off()src/do_wear.c
  Cloak_off()src/do_wear.c
  Gloves_off()src/do_wear.c
  Helmet_off()src/do_wear.c
  Ring_gone()src/do_wear.c
  Shield_off()src/do_wear.c
  You()src/pline.c
  Your()src/pline.c
  aobjnam()src/objnam.c
  burn_away_slime()src/timeout.c
  d()src/rnd.c
  done()src/end.c
  losehp()src/hack.c
  on_level()src/dungeon.c
  pline()src/pline.c
  pline_The()src/pline.c
  rn2()src/rnd.c
  safe_teleds()src/teleport.c
  surface()src/engrave.c
  useup()src/invent.c
  useupall()src/invent.c
  xname()src/objnam.c
  destroy_item(), setnotworn(), uqwepgone(), uswapwepgone(), uwepgone()
Called by: dighole()src/dig.c
  e_died()src/dbridge.c
  float_down()src/trap.c
  readobjnam()src/objnam.c
  spoteffects()src/hack.c
References Variables: dungeon_topologysrc/decl.c
  flagssrc/decl.c
  inventsrc/decl.c
  killersrc/decl.c
  killer_formatsrc/decl.c
  lava_killersrc/trap.c
  monssrc/monst.c
  objectssrc/objects.c
  usrc/decl.c
  uamulsrc/decl.c
  uarmsrc/decl.c
  uarmcsrc/decl.c
  uarmfsrc/decl.c
  uarmgsrc/decl.c
  uarmhsrc/decl.c
  uarmssrc/decl.c
  uarmusrc/decl.c
  ublindfsrc/decl.c
  uleftsrc/decl.c
  uquiversrc/decl.c
  urightsrc/decl.c
  uswapwepsrc/decl.c
  uwepsrc/decl.c
  youmonstsrc/decl.c

Global Function maketrap()

struct trap* maketrap ( int x, int y, int typ )
Prototyped in: include/extern.h
Calls: add_damage()src/shk.c
  add_to_container()src/mkobj.c
  alloc()src/alloc.c
  in_rooms()src/hack.c
  makemon()src/makemon.c
  mkcorpstat()src/mkobj.c
  mkroll_launch()src/trap.c
  mongone()src/mon.c
  obj_extract_self()src/mkobj.c
  rndmonnum()src/mkobj.c
  t_at()src/trap.c
  unearth_objs()src/dig.c
Called by: digactualhole()src/dig.c
  do_earthquake()src/music.c
  dospinweb()src/polyself.c
  fixup_special()src/mkmaze.c
  load_maze()src/sp_lev.c
  makelevel()src/mklev.c
  makeniche()src/mklev.c
  mkinvpos()src/mklev.c
  mkportal()src/mkmaze.c
  mktrap()src/mklev.c
  readobjnam()src/objnam.c
  set_trap()src/apply.c
  use_defensive()src/muse.c
References Variables: flagssrc/decl.c
  ftrapsrc/decl.c
  levelsrc/decl.c
  monssrc/monst.c
  usrc/decl.c

Global Function minstapetrify()

void minstapetrify ( struct monst* mon, boolean byplayer )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  mon_to_stone()src/mon.c
  monstone()src/mon.c
  pline()src/pline.c
  poly_when_stoned()src/mondata.c
  xkilled()src/mon.c
Called by: gulpmu()src/mhitu.c
  mselftouch()src/trap.c
  steal()src/steal.c
References Variables: stonedsrc/decl.c
  viz_arraysrc/decl.c

Global Function mintrap()

int mintrap ( struct monst* mtmp )
Prototyped in: include/extern.h
Calls: Can_fall_thru()src/dungeon.c
  Monnam()src/do_name.c
  You()src/pline.c
  You_hear()src/pline.c
  blow_up_landmine()src/trap.c
  burnarmor()src/trap.c
  d()src/rnd.c
  deltrap()src/trap.c
  dist2()src/hacklib.c
  dmgtype()src/mondata.c
  fill_pit()src/trap.c
  impossible()src/pline.c
  is_ice()src/dbridge.c
  launch_obj()src/trap.c
  mbodypart()src/polyself.c
  mintrap()src/trap.c
  mksobj()src/mkobj.c
  mlevel_tele_trap()src/teleport.c
  mon_nam()src/do_name.c
  mondied()src/mon.c
  monsndx()src/mondata.c
  mselftouch()src/trap.c
  mtele_trap()src/teleport.c
  newcham()src/mon.c
  newsym()src/display.c
  pline()src/pline.c
  pline_The()src/pline.c
  resists_magm()src/mondata.c
  rn2()src/rnd.c
  rnd()src/rnd.c
  rnl()src/rnd.c
  rust_dmg()src/trap.c
  seetrap()src/trap.c
  setmangry()src/mon.c
  shieldeff()src/display.c
  snuff_lit()src/apply.c
  sobj_at()src/invent.c
  split_mon()src/potion.c
  surface()src/engrave.c
  t_at()src/trap.c
  thitm()src/trap.c
  unconscious()src/trap.c
  wake_nearto()src/mon.c
  weight()src/mkobj.c
  burn_floor_paper(), count_wsegs(), destroy_mitem(), erode_weapon(), melt_ice(), resist(), which_armor(), worm_known()
Called by: digactualhole()src/dig.c
  dismount_steed()src/steed.c
  domove()src/hack.c
  dowaterdemon()src/fountain.c
  dowaternymph()src/fountain.c
  dowatersnakes()src/fountain.c
  m_move()src/monmove.c
  mintrap()src/trap.c
  use_magic_whistle()src/apply.c
References Variables: A_gush_of_water_hitssrc/trap.c
  a_yoursrc/trap.c
  c_common_stringssrc/decl.c
  defsymssrc/drawing.c
  dungeon_topologysrc/decl.c
  flagssrc/decl.c
  monssrc/monst.c
  multisrc/decl.c
  nomovemsgsrc/decl.c
  objectssrc/objects.c
  tower_of_flamesrc/trap.c
  usrc/decl.c
  ublindfsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c

Global Function mselftouch()

void mselftouch ( struct monst* mon, const char* arg, boolean byplayer )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  minstapetrify()src/trap.c
  mon_nam()src/do_name.c
  pline()src/pline.c
Called by: do_earthquake()src/music.c
  mdamagem()src/mhitm.c
  mintrap()src/trap.c
  newcham()src/mon.c
References Variables: monssrc/monst.c
  viz_arraysrc/decl.c

Global Function rust_dmg()

boolean rust_dmg ( struct obj* otmp, const char* ostr, int type, boolean print, struct monst* victim )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  Your()src/pline.c
  grease_protect()src/trap.c
  is_flammable()src/mkobj.c
  mon_nam()src/do_name.c
  pline()src/pline.c
  rnl()src/rnd.c
  strstri()src/hacklib.c
  worm_known()
Called by: burnarmor()src/trap.c
  dokick()src/dokick.c
  dosit()src/sit.c
  dotrap()src/trap.c
  hurtarmor()src/mhitu.c
  mintrap()src/trap.c
References Variables: flagssrc/decl.c
  objectssrc/objects.c
  usrc/decl.c
  ublindfsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c

Global Function seetrap()

void seetrap ( struct trap* trap )
Prototyped in: include/extern.h
Calls: newsym()src/display.c
Called by: dotrap()src/trap.c
  goto_level()src/do.c
  mintrap()src/trap.c
  mlevel_tele_trap()src/teleport.c
  moverock()src/hack.c
  mtele_trap()src/teleport.c
  use_defensive()src/muse.c
  use_misc()src/muse.c
  use_pick_axe()src/dig.c

Global Function selftouch()

void selftouch ( const char* arg )
Prototyped in: include/extern.h
Calls: an()src/objnam.c
  instapetrify()src/trap.c
  pline()src/pline.c
  sprintf()
Called by: destroy_arm()src/do_wear.c
  do_earthquake()src/music.c
  dotrap()src/trap.c
  float_down()src/trap.c
  goto_level()src/do.c
  polyself()src/polyself.c
  rehumanize()src/polyself.c
References Variables: monssrc/monst.c
  usrc/decl.c
  uswapwepsrc/decl.c
  uwepsrc/decl.c
  youmonstsrc/decl.c

Global Function t_at()

struct trap* t_at ( int x, int y )
Prototyped in: include/extern.h
Called by: close_drawbridge()src/dbridge.c
  deferred_goto()src/do.c
  destroy_drawbridge()src/dbridge.c
  dig()src/dig.c
  dig_check()src/dig.c
  dighole()src/dig.c
  dodown()src/do.c
  dog_move()src/dogmove.c
  domonnoise()src/sounds.c
  domove()src/hack.c
  doorlock()src/lock.c
  dosearch0()src/detect.c
  dosit()src/sit.c
  dospinweb()src/polyself.c
  dotele()src/teleport.c
  dotrap()src/trap.c
  dowaterdemon()src/fountain.c
  dowaternymph()src/fountain.c
  dowatersnakes()src/fountain.c
  down_gate()src/dokick.c
  drag_ball()src/ball.c
  drop_ball()src/ball.c
  drop_throw()src/mthrowu.c
  fall_through()src/trap.c
  feel_location()src/display.c
  fill_pit()src/trap.c
  find_defensive()src/muse.c
  find_misc()src/muse.c
  findone()src/detect.c
  float_down()src/trap.c
  flooreffects()src/do.c
  floorfood()src/eat.c
  gulpmu()src/mhitu.c
  gush()src/fountain.c
  its_dead()src/apply.c
  jump()src/apply.c
  kick_object()src/dokick.c
  load_maze()src/sp_lev.c
  look_here()src/invent.c
  lookaround()src/hack.c
  make_grave()src/engrave.c
  maketrap()src/trap.c
  map_location()src/display.c
  mfndpos()src/mon.c
  mintrap()src/trap.c
  mkcavepos()src/dig.c
  mkinvpos()src/mklev.c
  mkswamp()src/mkroom.c
  movebubbles()src/mkmaze.c
  moverock()src/hack.c
  newsym()src/display.c
  occupied()src/mklev.c
  open_drawbridge()src/dbridge.c
  openone()src/detect.c
  put_lregion_here()src/mkmaze.c
  repair_damage()src/shk.c
  scatter()src/explode.c
  ship_object()src/dokick.c
  spoteffects()src/hack.c
  teleok()src/teleport.c
  unmap_object()src/display.c
  untrap()src/trap.c
  use_defensive()src/muse.c
  use_misc()src/muse.c
  use_pick_axe()src/dig.c
  use_trap()src/apply.c
  xkilled()src/mon.c
References Variables: ftrapsrc/decl.c

Global Function unconscious()

boolean unconscious ( void )
Prototyped in: include/extern.h
Calls: strncmp()
Called by: doseduce()src/mhitu.c
  mintrap()src/trap.c
  nh_timeout()src/timeout.c
  tele()src/teleport.c
  you_aggravate()src/muse.c
References Variables: multisrc/decl.c
  nomovemsgsrc/decl.c
  usrc/decl.c

Global Function untrap()

int untrap ( boolean force )
Prototyped in: include/extern.h
Calls: There()src/pline.c
  You()src/pline.c
  acurr()src/attrib.c
  add_damage()src/shk.c
  b_trapped()src/trap.c
  chest_trap()src/trap.c
  disarm_beartrap()src/trap.c
  disarm_landmine()src/trap.c
  disarm_shooting_trap()src/trap.c
  disarm_squeaky_board()src/trap.c
  dmgtype()src/mondata.c
  doname()src/objnam.c
  exercise()src/attrib.c
  getdir()src/cmd.c
  help_monster_out()src/trap.c
  in_rooms()src/hack.c
  level_difficulty()src/dungeon.c
  newsym()src/display.c
  pline()src/pline.c
  rn2()src/rnd.c
  rnd()src/rnd.c
  t_at()src/trap.c
  the()src/objnam.c
  xname()src/objnam.c
  stumble_onto_mimic(), unblock_point()
Called by: arti_invoke()src/artifact.c
  dountrap()src/trap.c
References Variables: levelsrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  urolesrc/role.c
  ynqcharssrc/decl.c
  youmonstsrc/decl.c
  windowprocs

Global Function water_damage()

void water_damage ( struct obj* obj, boolean force, boolean here )
Prototyped in: include/extern.h
Calls: pline()src/pline.c
  rn2()src/rnd.c
  rnl()src/rnd.c
  snuff_lit()src/apply.c
  the()src/objnam.c
  water_damage()src/trap.c
  xname()src/objnam.c
Called by: drown()src/trap.c
  flooreffects()src/do.c
  gush()src/fountain.c
  minwater()src/mon.c
  readobjnam()src/objnam.c
  water_damage()src/trap.c
References Variables: objectssrc/objects.c
  usrc/decl.c
  uarmsrc/decl.c
  uarmcsrc/decl.c

Local Function blow_up_landmine()

static void blow_up_landmine ( struct trap* trap )
Prototyped in: src/trap.c
Calls: del_engr_at()src/engrave.c
  scatter()src/explode.c
  wake_nearto()src/mon.c
Called by: dotrap()src/trap.c
  mintrap()src/trap.c
References Variables: levelsrc/decl.c

Local Function cnv_trap_obj()

static void cnv_trap_obj ( int otyp, int cnt, struct trap* ttmp )
Prototyped in: src/trap.c
Calls: deltrap()src/trap.c
  mksobj()src/mkobj.c
  newsym()src/display.c
  place_object()src/mkobj.c
  sellobj()src/shk.c
  stackobj()src/invent.c
  weight()src/mkobj.c
Called by: disarm_beartrap()src/trap.c
  disarm_landmine()src/trap.c
  disarm_shooting_trap()src/trap.c

Local Function disarm_beartrap()

static int disarm_beartrap ( struct trap* ttmp )
Prototyped in: src/trap.c
Calls: You()src/pline.c
  cnv_trap_obj()src/trap.c
  mon_nam()src/do_name.c
  reward_untrap()src/trap.c
  try_disarm()src/trap.c
Called by: untrap()src/trap.c
References Variables: levelsrc/decl.c
  the_yoursrc/trap.c

Local Function disarm_landmine()

static int disarm_landmine ( struct trap* ttmp )
Prototyped in: src/trap.c
Calls: You()src/pline.c
  cnv_trap_obj()src/trap.c
  try_disarm()src/trap.c
Called by: untrap()src/trap.c
References Variables: the_yoursrc/trap.c

Local Function disarm_shooting_trap()

static int disarm_shooting_trap ( struct trap* ttmp, int otyp )
Prototyped in: src/trap.c
Calls: You()src/pline.c
  cnv_trap_obj()src/trap.c
  rnl()src/rnd.c
  try_disarm()src/trap.c
Called by: untrap()src/trap.c
References Variables: the_yoursrc/trap.c

Local Function disarm_squeaky_board()

static int disarm_squeaky_board ( struct trap* ttmp )
Prototyped in: src/trap.c
Calls: You()src/pline.c
  check_unpaid()src/shk.c
  deltrap()src/trap.c
  discover_object()src/o_init.c
  getobj()src/invent.c
  more_experienced()src/exper.c
  newsym()src/display.c
  try_disarm()src/trap.c
  useup()src/invent.c
Called by: untrap()src/trap.c
References Variables: oilsrc/trap.c
  usrc/decl.c

Local Function dofiretrap()

static void dofiretrap ( struct obj* box )
Prototyped in: src/trap.c
Calls: You()src/pline.c
  burn_away_slime()src/timeout.c
  burnarmor()src/trap.c
  d()src/rnd.c
  is_ice()src/dbridge.c
  is_pool()src/dbridge.c
  losehp()src/hack.c
  pline()src/pline.c
  rn2()src/rnd.c
  rnd()src/rnd.c
  shieldeff()src/display.c
  surface()src/engrave.c
  the()src/objnam.c
  xname()src/objnam.c
  burn_floor_paper(), destroy_item(), melt_ice()
Called by: chest_trap()src/trap.c
  domagictrap()src/trap.c
  dotrap()src/trap.c
References Variables: flagssrc/decl.c
  tower_of_flamesrc/trap.c
  usrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c

Local Function domagictrap()

static void domagictrap ( void )
Prototyped in: src/trap.c
Calls: In_quest()src/dungeon.c
  You()src/pline.c
  You_feel()src/pline.c
  You_hear()src/pline.c
  Your()src/pline.c
  adjattrib()src/attrib.c
  at_dgn_entrance()src/dungeon.c
  body_part()src/polyself.c
  dmgtype()src/mondata.c
  dofiretrap()src/trap.c
  isok()src/cmd.c
  make_blinded()src/potion.c
  makemon()src/makemon.c
  on_level()src/dungeon.c
  pline()src/pline.c
  resists_blnd()src/mondata.c
  rn2()src/rnd.c
  rnd()src/rnd.c
  tamedog()src/dog.c
  uncurse()src/mkobj.c
  unpunish()src/read.c
Called by: dotrap()src/trap.c
References Variables: dungeon_topologysrc/decl.c
  flagssrc/decl.c
  inventsrc/decl.c
  levelsrc/decl.c
  usrc/decl.c
  uballsrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c

Local Function emergency_disrobe()

static boolean emergency_disrobe ( boolean* lostsome )
Prototyped in: src/trap.c
Calls: Helmet_off()src/do_wear.c
  Shield_off()src/do_wear.c
  assigninvlet()src/invent.c
  dropx()src/do.c
  inv_cnt()src/hack.c
  mkgoldobj()src/invent.c
  near_capacity()src/hack.c
  pline()src/pline.c
  rn2()src/rnd.c
  setuwep(), welded()
Called by: drown()src/trap.c
References Variables: inventsrc/decl.c
  usrc/decl.c
  uamulsrc/decl.c
  uarmsrc/decl.c
  uarmcsrc/decl.c
  uarmfsrc/decl.c
  uarmgsrc/decl.c
  uarmhsrc/decl.c
  uarmssrc/decl.c
  uarmusrc/decl.c
  uballsrc/decl.c
  ublindfsrc/decl.c
  uleftsrc/decl.c
  urightsrc/decl.c
  uwepsrc/decl.c

Local Function help_monster_out()

static int help_monster_out ( struct monst* mtmp, struct trap* ttmp )
Prototyped in: src/trap.c
Calls: Monnam()src/do_name.c
  You()src/pline.c
  an()src/objnam.c
  body_part()src/polyself.c
  check_capacity()src/hack.c
  fill_pit()src/trap.c
  instapetrify()src/trap.c
  inv_weight()src/hack.c
  makeplural()src/objnam.c
  mon_nam()src/do_name.c
  pline()src/pline.c
  poly_when_stoned()src/mondata.c
  polymon()src/polyself.c
  reward_untrap()src/trap.c
  try_lift()src/trap.c
  untrap_prob()src/trap.c
  sprintf()
Called by: untrap()src/trap.c
References Variables: WIN_MESSAGEsrc/decl.c
  monssrc/monst.c
  usrc/decl.c
  uarmgsrc/decl.c
  youmonstsrc/decl.c
  windowprocs

Local Function isclearpath()

static boolean isclearpath ( coord* cc, int distance, schar dx, schar dy )
Prototyped in: src/trap.c
Calls: closed_door()src/monmove.c
  isok()src/cmd.c
Called by: mkroll_launch()src/trap.c
References Variables: levelsrc/decl.c

Local Function mkroll_launch()

static int mkroll_launch ( struct trap* ttmp, xchar x, xchar y, short otyp, long ocount )
Prototyped in: src/trap.c
Calls: is_pool()src/dbridge.c
  isclearpath()src/trap.c
  mksobj()src/mkobj.c
  newsym()src/display.c
  place_object()src/mkobj.c
  rn2()src/rnd.c
  stackobj()src/invent.c
  weight()src/mkobj.c
Called by: maketrap()src/trap.c
References Variables: xdirsrc/decl.c
  ydirsrc/decl.c

Local Function move_into_trap()

static void move_into_trap ( struct trap* ttmp )
Prototyped in: src/trap.c
Calls: check_leash()src/apply.c
  drag_ball()src/ball.c
  exercise()src/attrib.c
  move_bc()src/ball.c
  newsym()src/display.c
  spoteffects()src/hack.c
  vision_recalc()
Called by: try_disarm()src/trap.c
References Variables: usrc/decl.c
  uballsrc/decl.c

Local Function reward_untrap()

static void reward_untrap ( struct trap* ttmp, struct monst* mtmp )
Prototyped in: src/trap.c
Calls: Monnam()src/do_name.c
  You_feel()src/pline.c
  adjalign()src/attrib.c
  pline()src/pline.c
  rn2()src/rnd.c
  rnl()src/rnd.c
  set_malign()src/makemon.c
Called by: disarm_beartrap()src/trap.c
  help_monster_out()src/trap.c
References Variables: usrc/decl.c

Local Function thitm()

static boolean thitm ( int tlev, struct monst* mon, struct obj* obj, int d_override )
Prototyped in: src/trap.c
Calls: Monnam()src/do_name.c
  dealloc_obj()src/mkobj.c
  doname()src/objnam.c
  monkilled()src/mon.c
  newsym()src/display.c
  place_object()src/mkobj.c
  pline()src/pline.c
  rnd()src/rnd.c
  stackobj()src/invent.c
  dmgval(), find_mac()
Called by: mintrap()src/trap.c
References Variables: viz_arraysrc/decl.c

Local Function try_disarm()

static int try_disarm ( struct trap* ttmp, boolean force_failure )
Prototyped in: src/trap.c
Calls: Monnam()src/do_name.c
  There()src/pline.c
  You()src/pline.c
  abuse_dog()src/dog.c
  can_reach_floor()src/engrave.c
  dotrap()src/trap.c
  killed()src/mon.c
  mon_nam()src/do_name.c
  move_into_trap()src/trap.c
  pline()src/pline.c
  rnd()src/rnd.c
  rnl()src/rnd.c
  sobj_at()src/invent.c
  untrap_prob()src/trap.c
Called by: disarm_beartrap()src/trap.c
  disarm_landmine()src/trap.c
  disarm_shooting_trap()src/trap.c
  disarm_squeaky_board()src/trap.c
References Variables: defsymssrc/drawing.c
  levelsrc/decl.c
  usrc/decl.c
  youmonstsrc/decl.c

Local Function try_lift()

static int try_lift ( struct monst* mtmp, struct trap* ttmp, int wt, boolean stuff )
Prototyped in: src/trap.c
Calls: Monnam()src/do_name.c
  pline()src/pline.c
  rnl()src/rnd.c
  set_malign()src/makemon.c
  weight_cap()src/hack.c
Called by: help_monster_out()src/trap.c

Local Function untrap_prob()

static int untrap_prob ( struct trap* ttmp )
Prototyped in: src/trap.c
Calls: dmgtype()src/mondata.c
  rn2()src/rnd.c
Called by: help_monster_out()src/trap.c
  try_disarm()src/trap.c
References Variables: usrc/decl.c
  ublindfsrc/decl.c
  urolesrc/role.c
  youmonstsrc/decl.c