Functions | Variables

steal.c File Reference

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

Functions

STATIC_PTR int NDECL (stealarm)
STATIC_DCL const char * FDECL (equipname,(struct obj *))
STATIC_DCL void FDECL (mdrop_obj,(struct monst *, struct obj *, BOOLEAN_P))
STATIC_OVL const char * equipname (struct obj *otmp)
long somegold ()
void stealgold (struct monst *mtmp)
STATIC_PTR int stealarm ()
void remove_worn_item (struct obj *obj, boolean unchain_ball)
int steal (struct monst *mtmp, char *objnambuf)
int mpickobj (struct monst *mtmp, struct obj *otmp)
void stealamulet (struct monst *mtmp)
STATIC_OVL void mdrop_obj (struct monst *mon, struct obj *obj, boolean verbosely)
void mdrop_special_objs (struct monst *mon)
void relobj (struct monst *mtmp, int show, boolean is_pet)

Variables

unsigned int stealoid
unsigned int stealmid

Function Documentation

STATIC_OVL const char* equipname ( struct obj otmp )

References cloak_simple_name(), TOURIST, uarmc, uarmf, uarmg, uarmh, and uarms.

Referenced by steal().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_DCL const char* FDECL ( equipname  ,
(struct obj *)   
)
STATIC_DCL void FDECL ( mdrop_obj  ,
(struct monst *, struct obj *, BOOLEAN_P)   
)
STATIC_OVL void mdrop_obj ( struct monst mon,
struct obj obj,
boolean  verbosely 
)

References cansee, costly_spot(), distant_name(), doname(), FALSE, flooreffects(), Monnam(), obj::owornmask, place_object(), pline(), setmnotwielded(), stackobj(), TRUE, update_mon_intrinsics(), and W_WEP.

Referenced by mdrop_special_objs(), and relobj().

Here is the call graph for this function:

Here is the caller graph for this function:

void mdrop_special_objs ( struct monst mon )

References FALSE, mdrop_obj(), obj::nobj, obj_extract_self(), obj_resists(), and otmp.

Referenced by make_happy_shk(), and mongone().

Here is the call graph for this function:

Here is the caller graph for this function:

int mpickobj ( struct monst mtmp,
struct obj otmp 
)
STATIC_PTR int NDECL ( stealarm   )
void relobj ( struct monst mtmp,
int  show,
boolean  is_pet 
)

References add_to_minv(), cansee, FALSE, flags, is_animal, mdrop_obj(), mindless, mkgold(), MON_WEP, Monnam(), needspick, newsym(), obj::nobj, obj_extract_self(), otmp, obj::otyp, obj::owornmask, PICK_AXE, pline(), plur, TRUE, tunnels, UNICORN_HORN, and flag::verbose.

Referenced by dog_invent(), and m_detach().

Here is the call graph for this function:

Here is the caller graph for this function:

void remove_worn_item ( struct obj obj,
boolean  unchain_ball 
)
long somegold (  )

References rnd(), u, and you::ugold.

Referenced by dipfountain(), and stealgold().

Here is the call graph for this function:

Here is the caller graph for this function:

int steal ( struct monst mtmp,
char *  objnambuf 
)
void stealamulet ( struct monst mtmp )
STATIC_PTR int stealarm (  )

References AD_SITM, monst::data, DEADMONSTER, dmgtype(), doname(), FALSE, fmon, freeinv(), invent, monst::m_id, monflee(), Monnam(), mpickobj(), monst::nmon, obj::nobj, obj::o_id, otmp, pline(), rloc(), shop_keeper(), subfrombill(), tele_restrict(), u, and you::ushops.

Referenced by steal().

Here is the call graph for this function:

Here is the caller graph for this function:

void stealgold ( struct monst mtmp )

References body_part(), flag::botl, delobj(), FALSE, flags, FOOT, g_at(), makeplural(), monflee(), Monnam(), newsym(), pline(), obj::quan, rloc(), rn2(), somegold(), tele_restrict(), u, you::ugold, you::ux, and you::uy.

Referenced by hitmu().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

unsigned int stealmid
unsigned int stealoid

Referenced by steal_it().