Defines | Functions | Variables

trap.c File Reference

#include "hack.h"
Include dependency graph for trap.c:

Defines

#define burn_dmg(obj, descr)   rust_dmg(obj, descr, 0, FALSE, victim)

Functions

STATIC_DCL void FDECL (dofiretrap,(struct obj *))
STATIC_DCL void NDECL (domagictrap)
STATIC_DCL boolean FDECL (emergency_disrobe,(boolean *))
STATIC_DCL int FDECL (untrap_prob,(struct trap *ttmp))
STATIC_DCL void FDECL (cnv_trap_obj,(int, int, struct trap *))
STATIC_DCL void FDECL (move_into_trap,(struct trap *))
STATIC_DCL int FDECL (try_disarm,(struct trap *, BOOLEAN_P))
STATIC_DCL void FDECL (reward_untrap,(struct trap *, struct monst *))
STATIC_DCL int FDECL (disarm_holdingtrap,(struct trap *))
STATIC_DCL int FDECL (disarm_landmine,(struct trap *))
STATIC_DCL int FDECL (disarm_squeaky_board,(struct trap *))
STATIC_DCL int FDECL (disarm_shooting_trap,(struct trap *, int))
STATIC_DCL int FDECL (try_lift,(struct monst *, struct trap *, int, BOOLEAN_P))
STATIC_DCL int FDECL (help_monster_out,(struct monst *, struct trap *))
STATIC_DCL boolean FDECL (thitm,(int, struct monst *, struct obj *, int, BOOLEAN_P))
STATIC_DCL int FDECL (mkroll_launch,(struct trap *, XCHAR_P, XCHAR_P, SHORT_P, long))
STATIC_DCL boolean FDECL (isclearpath,(coord *, int, SCHAR_P, SCHAR_P))
boolean burnarmor (struct monst *victim)
boolean rust_dmg (struct obj *otmp, const char *ostr, int type, boolean print, struct monst *victim)
void grease_protect (struct obj *otmp, const char *ostr, struct monst *victim)
struct trapmaketrap (int x, int y, int typ)
void fall_through (boolean td)
struct monstanimate_statue (struct obj *statue, xchar x, xchar y, int cause, int *fail_reason)
struct monstactivate_statue_trap (struct trap *trap, xchar x, xchar y, boolean shatter)
void dotrap (struct trap *trap, unsigned trflags)
void blow_up_landmine (struct trap *trap)
int launch_obj (short otyp, int x1, int y1, int x2, int y2, int style)
void seetrap (struct trap *trap)
STATIC_OVL int mkroll_launch (struct trap *ttmp, xchar x, xchar y, short otyp, long ocount)
STATIC_OVL boolean isclearpath (coord *cc, int distance, schar dx, schar dy)
int mintrap (struct monst *mtmp)
 if (trapkilled)
void minstapetrify (struct monst *mon, boolean byplayer)
void selftouch (char *arg) const
void mselftouch (struct monst *mon, const char *arg, boolean byplayer)
void float_up ()
void fill_pit (int x, int y)
int float_down (long hmask, long emask)
STATIC_OVL void dofiretrap (struct obj *box)
STATIC_OVL void domagictrap ()
int fire_damage (struct obj *chain, boolean force, boolean here, xchar x, xchar y)
boolean water_damage (struct obj *obj, boolean force, boolean here)
STATIC_OVL boolean emergency_disrobe (boolean *lostsome)
boolean drown ()
void drain_en (int n)
int dountrap ()
STATIC_OVL int untrap_prob (struct trap *ttmp)
STATIC_OVL void cnv_trap_obj (int otyp, int cnt, struct trap *ttmp)
STATIC_OVL void move_into_trap (struct trap *ttmp)
STATIC_OVL int try_disarm (struct trap *ttmp, boolean force_failure)
STATIC_OVL void reward_untrap (struct trap *ttmp, struct monst *mtmp)
STATIC_OVL int disarm_holdingtrap (struct trap *ttmp)
STATIC_OVL int disarm_landmine (struct trap *ttmp)
STATIC_OVL int disarm_squeaky_board (struct trap *ttmp)
STATIC_OVL int disarm_shooting_trap (struct trap *ttmp, int otyp)
STATIC_OVL int try_lift (struct monst *mtmp, struct trap *ttmp, int wt, boolean stuff)
STATIC_OVL int help_monster_out (struct monst *mtmp, struct trap *ttmp)
int untrap (boolean force)
boolean chest_trap (struct obj *obj, int bodypart, boolean disarm)
struct trapt_at (int x, int y)
void deltrap (struct trap *trap)
boolean delfloortrap (struct trap *ttmp)
void b_trapped (const char *item, int bodypart)
STATIC_OVL boolean thitm (int tlev, struct monst *mon, struct obj *obj, int d_override, boolean nocorpse)
boolean unconscious ()
boolean lava_effects ()

