#include "hack.h"
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 obj * | FDECL (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 obj * | merge_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 obj * | addinv (struct obj *obj) |
void | carry_obj_effects (struct obj *obj) |
struct obj * | hold_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 obj * | sobj_at (int n, int x, int y) |
struct obj * | carrying (int type) |
const char * | currency (long amount) |
boolean | have_lizard () |
struct obj * | o_on (unsigned int id, struct obj *objchn) |
boolean | obj_here (struct obj *obj, int x, int y) |
struct obj * | g_at (int x, int y) |
struct obj * | mkgoldobj (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 obj * | getobj (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 obj * | find_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 obj * | display_minventory (struct monst *mon, int dflags, char *title) |
struct obj * | display_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 CONTAINED_SYM '>' |
Referenced by dounpaid(), and xprname().
#define inv_rank | ( | o ) | ((o)->invlet ^ 040) |
Referenced by reorder_invent().
#define NOINVSYM '#' |
Referenced by assigninvlet(), doorganize(), and obj_to_let().
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().
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().
void addinv_core2 | ( | struct obj * | obj ) |
References confers_luck(), and set_moreluck().
Referenced by addinv(), and poly_obj().
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().
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().
void carry_obj_effects | ( | struct obj * | obj ) |
References attach_fig_transform_timeout(), dead_species(), FIGURINE, NON_PM, and TRUE.
Referenced by addinv(), and mpickobj().
struct obj* carrying | ( | int | type ) | [read] |
References invent, obj::nobj, otmp, and obj::otyp.
Referenced by block_entry(), doapply(), done(), enlightenment(), finish_quest(), invocation_message(), nh_timeout(), pleased(), set_moreluck(), shk_move(), test_move(), u_entered_shop(), and use_candle().
STATIC_PTR int ckunpaid | ( | struct obj * | otmp ) |
STATIC_PTR int ckvalidcat | ( | struct obj * | otmp ) |
References allow_category().
Referenced by ggetobj().
STATIC_OVL void compactify | ( | char * | buf ) |
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().
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().
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().
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().
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().
const char* currency | ( | long | amount ) |
Referenced by addtobill(), artifact_score(), bribe(), check_unpaid_usage(), chest_trap(), container_impact_dmg(), costly_gold(), demon_talk(), doconsult(), doname_base(), done(), dopay(), dopayobj(), doprgold(), forcelock(), ghitm(), gold_detect(), impact_drop(), inherits(), pay_for_damage(), paygd(), price_quote(), recharge(), rob_shop(), sellobj(), shk_chat(), shopper_financial_report(), stolen_value(), use_container(), and xprname().
int ddoinv | ( | ) |
References display_inventory(), and FALSE.
Referenced by rhack().
void delallobj | ( | int | x, |
int | y | ||
) |
References delobj(), level, dlevel_t::objects, otmp, uball, uchain, and unpunish().
Referenced by close_drawbridge(), and open_drawbridge().
void delobj | ( | struct obj * | obj ) |
References AMULET_OF_YENDOR, BELL_OF_OPENING, CANDELABRUM_OF_INVOCATION, newsym(), obfree(), obj_extract_self(), OBJ_FLOOR, and SPE_BOOK_OF_THE_DEAD.
Referenced by animate_statue(), bhito(), boulder_hits_pool(), breakobj(), burn_floor_paper(), chest_trap(), delallobj(), dighole(), dipfountain(), do_break_wand(), do_osshock(), dog_eat(), doloot(), dropy(), fire_damage(), forcelock(), gd_move(), meatmetal(), meatobj(), moverock(), mpickgold(), pickup_object(), poly_obj(), polyuse(), revive(), stealgold(), still_chewing(), take_gold(), thitmonst(), use_cream_pie(), useupf(), water_damage(), and xkilled().
const char* dfeature_at | ( | int | x, |
int | y, | ||
char * | buf | ||
) |
References a_gname(), align_str(), AM_SHRINE, Amask2align, BUFSZ, D_BROKEN, D_ISOPEN, D_NODOOR, DBWALL, defsyms, DRAWBRIDGE_DOWN, symdef::explanation, IRONBARS, IS_ALTAR, IS_DOOR, is_drawbridge_wall(), IS_FOUNTAIN, IS_GRAVE, is_ice(), is_lava(), is_pool(), IS_SINK, IS_THRONE, levl, S_dnladder, S_dnstair, S_fountain, S_grave, S_ice, S_lava, S_ndoor, S_sink, S_throne, S_tree, S_upladder, S_upstair, S_vcdbridge, S_vcdoor, S_vodbridge, S_vodoor, Sprintf, sstairs, Strcpy, stairway::sx, stairway::sy, TREE, rm::typ, stairway::up, xdnladder, xdnstair, xupladder, xupstair, ydnladder, ydnstair, yupladder, and yupstair.
Referenced by look_here().
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().
References any::a_obj, allow_all(), doname(), invdisp_nothing(), INVORDER_SORT, mi::item, PICK_NONE, QBUFSZ, query_objlist(), and Sprintf.
Referenced by bhito().
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().
References any::a_obj, add_to_minv(), allow_all(), COIN_CLASS, monst::data, GOLD_PIECE, if(), invdisp_nothing(), INVORDER_SORT, mi::item, MINV_ALL, MINV_NOLET, MON_WEP, noit_Monnam(), obj_extract_self(), OBJ_FREE, obj::oclass, obj::otyp, PICK_NONE, PICK_ONE, QBUFSZ, obj::quan, query_objlist(), s_suffix(), set_uasmon(), Sprintf, obj::where, worn_wield_only(), youmonst, and zeroobj.
Referenced by look_here(), and probe_monster().
static char display_pickinv | ( | const char * | lets, |
boolean | want_reply, | ||
long* | out_cnt, | ||
boolean | want_disp | ||
) | [static] |
References any::a_char, any::a_void, add_menu, ATR_NONE, mi::count, create_nhwindow, doname(), dump(), dump_object(), dump_subtitle(), dump_title(), end_menu, FALSE, flags, iflags, index, flag::inv_order, invent, obj::invlet, flag::invlet_constant, mi::item, let_to_name(), instance_flags::menu_headings, MENU_UNSELECTED, message_menu, NHW_MENU, NO_GLYPH, obj::nobj, obj_to_glyph, obj::oclass, otmp, flag::perm_invent, PICK_NONE, PICK_ONE, pline(), reassign(), select_menu, flag::sortpack, start_menu, TRUE, u, you::ugold, WIN_ERR, WIN_INVEN, and xprname().
Referenced by display_inventory(), dump_inventory(), and getobj().
int dolook | ( | ) |
int doorganize | ( | ) |
References ALL_CLASSES, ALLOW_COUNT, assigninvlet(), compactify(), extract_nobj(), flags, getobj(), if(), index, invent, obj::invlet, flag::invlet_constant, letter(), mergable(), merged(), Never_mind, obj::nobj, NOINVSYM, OBJ_INVENT, otmp, pline(), prinv(), QBUFSZ, quitchars, reassign(), reorder_invent(), Sprintf, STATIC_OVL, update_inventory, obj::where, and yn_function().
int doprarm | ( | ) |
References display_inventory(), FALSE, obj_to_let(), uarm, uarmc, uarmf, uarmg, uarmh, uarms, and wearing_armor().
int doprgold | ( | ) |
References currency(), invent, plur, shopper_financial_report(), u, and you::ugold.
Referenced by dotypeinv().
int doprinuse | ( | ) |
References display_inventory(), FALSE, invent, is_worn(), obj::nobj, obj_to_let(), otmp, and tool_in_use().
int doprring | ( | ) |
References display_inventory(), FALSE, obj_to_let(), uleft, and uright.
int doprtool | ( | ) |
References display_inventory(), FALSE, invent, obj::nobj, obj_to_let(), otmp, and tool_in_use().
int doprwep | ( | ) |
References body_part(), HANDED, prinv(), you::twoweap, u, uswapwep, and uwep.
int dotypeinv | ( | ) |
References any::a_int, BILLED_TYPES, BUFSZ, check_tutorial_oclass(), clear_nhwindow, COIN_CLASS, collect_obj_classes(), count_unpaid(), def_char_to_objclass(), def_oc_syms, doinvbill(), doprgold(), dounpaid(), eos(), FALSE, FDECL, flags, index, invent, flag::invlet_constant, INVORDER_SORT, mi::item, MAXOCLASSES, MENU_FULL, MENU_PARTIAL, flag::menu_style, MENU_TRADITIONAL, obj::oclass, PICK_NONE, PICK_ONE, pline(), query_category(), query_objlist(), Strcat, this_type_only(), TRUE, u, you::ugold, UNPAID_TYPES, USE_INVLET, you::ushops, WIN_MESSAGE, and yn_function().
STATIC_OVL void dounpaid | ( | ) |
References obj::cobj, CONTAINED_SYM, cost(), count_unpaid(), create_nhwindow, destroy_nhwindow, display_nhwindow, distant_name(), doname(), FALSE, find_unpaid(), flags, Has_contents, flag::inv_order, invent, obj::invlet, flag::invlet_constant, let_to_name(), NHW_MENU, obj::nobj, obj::oclass, otmp, pline(), putstr, reassign(), flag::sortpack, TRUE, unpaid_cost(), and xprname().
Referenced by dotypeinv().
References display_pickinv().
Referenced by disclose().
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 void FDECL | ( | invdisp_nothing | , |
(const char *, const char *) | |||
) |
STATIC_DCL void FDECL | ( | compactify | , |
(char *) | |||
) |
STATIC_DCL boolean FDECL | ( | taking_off | , |
(const char *) | |||
) |
STATIC_DCL void FDECL | ( | menu_identify | , |
(int) | |||
) |
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().
References Has_contents, and obj::nobj.
Referenced by dounpaid().
void free_invbuf | ( | ) |
void freeinv | ( | struct obj * | obj ) |
References extract_nobj(), freeinv_core(), invent, and update_inventory.
Referenced by ballfall(), do_break_wand(), doeat(), dog_eat(), doloot(), drop(), dropx(), goto_level(), hmon_hitmon(), in_container(), light_cocktail(), obj_extract_self(), paygd(), shopdig(), steal(), stealamulet(), stealarm(), throw_gold(), throw_obj(), touchfood(), use_mirror(), use_misc(), and useupall().
void freeinv_core | ( | struct obj * | obj ) |
References AMULET_OF_YENDOR, BELL_OF_OPENING, flag::botl, CANDELABRUM_OF_INVOCATION, COIN_CLASS, confers_luck(), curse(), FALSE, FIG_TRANSFORM, FIGURINE, flags, is_quest_artifact(), LOADSTONE, set_artifact_intrinsic(), set_moreluck(), SPE_BOOK_OF_THE_DEAD, stop_timer(), u, you::ugold, you::uhave, and W_ART.
Referenced by freeinv(), and poly_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().
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().
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().
int ggetobj | ( | char * | word, |
fn | , | ||
int FDECL((*fn) | mx, | ||
boolean | combo, | ||
unsigned * | resultflags | ||
) | const |
References add_valid_menu_class(), ALL_FINISHED, AMULET_CLASS, ARMOR_CLASS, askchain(), flag::botl, BUC_BLESSED, BUC_CURSED, BUC_UNCURSED, BUC_UNKNOWN, BUFSZ, ckunpaid(), ckvalidcat(), COIN_CLASS, collect_obj_classes(), count_buc(), count_unpaid(), def_char_to_objclass(), display_inventory(), FALSE, FDECL, flags, getlin, index, invent, is_worn(), MAXOCLASSES, flag::menu_style, MENU_TRADITIONAL, mkgoldobj(), not_fully_identified(), obj::oclass, pline(), QBUFSZ, RING_CLASS, Sprintf, strkitten(), taking_off(), TOOL_CLASS, TRUE, u, uamul, ublindf, you::ugold, uleft, uquiver, uright, uswapwep, uwep, VENOM_CLASS, WEAPON_CLASS, and wearing_armor().
Referenced by doddoremarm(), doddrop(), identify_pack(), menu_drop(), and menu_remarm().
boolean have_lizard | ( | ) |
struct obj* hold_another_object | ( | struct obj * | obj, |
const char * | drop_fmt, | ||
const char * | drop_arg, | ||
const char * | hold_msg | ||
) | [read] |
References addinv(), ammo_and_launcher, flag::autoquiver, Blind, BUFSZ, CRYSKNIFE, dropx(), dropy(), flags, Fumbling, inv_cnt(), is_missile, LOADSTONE, MOD_ENCUMBER, near_capacity(), obj_extract_self(), obj::owornmask, place_object(), pline(), prinv(), setuqwep(), splitobj(), touch_artifact(), u, Upolyd, uquiver, uswapwep, uwep, you::ux, you::uy, and youmonst.
Referenced by arti_invoke(), bagotricks(), dip(), doapply(), dowrite(), light_cocktail(), loot_mon(), m_throw(), makewish(), opentin(), steal_it(), use_tinning_kit(), and use_whip().
int identify | ( | struct obj * | otmp ) |
References fully_identify_obj(), and prinv().
Referenced by identify_pack(), and menu_identify().
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().
STATIC_OVL void invdisp_nothing | ( | char * | hdr, |
char * | txt | ||
) | const |
References any::a_void, add_menu, ATR_NONE, create_nhwindow, destroy_nhwindow, end_menu, iflags, instance_flags::menu_headings, MENU_UNSELECTED, NHW_MENU, NO_GLYPH, PICK_NONE, select_menu, and start_menu.
Referenced by display_cinventory(), and display_minventory().
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().
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().
int look_here | ( | int | obj_cnt, |
boolean | picked_some | ||
) |
References an(), Blind, BUFSZ, can_reach_floor(), CORPSE, create_nhwindow, defsyms, destroy_nhwindow, dfeature_at(), display_minventory(), display_nhwindow, doname(), doname_with_price(), symdef::explanation, FALSE, feel_cockatrice(), iflags, Is_airlevel, is_lava(), is_pool(), Is_waterlevel, level, mbodypart(), MINV_ALL, monst::minvent, mon_nam(), NHW_MENU, obj::nobj, dlevel_t::objects, otmp, obj::otyp, instance_flags::pilesize, pline(), putstr, read_engr_at(), s_suffix(), See_invisible, Sprintf, STOMACH, Strcat, Strcpy, surface(), t_at(), trap_to_defsym, TRUE, u, Underwater, you::ustuck, you::ux, you::uy, you::uz, will_feel_cockatrice(), and WIN_MESSAGE.
Referenced by check_here(), dolook(), and query_objlist().
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().
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().
References inhishop(), inside_shop(), invent, mergable(), OBJ_FLOOR, SCR_SCARE_MONSTER, shop_keeper(), and obj::where.
Referenced by damageum(), dog_eat(), and lift_object().
References obj::age, carried, COIN_CLASS, mcarried, mergable(), MON_WEP, obfree(), obj_extract_self(), obj_merge_light_sources(), obj_stop_timers(), obj::oclass, ONAME, oname(), obj::onamelth, otmp, obj::owornmask, obj::owt, obj::quan, setnotworn(), setworn(), W_QUIVER, W_SWAPWEP, W_WEP, and weight().
Referenced by add_to_container(), add_to_minv(), addinv(), askchain(), doorganize(), menu_loot(), stackobj(), and zapyourself().
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().
STATIC_DCL void NDECL | ( | reorder_invent | ) |
STATIC_DCL void NDECL | ( | dounpaid | ) |
References Has_contents, and obj::nobj.
Referenced by bp_to_obj(), and find_oid().
References FALSE, level, dlevel_t::objects, otmp, and TRUE.
Referenced by eatfood(), in_container(), and opentin().
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().
References nhcoord::x, and nhcoord::y.
Referenced by display_binventory().
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().
STATIC_OVL boolean putting_on | ( | char * | action ) | const |
void reassign | ( | ) |
References invent, obj::invlet, and obj::nobj.
Referenced by display_pickinv(), doorganize(), dounpaid(), obj_to_let(), and parseoptions().
STATIC_OVL void reorder_invent | ( | ) |
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().
struct obj* sobj_at | ( | int | n, |
int | x, | ||
int | y | ||
) | [read] |
References level, dlevel_t::objects, otmp, and obj::otyp.
Referenced by activate_statue_trap(), bad_rock(), badpos(), bhit(), blocked_boulder(), could_reach_item(), destroy_drawbridge(), dig(), dig_check(), dig_typ(), dighole(), do_earthquake(), do_flood(), do_look(), dokick(), domove(), dotrap(), feel_location(), figurine_location_checks(), fill_empty_maze(), fill_pit(), find_defensive(), find_misc(), findtravelpath(), goodpos(), gulpmu(), gush(), hurtle_step(), its_dead(), launch_obj(), m_move(), mdig_tunnel(), melt_ice(), mfndpos(), mintrap(), mkinvpos(), mktrap(), mkundead(), moverock(), onscary(), scatter(), shk_move(), slip_or_trip(), still_chewing(), test_move(), try_disarm(), u_entered_shop(), use_pick_axe2(), use_whip(), and xkilled().
void stackobj | ( | struct obj * | obj ) |
References level, merged(), dlevel_t::objects, and otmp.
Referenced by cnv_trap_obj(), create_object(), doeat(), dosit(), dotrap(), drop_boulder_on_monster(), drop_boulder_on_player(), drop_throw(), dropy(), forcelock(), kick_object(), make_corpse(), mdrop_obj(), mkroll_launch(), monstone(), move_gold(), obj_delivery(), paygd(), possibly_unwield(), scatter(), start_tin(), thitm(), throw_gold(), throwit(), unearth_objs(), use_whip(), xkilled(), zap_dig(), and zap_updown().
STATIC_OVL boolean taking_off | ( | char * | action ) | const |
References FALSE, LEASH, STEED, TOOL_CLASS, TRUE, uwep, and W_TOOL.
Referenced by doprinuse(), and doprtool().
void useup | ( | struct obj * | obj ) |
References FALSE, update_inventory, useupall(), and weight().
Referenced by Amulet_on(), backfire(), break_armor(), confused_book(), consume_offering(), container_impact_dmg(), destroy_arm(), destroy_item(), dip(), dipfountain(), disarm_squeaky_board(), dodip(), dodrink(), doeat(), done(), done_eating(), dopotion(), doread(), dosacrifice(), dowrite(), dozap(), eatcorpse(), eatspecial(), engrave(), fix_worst_trouble(), forcelock(), hatch_egg(), hitmu(), hmon_hitmon(), in_container(), inven_inuse(), lava_effects(), learn(), opentin(), recharge(), revive(), seffects(), set_trap(), strange_feeling(), study_book(), use_bell(), use_crystal_ball(), use_figurine(), use_stone(), use_tinning_kit(), and wand_explode().
void useupall | ( | struct obj * | obj ) |
References freeinv(), obfree(), and setnotworn().
Referenced by chwepon(), eatspecial(), hmon_hitmon(), lava_effects(), use_candle(), and useup().
void useupf | ( | struct obj * | obj, |
long | numused | ||
) |
References addtobill(), costly_spot(), monst::data, delobj(), FALSE, hides_under, in_rooms(), index, OBJ_AT, otmp, obj::ox, obj::oy, splitobj(), stolen_value(), u, you::urooms, you::ux, you::uy, and youmonst.
Referenced by burn_floor_paper(), consume_offering(), doeat(), done_eating(), dosacrifice(), eatcorpse(), eatspecial(), in_container(), opentin(), pickup_object(), and use_tinning_kit().
boolean wearing_armor | ( | ) |
References Blind, CORPSE, FALSE, mons, Stone_resistance, touch_petrifies, TRUE, and uarmg.
Referenced by feel_cockatrice(), look_here(), and query_objlist().
References AMULET_CLASS, ARMOR_CLASS, RING_CLASS, TOOL_CLASS, and WEAPON_CLASS.
Referenced by display_minventory().
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().
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[] |
{ 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().
NEARDATA const char* oth_names[] [static] |
{
"Bagged/Boxed items"
}
NEARDATA const char oth_symbols[] [static] |
{ CONTAINED_SYM, '\0' }
NEARDATA const char removeables[] [static] |
{ ARMOR_CLASS, WEAPON_CLASS, RING_CLASS, AMULET_CLASS, TOOL_CLASS, 0 }
int this_type [static] |