Defines | Functions | Variables

invent.c File Reference

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

Defines

#define NOINVSYM   '#'
#define CONTAINED_SYM   '>'
#define inv_rank(o)   ((o)->invlet ^ 040)

Functions

STATIC_DCL void NDECL (reorder_invent)
STATIC_DCL boolean FDECL (mergable,(struct obj *, struct obj *))
STATIC_DCL void FDECL (invdisp_nothing,(const char *, const char *))
STATIC_DCL boolean FDECL (worn_wield_only,(struct obj *))
STATIC_DCL boolean FDECL (only_here,(struct obj *))
STATIC_DCL void FDECL (compactify,(char *))
STATIC_DCL boolean FDECL (taking_off,(const char *))
STATIC_DCL boolean FDECL (putting_on,(const char *))
STATIC_PTR int FDECL (ckunpaid,(struct obj *))
STATIC_PTR int FDECL (ckvalidcat,(struct obj *))
static char FDECL (display_pickinv,(const char *, BOOLEAN_P, long *, BOOLEAN_P))
STATIC_DCL boolean FDECL (this_type_only,(struct obj *))
STATIC_DCL void NDECL (dounpaid)
STATIC_DCL struct objFDECL (find_unpaid,(struct obj *, struct obj **))
STATIC_DCL void FDECL (menu_identify,(int))
STATIC_DCL boolean FDECL (tool_in_use,(struct obj *))
STATIC_DCL char FDECL (obj_to_let,(struct obj *))
void assigninvlet (struct obj *otmp)
STATIC_OVL void reorder_invent ()
struct objmerge_choice (struct obj *objlist, struct obj *obj)
int merged (struct obj **potmp, struct obj **pobj)
void addinv_core1 (struct obj *obj)
void addinv_core2 (struct obj *obj)
struct objaddinv (struct obj *obj)
void carry_obj_effects (struct obj *obj)
struct objhold_another_object (struct obj *obj, const char *drop_fmt, const char *drop_arg, const char *hold_msg)
void useupall (struct obj *obj)
void useup (struct obj *obj)
void consume_obj_charge (struct obj *obj, boolean maybe_unpaid)
void freeinv_core (struct obj *obj)
void freeinv (struct obj *obj)
void delallobj (int x, int y)
void delobj (struct obj *obj)
struct objsobj_at (int n, int x, int y)
struct objcarrying (int type)
const char * currency (long amount)
boolean have_lizard ()
struct objo_on (unsigned int id, struct obj *objchn)
boolean obj_here (struct obj *obj, int x, int y)
struct objg_at (int x, int y)
struct objmkgoldobj (long q)
STATIC_OVL void compactify (char *buf)
STATIC_OVL boolean taking_off (char *action) const
STATIC_OVL boolean putting_on (char *action) const
struct objgetobj (const char *let, const char *word)
void silly_thing (char *word, struct obj *otmp) const
STATIC_PTR int ckvalidcat (struct obj *otmp)
STATIC_PTR int ckunpaid (struct obj *otmp)
boolean wearing_armor ()
boolean is_worn (struct obj *otmp)
int ggetobj (char *word, fn, int FDECL((*fn) mx, boolean combo, unsigned *resultflags) const
int askchain (struct obj **objchn, const char *olets, int allflag, fn, ckfn, int mx, const char *word)
void fully_identify_obj (struct obj *otmp)
int identify (struct obj *otmp)
STATIC_OVL void menu_identify (int id_limit)
void identify_pack (int id_limit)
STATIC_OVL char obj_to_let (struct obj *obj)
void prinv (char *prefix, struct obj *obj, long quan) const
char * xprname (struct obj *obj, const char *txt, char let, boolean dot, long cost, long quan)
int ddoinv ()
STATIC_OVL struct objfind_unpaid (struct obj *list, struct obj **last_found)
static char display_pickinv (const char *lets, boolean want_reply, long *out_cnt, boolean want_disp)
char display_inventory (const char *lets, boolean want_reply)
char dump_inventory (const char *lets, boolean want_reply, boolean want_disp)
int count_unpaid (struct obj *list)
int count_unidentified (struct obj *list)
int count_objects (struct obj *list)
int count_buc (struct obj *list, int type)
STATIC_OVL void dounpaid ()
STATIC_OVL boolean this_type_only (struct obj *obj)
int dotypeinv ()
const char * dfeature_at (int x, int y, char *buf)
int look_here (int obj_cnt, boolean picked_some)
int dolook ()
boolean will_feel_cockatrice (struct obj *otmp, boolean force_touch)
void feel_cockatrice (struct obj *otmp, boolean force_touch)
void stackobj (struct obj *obj)
STATIC_OVL boolean mergable (struct obj *otmp, struct obj *obj)
int doprgold ()
int doprwep ()
int doprarm ()
int doprring ()
int dopramulet ()
STATIC_OVL boolean tool_in_use (struct obj *obj)
int doprtool ()
int doprinuse ()
void useupf (struct obj *obj, long numused)
char * let_to_name (char let, boolean unpaid)
void free_invbuf ()
void reassign ()
int doorganize ()
STATIC_OVL void invdisp_nothing (char *hdr, char *txt) const
STATIC_OVL boolean worn_wield_only (struct obj *obj)
struct objdisplay_minventory (struct monst *mon, int dflags, char *title)
struct objdisplay_cinventory (struct obj *obj)
STATIC_OVL boolean only_here (struct obj *obj)
int display_binventory (int x, int y, boolean as_if_seen)

Variables

static int lastinvnr = 51
static NEARDATA const char removeables []
static int this_type
STATIC_VAR NEARDATA const char * names []
static NEARDATA const char oth_symbols []
static NEARDATA const char * oth_names []
static NEARDATA char * invbuf = (char *)0
static NEARDATA unsigned invbufsiz = 0
static coord only

Define Documentation

#define CONTAINED_SYM   '>'

Referenced by dounpaid(), and xprname().

#define inv_rank (   o )    ((o)->invlet ^ 040)

Referenced by reorder_invent().

#define NOINVSYM   '#'

Function Documentation

struct obj* addinv ( struct obj obj ) [read]

Add obj to the hero's inventory. Make sure the object is "free". Adjust hero attributes as necessary.

References addinv_core1(), addinv_core2(), assigninvlet(), carry_obj_effects(), COIN_CLASS, flags, invent, flag::invlet_constant, merged(), obj::nobj, OBJ_FREE, OBJ_INVENT, otmp, reorder_invent(), update_inventory, and obj::where.

Referenced by damageum(), dog_eat(), hold_another_object(), ini_inv(), level_tele(), light_cocktail(), out_container(), pick_obj(), thitmonst(), throw_obj(), throwit(), and touchfood().

Here is the call graph for this function:

Here is the caller graph for this function:

void addinv_core1 ( struct obj obj )

References AMULET_OF_YENDOR, artitouch(), BELL_OF_OPENING, flag::botl, CANDELABRUM_OF_INVOCATION, COIN_CLASS, doname(), flags, is_quest_artifact(), LUCKSTONE, set_artifact_intrinsic(), SPE_BOOK_OF_THE_DEAD, u, you::ugold, you::uhave, you::uz, and W_ART.

Referenced by addinv(), and poly_obj().

Here is the call graph for this function:

Here is the caller graph for this function:

void addinv_core2 ( struct obj obj )

References confers_luck(), and set_moreluck().

Referenced by addinv(), and poly_obj().

Here is the call graph for this function:

Here is the caller graph for this function:

int askchain ( struct obj **  objchn,
const char *  olets,
int  allflag,
fn  ,
ckfn  ,
int  mx,
const char *  word 
)

References BUFSZ, COIN_CLASS, doname(), invent, is_worn(), LOADSTONE, merged(), name, obj::nobj, not_fully_identified(), nyaq, nyNaq, obj::oclass, otmp, obj::otyp, pline(), QBUFSZ, obj::quan, safe_qbuf(), simple_typename(), splitobj(), Strcat, Strcpy, taking_off(), the(), welded(), and yn_number.

Referenced by ggetobj(), and use_container().

Here is the call graph for this function:

Here is the caller graph for this function:

void assigninvlet ( struct obj otmp )

References COIN_CLASS, FALSE, GOLD_SYM, invent, obj::invlet, lastinvnr, obj::nobj, NOINVSYM, and TRUE.

Referenced by addinv(), doorganize(), emergency_disrobe(), menu_drop(), and use_container().

Here is the caller graph for this function:

void carry_obj_effects ( struct obj obj )

References attach_fig_transform_timeout(), dead_species(), FIGURINE, NON_PM, and TRUE.

Referenced by addinv(), and mpickobj().

Here is the call graph for this function:

Here is the caller graph for this function:

struct obj* carrying ( int  type ) [read]
STATIC_PTR int ckunpaid ( struct obj otmp )

Referenced by ggetobj().

Here is the caller graph for this function:

STATIC_PTR int ckvalidcat ( struct obj otmp )

References allow_category().

Referenced by ggetobj().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL void compactify ( char *  buf )

Referenced by doorganize(), and getobj().

Here is the caller graph for this function:

void consume_obj_charge ( struct obj obj,
boolean  maybe_unpaid 
)

References check_unpaid(), and update_inventory.

Referenced by bagotricks(), disarm_squeaky_board(), do_improvisation(), doapply(), use_bell(), use_crystal_ball(), use_grease(), and use_tinning_kit().

Here is the call graph for this function:

Here is the caller graph for this function:

int count_buc ( struct obj list,
int  type 
)

References BUC_BLESSED, BUC_CURSED, BUC_UNCURSED, BUC_UNKNOWN, COIN_CLASS, PM_PRIEST, Role_if, and TRUE.

Referenced by ggetobj(), and query_category().

Here is the caller graph for this function:

int count_objects ( struct obj list )

Returns the number of items within the given list including contained objects.

References Has_contents.

Referenced by drop_upon_death().

Here is the caller graph for this function:

int count_unidentified ( struct obj list )

Returns the number of unidentified items within the given list. This includes contained objects.

References Has_contents, and not_fully_identified().

Referenced by query_category().

Here is the call graph for this function:

Here is the caller graph for this function:

int count_unpaid ( struct obj list )

Returns the number of unpaid items within the given list. This includes contained objects.

References Has_contents.

Referenced by dotypeinv(), dounpaid(), ggetobj(), query_category(), sellobj(), ship_object(), and stolen_value().

Here is the caller graph for this function:

const char* currency ( long  amount )
int ddoinv (  )

References display_inventory(), and FALSE.

Referenced by rhack().

Here is the call graph for this function:

Here is the caller graph for this function:

void delallobj ( int  x,
int  y 
)

References delobj(), level, dlevel_t::objects, otmp, uball, uchain, and unpunish().

Referenced by close_drawbridge(), and open_drawbridge().

Here is the call graph for this function:

Here is the caller graph for this function:

void delobj ( struct obj obj )
const char* dfeature_at ( int  x,
int  y,
char *  buf 
)
int display_binventory ( int  x,
int  y,
boolean  as_if_seen 
)

References dlevel_t::buriedobjlist, INVORDER_SORT, level, obj::nobj, only_here(), obj::ox, obj::oy, PICK_NONE, query_objlist(), nhcoord::x, and nhcoord::y.

Referenced by zap_updown().

Here is the call graph for this function:

Here is the caller graph for this function:

struct obj* display_cinventory ( struct obj obj ) [read]

References any::a_obj, allow_all(), doname(), invdisp_nothing(), INVORDER_SORT, mi::item, PICK_NONE, QBUFSZ, query_objlist(), and Sprintf.

Referenced by bhito().

Here is the call graph for this function:

Here is the caller graph for this function:

char display_inventory ( const char *  lets,
boolean  want_reply 
)

References display_pickinv(), and TRUE.

Referenced by ddoinv(), doprarm(), doprinuse(), doprring(), doprtool(), ggetobj(), and query_classes().

Here is the call graph for this function:

Here is the caller graph for this function:

struct obj* display_minventory ( struct monst mon,
int  dflags,
char *  title 
) [read]
static char display_pickinv ( const char *  lets,
boolean  want_reply,
long*  out_cnt,
boolean  want_disp 
) [static]
int dolook (  )

References FALSE, and look_here().

Here is the call graph for this function:

int doorganize (  )
int dopramulet (  )

References prinv(), and uamul.

Here is the call graph for this function:

int doprarm (  )

References display_inventory(), FALSE, obj_to_let(), uarm, uarmc, uarmf, uarmg, uarmh, uarms, and wearing_armor().

Here is the call graph for this function:

int doprgold (  )

References currency(), invent, plur, shopper_financial_report(), u, and you::ugold.

Referenced by dotypeinv().

Here is the call graph for this function:

Here is the caller graph for this function:

int doprinuse (  )

References display_inventory(), FALSE, invent, is_worn(), obj::nobj, obj_to_let(), otmp, and tool_in_use().

Here is the call graph for this function:

int doprring (  )

References display_inventory(), FALSE, obj_to_let(), uleft, and uright.

Here is the call graph for this function:

int doprtool (  )

References display_inventory(), FALSE, invent, obj::nobj, obj_to_let(), otmp, and tool_in_use().

Here is the call graph for this function:

int doprwep (  )

References body_part(), HANDED, prinv(), you::twoweap, u, uswapwep, and uwep.

Here is the call graph for this function:

int dotypeinv (  )
STATIC_OVL void dounpaid (  )
char dump_inventory ( const char *  lets,
boolean  want_reply,
boolean  want_disp 
)

References display_pickinv().

Referenced by disclose().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_DCL boolean FDECL ( worn_wield_only  ,
(struct obj *)   
)
STATIC_DCL boolean FDECL ( tool_in_use  ,
(struct obj *)   
)
STATIC_DCL char FDECL ( obj_to_let  ,
(struct obj *)   
)
STATIC_DCL boolean FDECL ( putting_on  ,
(const char *)   
)
STATIC_PTR int FDECL ( ckunpaid  ,
(struct obj *)   
)
STATIC_PTR int FDECL ( ckvalidcat  ,
(struct obj *)   
)
static char FDECL ( display_pickinv  ,
(const char *, BOOLEAN_P, long *, BOOLEAN_P)   
) [static]
STATIC_DCL boolean FDECL ( only_here  ,
(struct obj *)   
)
STATIC_DCL boolean FDECL ( mergable  ,
(struct obj *, struct obj *)   
)
STATIC_DCL void FDECL ( invdisp_nothing  ,
(const char *, const char *)   
)
STATIC_DCL void FDECL ( compactify  ,
(char *)   
)
STATIC_DCL boolean FDECL ( this_type_only  ,
(struct obj *)   
)
STATIC_DCL boolean FDECL ( taking_off  ,
(const char *)   
)
STATIC_DCL struct obj* FDECL ( find_unpaid  ,
(struct obj *, struct obj **)   
) [read]
STATIC_DCL void FDECL ( menu_identify  ,
(int)   
)
void feel_cockatrice ( struct obj otmp,
boolean  force_touch 
)

References an(), body_part(), BUFSZ, monst::data, HAND, makeplural(), permonst::mname, mons, pline(), poly_when_stoned(), Sprintf, will_feel_cockatrice(), and youmonst.

Referenced by dosacrifice(), and look_here().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL struct obj* find_unpaid ( struct obj list,
struct obj **  last_found 
) [read]

References Has_contents, and obj::nobj.

Referenced by dounpaid().

Here is the caller graph for this function:

void free_invbuf (  )

Referenced by freedynamicdata().

Here is the caller graph for this function:

void freeinv ( struct obj obj )
void freeinv_core ( struct obj obj )
void fully_identify_obj ( struct obj otmp )

References discover_artifact(), EGG, learn_egg_type(), makeknown, and NON_PM.

Referenced by finish_quest(), and identify().

Here is the call graph for this function:

Here is the caller graph for this function:

struct obj* g_at ( int  x,
int  y 
) [read]

References COIN_CLASS, level, dlevel_t::objects, and obj::oclass.

Referenced by dosounds(), floorfood(), gd_move(), m_move(), mkgold(), mpickgold(), stealgold(), and wallify_vault().

Here is the caller graph for this function:

struct obj* getobj ( const char *  let,
const char*  word 
) [read]

References ALL_CLASSES, ALLOW_COUNT, ALLOW_NONE, AMULET_OF_YENDOR, ARMOR_CLASS, ART_ORB_OF_FATE, BLINDFOLD, flag::botl, BOULDER, bp, BRASS_LANTERN, BUFSZ, BULLWHIP, CAN_OF_GREASE, CANDY_BAR, canwearobj(), check_tutorial_message(), COIN_CLASS, compactify(), CORPSE, obj::corpsenm, CREAM_PIE, CREDIT_CARD, CRYSTAL_BALL, monst::data, def_oc_syms, digit(), display_pickinv(), EUCALYPTUS_LEAF, FAKE_AMULET_OF_YENDOR, FALSE, flags, FOOD_CLASS, FORTUNE_COOKIE, GEM_CLASS, GOLD_SYM, index, invent, obj::invlet, flag::invlet_constant, is_axe, is_chargeable(), is_edible(), is_graystone, is_pick, is_pole, is_weptool, LENSES, LOADSTONE, MAGIC_LAMP, MAGIC_MARKER, MEAT_RING, metallivorous, MIRROR, mkgoldobj(), mons, Never_mind, obj::nobj, obj::oartifact, OBJ_DESCR, objects, obj::oclass, OIL_LAMP, otmp, obj::otyp, obj::owornmask, pline(), PM_RUST_MONSTER, POT_OIL, POTION_CLASS, putting_on(), QBUFSZ, QT_T_CHOOSEITEM, obj::quan, quitchars, readchar(), silly_thing(), splitobj(), Sprintf, Strcpy, T_SHIRT, taking_off(), throws_rocks, TIN, tinnable(), TOOL_CLASS, TOURIST, TOWEL, TRUE, you::twoweap, u, uarm, uarmc, you::ugold, uswapwep, uwep, flag::verbose, W_AMUL, W_ARMOR, W_RING, W_TOOL, W_WEP, WEAPON_CLASS, welded(), yn_function(), youmonst, and zeroobj.

Referenced by arti_invoke(), ddocall(), disarm_squeaky_board(), doapply(), dodip(), dodrink(), dodrop(), doinvoke(), doorganize(), doputon(), doread(), doremring(), dorub(), dosacrifice(), dotakeoff(), dothrow(), dowear(), dowield(), dowieldquiver(), dowrite(), dozap(), engrave(), floorfood(), seffects(), use_grease(), and use_stone().

Here is the call graph for this function:

Here is the caller graph for this function:

int ggetobj ( char *  word,
fn  ,
int FDECL((*fn)  mx,
boolean  combo,
unsigned *  resultflags 
) const
boolean have_lizard (  )

References CORPSE, obj::corpsenm, FALSE, invent, obj::nobj, otmp, obj::otyp, PM_LIZARD, and TRUE.

Referenced by hitmu().

Here is the caller graph for this function:

struct obj* hold_another_object ( struct obj obj,
const char *  drop_fmt,
const char *  drop_arg,
const char *  hold_msg 
) [read]
int identify ( struct obj otmp )

References fully_identify_obj(), and prinv().

Referenced by identify_pack(), and menu_identify().

Here is the call graph for this function:

Here is the caller graph for this function:

void identify_pack ( int  id_limit )

References FALSE, flags, ggetobj(), identify(), invent, menu_identify(), flag::menu_style, MENU_TRADITIONAL, obj::nobj, not_fully_identified(), and update_inventory.

Referenced by dosit(), and seffects().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL void invdisp_nothing ( char *  hdr,
char *  txt 
) const
boolean is_worn ( struct obj otmp )

References STEED, W_AMUL, W_ARMOR, W_QUIVER, W_RING, W_SWAPWEP, W_TOOL, and W_WEP.

Referenced by askchain(), doprinuse(), doputon(), ggetobj(), and menu_remarm().

Here is the caller graph for this function:

char* let_to_name ( char  let,
boolean  unpaid 
)

References index, invbuf, MAXOCLASSES, obj::oclass, Strcat, and Strcpy.

Referenced by display_pickinv(), dodiscovered(), dounpaid(), query_category(), and query_objlist().

Here is the caller graph for this function:

int look_here ( int  obj_cnt,
boolean  picked_some 
)
STATIC_OVL void menu_identify ( int  id_limit )

References BUFSZ, identify(), invent, INVORDER_SORT, mark_synch, not_fully_identified(), PICK_ANY, pline(), query_objlist(), SIGNAL_NOMENU, Sprintf, and USE_INVLET.

Referenced by identify_pack().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL boolean mergable ( struct obj otmp,
struct obj obj 
)

References ARMOR_CLASS, COIN_CLASS, CORPSE, EGG, FALSE, FOOD_CLASS, Is_candle, is_reviver, LOW_PM, mons, objects, ONAME, PM_PRIEST, POT_OIL, Role_if, same_price(), TIN, TRUE, and WEAPON_CLASS.

Referenced by doorganize(), merge_choice(), and merged().

Here is the call graph for this function:

Here is the caller graph for this function:

struct obj* merge_choice ( struct obj objlist,
struct obj obj 
) [read]

References inhishop(), inside_shop(), invent, mergable(), OBJ_FLOOR, SCR_SCARE_MONSTER, shop_keeper(), and obj::where.

Referenced by damageum(), dog_eat(), and lift_object().

Here is the call graph for this function:

Here is the caller graph for this function:

int merged ( struct obj **  potmp,
struct obj **  pobj 
)
struct obj* mkgoldobj ( long  q ) [read]

References flag::botl, FALSE, flags, GOLD_PIECE, mksobj(), otmp, obj::owt, obj::quan, u, you::ugold, and weight().

Referenced by doloot(), drop_upon_death(), emergency_disrobe(), getobj(), ggetobj(), menu_drop(), paygd(), and use_container().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_DCL void NDECL ( reorder_invent   )
STATIC_DCL void NDECL ( dounpaid   )
struct obj* o_on ( unsigned int  id,
struct obj objchn 
) [read]

References Has_contents, and obj::nobj.

Referenced by bp_to_obj(), and find_oid().

Here is the caller graph for this function:

boolean obj_here ( struct obj obj,
int  x,
int  y 
)

References FALSE, level, dlevel_t::objects, otmp, and TRUE.

Referenced by eatfood(), in_container(), and opentin().

Here is the caller graph for this function:

STATIC_OVL char obj_to_let ( struct obj obj )

References COIN_CLASS, flags, GOLD_SYM, flag::invlet_constant, NOINVSYM, and reassign().

Referenced by doprarm(), doprinuse(), doprring(), doprtool(), and prinv().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL boolean only_here ( struct obj obj )

References nhcoord::x, and nhcoord::y.

Referenced by display_binventory().

Here is the caller graph for this function:

void prinv ( char *  prefix,
struct obj obj,
long  quan 
) const

References obj_to_let(), pline(), TRUE, and xprname().

Referenced by dip(), dofire(), doorganize(), dopramulet(), doprwep(), doputon(), doswapweapon(), dowieldquiver(), hold_another_object(), identify(), out_container(), pickup_object(), ready_weapon(), and use_stone().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL boolean putting_on ( char *  action ) const

Referenced by getobj().

Here is the caller graph for this function:

void reassign (  )

References invent, obj::invlet, and obj::nobj.

Referenced by display_pickinv(), doorganize(), dounpaid(), obj_to_let(), and parseoptions().

Here is the caller graph for this function:

STATIC_OVL void reorder_invent (  )

References FALSE, inv_rank, invent, obj::nobj, otmp, and TRUE.

Referenced by addinv(), and doorganize().

Here is the caller graph for this function:

void silly_thing ( char *  word,
struct obj otmp 
) const

References AMULET_CLASS, ARMOR_CLASS, BLINDFOLD, is_boots, is_gloves, LENSES, MEAT_RING, obj::oclass, obj::otyp, pline(), RING_CLASS, silly_thing_to, TOWEL, and what.

Referenced by canwearobj(), and getobj().

Here is the call graph for this function:

Here is the caller graph for this function:

struct obj* sobj_at ( int  n,
int  x,
int  y 
) [read]
void stackobj ( struct obj obj )
STATIC_OVL boolean taking_off ( char *  action ) const

Referenced by askchain(), getobj(), and ggetobj().

Here is the caller graph for this function:

STATIC_OVL boolean this_type_only ( struct obj obj )

Referenced by dotypeinv().

Here is the caller graph for this function:

STATIC_OVL boolean tool_in_use ( struct obj obj )

References FALSE, LEASH, STEED, TOOL_CLASS, TRUE, uwep, and W_TOOL.

Referenced by doprinuse(), and doprtool().

Here is the caller graph for this function:

void useup ( struct obj obj )
void useupall ( struct obj obj )

References freeinv(), obfree(), and setnotworn().

Referenced by chwepon(), eatspecial(), hmon_hitmon(), lava_effects(), use_candle(), and useup().

Here is the call graph for this function:

Here is the caller graph for this function:

void useupf ( struct obj obj,
long  numused 
)
boolean wearing_armor (  )

References TOURIST, uarm, uarmc, uarmf, uarmg, uarmh, and uarms.

Referenced by doddoremarm(), doprarm(), and ggetobj().

Here is the caller graph for this function:

boolean will_feel_cockatrice ( struct obj otmp,
boolean  force_touch 
)

References Blind, CORPSE, FALSE, mons, Stone_resistance, touch_petrifies, TRUE, and uarmg.

Referenced by feel_cockatrice(), look_here(), and query_objlist().

Here is the caller graph for this function:

STATIC_OVL boolean worn_wield_only ( struct obj obj )

References AMULET_CLASS, ARMOR_CLASS, RING_CLASS, TOOL_CLASS, and WEAPON_CLASS.

Referenced by display_minventory().

Here is the caller graph for this function:

char* xprname ( struct obj obj,
const char *  txt,
char  let,
boolean  dot,
long  cost,
long  quan 
)

References BUFSZ, COIN_CLASS, CONTAINED_SYM, currency(), doname(), flags, flag::invlet_constant, plur, obj::quan, and Sprintf.

Referenced by display_pickinv(), doinvbill(), dounpaid(), and prinv().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

NEARDATA char* invbuf = (char *)0 [static]

Referenced by let_to_name().

NEARDATA unsigned invbufsiz = 0 [static]
int lastinvnr = 51 [static]

Referenced by assigninvlet().

STATIC_VAR NEARDATA const char* names[]
Initial value:
 { 0,
        "Illegal objects", "Weapons", "Armor", "Rings", "Amulets",
        "Tools", "Comestibles", "Potions", "Scrolls", "Spellbooks",
        "Wands", "Coins", "Gems", "Boulders/Statues", "Iron balls",
        "Chains", "Venoms"
}

Referenced by name_to_mon().

coord only [static]
NEARDATA const char* oth_names[] [static]
Initial value:
 {
        "Bagged/Boxed items"
}
NEARDATA const char oth_symbols[] [static]
Initial value:
 {
        CONTAINED_SYM,
        '\0'
}
NEARDATA const char removeables[] [static]
int this_type [static]