Variables

const char *const destroy_strings []
STATIC_VAR const char *const a_your [2] = { "a", "your" }
STATIC_VAR const char *const A_Your [2] = { "A", "Your" }
STATIC_VAR const char tower_of_flame [] = "tower of flame"
STATIC_VAR const char *const A_gush_of_water_hits = "A gush of water hits"
STATIC_VAR const char *const blindgas [6]
static NEARDATA const char oil [] = { ALL_CLASSES, TOOL_CLASS, POTION_CLASS, 0 }
static const char lava_killer [] = "molten lava"

Define Documentation

#define burn_dmg (   obj,
  descr 
)    rust_dmg(obj, descr, 0, FALSE, victim)

Referenced by burnarmor().


Function Documentation

struct monst* activate_statue_trap ( struct trap trap,
xchar  x,
xchar  y,
boolean  shatter 
) [read]

References ANIMATE_NORMAL, ANIMATE_SHATTER, animate_statue(), AS_MON_IS_UNIQUE, Blind, deltrap(), feel_location(), newsym(), otmp, obj::otyp, sobj_at(), and STATUE.

Referenced by bhitpile(), break_statue(), dosearch0(), and dotrap().

Here is the call graph for this function:

Here is the caller graph for this function:

struct monst* animate_statue ( struct obj statue,
xchar  x,
xchar  y,
int  cause,
int *  fail_reason 
) [read]
void b_trapped ( const char *  item,
int  bodypart 
)

References A_CON, A_STR, exercise(), FALSE, HStun, KILLED_BY_AN, level_difficulty(), losehp(), make_stunned(), pline(), rnd(), The(), TRUE, and wake_nearby().

Referenced by dig(), dokick(), openone(), opentin(), picklock(), still_chewing(), and untrap().

Here is the call graph for this function:

Here is the caller graph for this function:

void blow_up_landmine ( struct trap trap )

References D_BROKEN, del_engr_at(), FALSE, IS_DOOR, levl, MAY_DESTROY, MAY_FRACTURE, MAY_HIT, PIT, scatter(), seetrap(), VIS_EFFECTS, and wake_nearto().

Referenced by dotrap(), mintrap(), and moverock().

Here is the call graph for this function:

Here is the caller graph for this function:

boolean burnarmor ( struct monst victim )

References BUFSZ, burn_dmg, cloak_simple_name(), FALSE, materialnm, objects, obj::otyp, rn2(), Sprintf, TRUE, uarm, uarmc, uarmf, uarmg, uarmh, uarms, W_ARM, W_ARMC, W_ARMF, W_ARMG, W_ARMH, W_ARMS, which_armor(), xname(), and youmonst.

Referenced by cast_cleric_spell(), dofiretrap(), explode(), mintrap(), zapyourself(), zhitm(), and zhitu().

Here is the call graph for this function:

Here is the caller graph for this function:

boolean chest_trap ( struct obj obj,
int  bodypart,
boolean  disarm 
)
STATIC_OVL void cnv_trap_obj ( int  otyp,
int  cnt,
struct trap ttmp 
)

References DART, deltrap(), FALSE, mksobj(), newsym(), obj::owt, place_object(), obj::quan, sellobj(), stackobj(), TRUE, trap::tx, trap::ty, and weight().

Referenced by disarm_holdingtrap(), disarm_landmine(), and disarm_shooting_trap().

Here is the call graph for this function:

Here is the caller graph for this function:

boolean delfloortrap ( struct trap ttmp )

References ANTI_MAGIC, BEAR_TRAP, deltrap(), FALSE, FIRE_TRAP, HOLE, LANDMINE, LEVEL_TELEP, m_at, MAGIC_TRAP, PIT, SPIKED_PIT, SQKY_BOARD, TELEP_TRAP, TRAPDOOR, TRUE, u, you::utrap, you::utraptype, you::ux, you::uy, and WEB.

Referenced by boulder_hits_pool(), dighole(), do_flood(), gush(), and zap_over_floor().

Here is the call graph for this function:

Here is the caller graph for this function:

