#include "hack.h"
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 |
STATIC_OVL const char* equipname | ( | struct obj * | otmp ) |
STATIC_DCL const char* FDECL | ( | equipname | , |
(struct obj *) | |||
) |
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().
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().
References add_to_minv(), AT_ENGL, attacktype(), Blind, carry_obj_effects(), COIN_CLASS, FALSE, obfree(), obj_sheds_light(), pline(), obj::quan, snuff_light_source(), Tobjnam(), TRUE, u, and you::ustuck.
Referenced by create_object(), dog_invent(), dropy(), final_level(), gem_accept(), launch_obj(), m_initinv(), m_initthrow(), m_initweap(), makedog(), meatobj(), mk_mplayer(), mk_mplayer_armor(), mongets(), move_special(), mpickstuff(), priestini(), repair_damage(), shkcatch(), shkinit(), steal(), stealamulet(), stealarm(), tactics(), thitmonst(), throwit(), use_mirror(), and use_misc().
STATIC_PTR int NDECL | ( | stealarm | ) |
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().
References Amulet_off(), Armor_off(), Blindf_off(), Boots_off(), cancel_don(), Cloak_off(), donning(), Gloves_off(), Helmet_off(), Ring_gone(), setnotworn(), setworn(), Shield_off(), skinback(), TRUE, uarm, uarmc, uarmf, uarmg, uarmh, uarms, unpunish(), uquiver, uqwepgone(), uskin, uswapwep, uswapwepgone(), uwep, uwepgone(), W_AMUL, W_ARMOR, W_BALL, W_CHAIN, W_QUIVER, W_RING, W_SWAPWEP, W_TOOL, and W_WEP.
Referenced by animate_statue(), emergency_disrobe(), poly_obj(), steal(), stealamulet(), and throw_obj().
long somegold | ( | ) |
References rnd(), u, and you::ugold.
Referenced by dipfountain(), and stealgold().
int steal | ( | struct monst * | mtmp, |
char * | objnambuf | ||
) |
References Adjmonnam(), Adornment, AMULET_CLASS, ARMOR_CLASS, Blind, can_carry(), canspotmon, CORPSE, obj::corpsenm, cxname(), doname(), donning(), equipname(), FALSE, flag::female, flags, FOOD_CLASS, freeinv(), inv_cnt(), invent, is_animal, is_fainted(), LEASH, LEFT_RING, maybe_finished_meal(), minstapetrify(), Monnam(), monnear(), mons, mpickobj(), multi, obj::nobj, nomul(), obj::o_id, o_unleash(), objects, objclass::oc_delay, obj::oclass, otmp, obj::otyp, obj::owornmask, perceives, pline(), remove_worn_item(), RIGHT_RING, RING_CLASS, rn2(), S_HUMAN, SIZE, stealarm(), stop_occupation(), Strcpy, TOOL_CLASS, touch_petrifies, TRUE, you::twoweap, u, uarm, uarmc, uarmg, uball, uleft, unmul(), uquiver, uright, uskin, uswapwep, uwep, you::ux, you::uy, W_AMUL, W_ARMG, W_ARMOR, W_RING, W_TOOL, and yname().
Referenced by hitmu().
void stealamulet | ( | struct monst * | mtmp ) |
References AMULET_OF_YENDOR, BELL, BELL_OF_OPENING, can_teleport, CANDELABRUM_OF_INVOCATION, doname(), FAKE_AMULET_OF_YENDOR, FALSE, freeinv(), invent, is_quest_artifact(), Monnam(), mpickobj(), obj::nobj, otmp, obj::otyp, obj::owornmask, pline(), remove_worn_item(), rloc(), SPE_BOOK_OF_THE_DEAD, tele_restrict(), TRUE, u, and you::uhave.
Referenced by hitmu().
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().
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().
unsigned int stealmid |
unsigned int stealoid |
Referenced by steal_it().