void deltrap ( struct trap trap )
STATIC_OVL int disarm_holdingtrap ( struct trap ttmp )

References BEAR_TRAP, BEARTRAP, cnv_trap_obj(), deltrap(), you::dx, you::dy, FALSE, m_at, mon_nam(), newsym(), reward_untrap(), the_your, try_disarm(), u, you::ux, and you::uy.

Referenced by untrap().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL int disarm_landmine ( struct trap ttmp )

References cnv_trap_obj(), FALSE, LAND_MINE, the_your, and try_disarm().

Referenced by untrap().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL int disarm_shooting_trap ( struct trap ttmp,
int  otyp 
)

References cnv_trap_obj(), FALSE, rnl(), the_your, and try_disarm().

Referenced by untrap().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL int disarm_squeaky_board ( struct trap ttmp )

References CAN_OF_GREASE, consume_obj_charge(), deltrap(), you::dx, you::dy, getobj(), makeknown, more_experienced(), newexplevel(), newsym(), obj::otyp, POT_OIL, obj::spe, TRUE, try_disarm(), u, useup(), you::ux, and you::uy.

Referenced by untrap().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL void dofiretrap ( struct obj box )
STATIC_OVL void domagictrap (  )
void dotrap ( struct trap trap,
unsigned  trflags 
)

References A_CON, A_DEX, A_STR, acidic, activate_statue_trap(), ACURR, amorphous, an(), ANTI_MAGIC, Antimagic, ARM, ARROW, ARROW_TRAP, ARTICLE_NONE, ARTICLE_THE, ballfall(), BEAR_TRAP, bimanual, Blind, blow_up_landmine(), body_part(), BOULDER, breathless, BUFSZ, Can_fall_thru(), carried, ceiling(), cloak_simple_name(), d(), DART, DART_TRAP, monst::data, defsyms, deltrap(), dmgval(), dofiretrap(), domagicportal(), domagictrap(), drain_en(), erode_obj(), exercise(), fall_asleep(), fall_through(), FALSE, fill_pit(), FIRE_TRAP, flags, Flying, fobj, FOOT, FORCEBUNGLE, Fumbling, Half_physical_damage, Hallucination, HEAD, HOLE, In_quest(), In_sokoban, invent, is_clinger, is_metallic, Is_qlocate, is_whirly, KILLED_BY, KILLED_BY_AN, LANDMINE, LAUNCH_KNOWN, launch_obj(), LEFT_SIDE, level_tele_trap(), LEVEL_TELEP, Levitation, locomotion(), losehp(), MAGIC_PORTAL, MAGIC_TRAP, mbodypart(), you::mhmax, mintrap(), mksobj(), mksobj_at(), mon_nam(), Monnam(), permonst::msize, MZ_SMALL, newsym(), NO_KILLER_PREFIX, obj::nobj, nomul(), NOWEBMSG, obfree(), otmp, obj::owt, Passes_walls, PIT, place_object(), placebc(), pline(), PM_BUGBEAR, PM_FIRE_ELEMENTAL, PM_GELATINOUS_CUBE, PM_GREMLIN, PM_IRON_GOLEM, PM_OWLBEAR, PM_PIT_FIEND, PM_PIT_VIPER, PM_RANGER, poisoned(), POLY_TRAP, polyself(), Punished, obj::quan, RECURSIVETRAP, RIGHT_SIDE, rn1, rn2(), rnd(), ROCK, ROCKTRAP, Role_if, ROLL, ROLLING_BOULDER_TRAP, rust_dmg(), RUST_TRAP, s_suffix(), SADDLE, seetrap(), selftouch(), set_wounded_legs(), shieldeff(), Sleep_resistance, SLP_GAS_TRAP, snuff_lit(), sobj_at(), SPIKED_PIT, split_mon(), Sprintf, SQKY_BOARD, stackobj(), STATUE_TRAP, STEED, Strcpy, strongmonst, SUPPRESS_SADDLE, t_at(), tele_trap(), TELEP_TRAP, the(), thitu(), trap_to_defsym, TRAPDOOR, TRUE, TT_BEARTRAP, TT_PIT, TT_WEB, you::twoweap, u, uarm, uarmc, uarmg, uarmh, uarms, uball, you::uen, you::uenmax, you::ulevel, you::umonnum, Unchanging, unplacebc(), unsolid, update_inventory, upstart(), uswapwep, you::utrap, you::utraptype, uwep, you::ux, you::uy, you::uz, flag::verbose, vision_full_recalc, wake_nearby(), WEB, webmaker, weight(), x_monnam(), xname(), and youmonst.

Referenced by dosit(), dospinweb(), float_down(), hurtle_step(), set_trap(), spoteffects(), and try_disarm().

Here is the call graph for this function:

Here is the caller graph for this function:

int dountrap (  )
void drain_en ( int  n )

References flag::botl, flags, u, you::uen, and you::uenmax.

Referenced by dotrap(), and hitmu().

Here is the caller graph for this function:

boolean drown (  )
STATIC_OVL boolean emergency_disrobe ( boolean lostsome )

References assigninvlet(), dropx(), FALSE, inv_cnt(), invent, LOADSTONE, mkgoldobj(), near_capacity(), obj::nobj, obj::otyp, obj::owornmask, pline(), Punished, obj::quan, remove_worn_item(), rn2(), SLT_ENCUMBER, TOURIST, TRUE, u, uamul, uarm, uarmc, uarmf, uarmg, uarmh, uarms, ublindf, you::ugold, uleft, UNENCUMBERED, uright, and welded().

Referenced by drown().

Here is the call graph for this function:

Here is the caller graph for this function:

void fall_through ( boolean  td )
STATIC_DCL int FDECL ( mkroll_launch  ,
(struct trap *, XCHAR_P, XCHAR_P, SHORT_P, long)   
)
STATIC_DCL boolean FDECL ( isclearpath  ,
(coord *, int, SCHAR_P, SCHAR_P)   
)
STATIC_DCL int FDECL ( untrap_prob  ,
(struct trap *ttmp)   
)
STATIC_DCL int FDECL ( disarm_holdingtrap  ,
(struct trap *)   
)
STATIC_DCL void FDECL ( reward_untrap  ,
(struct trap *, struct monst *)   
)
STATIC_DCL int FDECL ( disarm_landmine  ,
(struct trap *)   
)
STATIC_DCL int FDECL ( disarm_squeaky_board  ,
(struct trap *)   
)
STATIC_DCL void FDECL ( dofiretrap  ,
(struct obj *)   
)
STATIC_DCL void FDECL ( cnv_trap_obj  ,
(int, int, struct trap *)   
)
STATIC_DCL boolean FDECL ( emergency_disrobe  ,
(boolean *)   
)
STATIC_DCL int FDECL ( disarm_shooting_trap  ,
(struct trap *, int)   
)
STATIC_DCL void FDECL ( move_into_trap  ,
(struct trap *)   
)
STATIC_DCL int FDECL ( try_lift  ,
(struct monst *, struct trap *, int, BOOLEAN_P)   
)
STATIC_DCL int FDECL ( try_disarm  ,
(struct trap *, BOOLEAN_P)   
)
STATIC_DCL int FDECL ( help_monster_out  ,
(struct monst *, struct trap *)   
)
STATIC_DCL boolean FDECL ( thitm  ,
(int, struct monst *, struct obj *, int, BOOLEAN_P)   
)
void fill_pit ( int  x,
int  y 
)

References BOULDER, flooreffects(), obj_extract_self(), otmp, PIT, sobj_at(), SPIKED_PIT, and t_at().

Referenced by domove(), dotrap(), drop_ball(), float_up(), goto_level(), help_monster_out(), m_detach(), mintrap(), moverock(), teleds(), and use_magic_whistle().

Here is the call graph for this function:

Here is the caller graph for this function:

int fire_damage ( struct obj chain,
boolean  force,
boolean  here,
xchar  x,
xchar  y 
)
int float_down ( long  hmask,
long  emask 
)
void float_up (  )
void grease_protect ( struct obj otmp,
const char *  ostr,
struct monst victim 
)

References aobjnam(), canseemon, carried, Monnam(), pline(), rn2(), txt, update_inventory, vtense(), and youmonst.

Referenced by cursed_book(), erode_obj(), get_wet(), and rust_dmg().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL int help_monster_out ( struct monst mtmp,
struct trap ttmp 
)
if ( trapkilled   )
STATIC_OVL boolean isclearpath ( coord cc,
int  distance,
schar  dx,
schar  dy 
)

References closed_door(), FALSE, isok(), levl, TRUE, nhcoord::x, and ZAP_POS.

Referenced by mkroll_launch().

Here is the call graph for this function:

Here is the caller graph for this function:

int launch_obj ( short  otyp,
int  x1,
int  y1,
int  x2,
int  y2,
int  style 
)
boolean lava_effects (  )
struct trap* maketrap ( int  x,
int  y,
int  typ 
) [read]
void minstapetrify ( struct monst mon,
boolean  byplayer 
)

References cansee, mon_adjust_speed(), mon_to_stone(), Monnam(), monstone(), pline(), poly_when_stoned(), resists_ston, stoned, TRUE, and xkilled().

Referenced by damageum(), dropy(), gulpmu(), hmon_hitmon(), mselftouch(), steal(), and thitmonst().

Here is the call graph for this function:

Here is the caller graph for this function:

int mintrap ( struct monst mtmp )

References acidic, AD_FIRE, amorphous, ANTI_MAGIC, ARM, ARROW, ARROW_TRAP, BEAR_TRAP, bimanual, blow_up_landmine(), BOULDER, breathless, burn_floor_paper(), burnarmor(), Can_fall_thru(), cansee, canseemon, cloak_simple_name(), count_wsegs(), d(), DART, DART_TRAP, defsyms, deltrap(), destroy_mitem(), distu, erode_obj(), extra_nasty, FALSE, fill_pit(), FIRE_TRAP, flags, HEAD, HOLE, In_sokoban, is_clinger, is_floater, is_flyer, is_ice(), is_whirly, LANDMINE, trap::launch, launch_obj(), LAUNCH_UNSEEN, LEVEL_TELEP, MAGIC_PORTAL, MAGIC_TRAP, mbodypart(), melt_ice(), metallivorous, mindless, mksobj(), permonst::mlet, mlevel_tele_trap(), mon_nam(), MON_WEP, mondied(), Monnam(), mons, monsndx(), mselftouch(), permonst::msize, mtele_trap(), multi, MZ_HUGE, MZ_SMALL, newcham(), newsym(), obj::nobj, nomovemsg, NOTELL, otmp, obj::owt, passes_walls, PIT, pline(), PM_BALROG, PM_BALUCHITHERIUM, PM_BUGBEAR, PM_FIRE_ELEMENTAL, PM_GELATINOUS_CUBE, PM_GREMLIN, PM_IRON_GOLEM, PM_JABBERWOCK, PM_KRAKEN, PM_LEATHER_GOLEM, PM_MASTODON, PM_OWLBEAR, PM_PAPER_GOLEM, PM_PIT_FIEND, PM_PIT_VIPER, PM_PURPLE_WORM, PM_STRAW_GOLEM, PM_TITANOTHERE, PM_WOOD_GOLEM, PM_WUMPUS, POLY_TRAP, POTION_CLASS, obj::quan, resist(), resists_fire, resists_magm(), resists_sleep, rn2(), rnd(), rnl(), ROCK, ROCKTRAP, ROLL, ROLLING_BOULDER_TRAP, rust_dmg(), RUST_TRAP, S_DRAGON, S_GIANT, s_suffix(), SCROLL_CLASS, seetrap(), setmangry(), shieldeff(), SLP_GAS_TRAP, snuff_lit(), sobj_at(), something, flag::soundok, SPBOOK_CLASS, SPIKED_PIT, split_mon(), SQKY_BOARD, STATUE_TRAP, surface(), t_at(), TELEP_TRAP, thitm(), trap_to_defsym, TRAPDOOR, TRUE, trap::tx, trap::ty, u, unconscious(), unsolid, you::uz, W_ARM, W_ARMC, W_ARMG, W_ARMH, W_ARMS, wake_nearto(), WAND_CLASS, WEB, webmaker, weight(), which_armor(), trap::x, nhcoord::x, trap::y, and nhcoord::y.

Referenced by digactualhole(), domove(), dotrap(), dowaterdemon(), dowaternymph(), dowatersnakes(), kickdmg(), m_move(), mhurtle_step(), and use_magic_whistle().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL int mkroll_launch ( struct trap ttmp,
xchar  x,
xchar  y,
short  otyp,
long  ocount 
)

References FALSE, is_pool(), isclearpath(), mksobj(), newsym(), otmp, obj::otyp, obj::owt, place_object(), obj::quan, rn1, rn2(), ROLLING_BOULDER_TRAP, stackobj(), TRUE, weight(), nhcoord::x, xdir, nhcoord::y, and ydir.

Referenced by maketrap().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL void move_into_trap ( struct trap ttmp )

References A_WIS, check_leash(), drag_ball(), exercise(), FALSE, move_bc(), newsym(), Punished, spoteffects(), TRUE, trap::tx, u, you::umoved, you::ux, you::ux0, you::uy, you::uy0, and vision_recalc().

Referenced by try_disarm().

Here is the call graph for this function:

Here is the caller graph for this function:

void mselftouch ( struct monst mon,
const char *  arg,
boolean  byplayer 
)

References cansee, CORPSE, obj::corpsenm, minstapetrify(), permonst::mname, mon_nam(), MON_WEP, Monnam(), mons, obj::otyp, pline(), and touch_petrifies.

Referenced by do_earthquake(), mdamagem(), mintrap(), newcham(), and steal_it().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_DCL void NDECL ( domagictrap   )
STATIC_OVL void reward_untrap ( struct trap ttmp,
struct monst mtmp 
)

References A_LAWFUL, adjalign(), monst::data, mindless, permonst::mlet, Monnam(), pline(), rn2(), rnl(), S_HUMAN, set_malign(), align::type, u, and you::ualign.

Referenced by disarm_holdingtrap(), and help_monster_out().

Here is the call graph for this function:

Here is the caller graph for this function:

boolean rust_dmg ( struct obj otmp,
const char *  ostr,
int  type,
boolean  print,
struct monst victim 
)
void seetrap ( struct trap trap )

References newsym().

Referenced by blow_up_landmine(), dotrap(), fall_through(), goto_level(), launch_obj(), mintrap(), mlevel_tele_trap(), moverock(), mtele_trap(), use_defensive(), use_misc(), and use_pick_axe2().

Here is the call graph for this function:

Here is the caller graph for this function:

void selftouch ( char *  arg ) const

References an(), BUFSZ, CORPSE, obj::corpsenm, permonst::mname, mons, obj::otyp, pline(), Sprintf, Stone_resistance, touch_petrifies, you::twoweap, u, uswapwep, and uwep.

Referenced by destroy_arm(), do_earthquake(), dotrap(), float_down(), goto_level(), polyself(), and rehumanize().

Here is the call graph for this function:

Here is the caller graph for this function:

struct trap* t_at ( int  x,
int  y 
) [read]
STATIC_OVL boolean thitm ( int  tlev,
struct monst mon,
struct obj obj,
int  d_override,
boolean  nocorpse 
)

References AD_PHYS, AD_RBRE, cansee, monst::data, dealloc_obj(), dmgval(), doname(), FALSE, find_mac(), monst::mhp, monkilled(), Monnam(), monst::mx, monst::my, newsym(), oresist_disintegration, obj::owt, place_object(), pline(), rnd(), obj::spe, stackobj(), and TRUE.

Referenced by mintrap().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL int try_disarm ( struct trap ttmp,
boolean  force_failure 
)
STATIC_OVL int try_lift ( struct monst mtmp,
struct trap ttmp,
int  wt,
boolean  stuff 
)

References HVY_ENCUMBER, mindless, Monnam(), pline(), rnl(), S_HUMAN, set_malign(), wc, and weight_cap().

Referenced by help_monster_out().

Here is the call graph for this function:

Here is the caller graph for this function:

boolean unconscious (  )

References multi, nomovemsg, u, and you::usleep.

Referenced by mintrap(), nh_timeout(), tele(), and you_aggravate().

Here is the caller graph for this function:

int untrap ( boolean  force )
STATIC_OVL int untrap_prob ( struct trap ttmp )

References Blind, Confusion, monst::data, Fumbling, Hallucination, MAXULEV, PM_RANGER, PM_ROGUE, rn2(), Role_if, Stunned, u, you::uhave, you::ulevel, WEB, webmaker, and youmonst.

Referenced by help_monster_out(), and try_disarm().

Here is the call graph for this function:

Here is the caller graph for this function:

boolean water_damage ( struct obj obj,
boolean  force,
boolean  here 
)

Variable Documentation

STATIC_VAR const char* const A_gush_of_water_hits = "A gush of water hits"
STATIC_VAR const char* const a_your[2] = { "a", "your" }
STATIC_VAR const char* const A_Your[2] = { "A", "Your" }
STATIC_VAR const char* const blindgas[6]
Initial value:
 
        {"humid", "odorless", "pungent", "chilling", "acrid", "biting"}
const char* const destroy_strings[]

Referenced by fire_damage().

const char lava_killer[] = "molten lava" [static]

Referenced by lava_effects().

NEARDATA const char oil[] = { ALL_CLASSES, TOOL_CLASS, POTION_CLASS, 0 } [static]
STATIC_VAR const char tower_of_flame[] = "tower of flame"