#include "hack.h"
#include "edog.h"
Data Structures | |
struct | trapinfo |
Defines | |
#define | MAXLEASHED 2 |
#define | WEAK 3 |
#define | PROP_COUNT 6 |
#define | prop2trbl(X) ((X) + A_MAX) |
#define | attr2trbl(Y) (Y) |
#define | prop_trouble(X) trouble_list[trouble_count++] = prop2trbl(X) |
#define | attr_trouble(Y) trouble_list[trouble_count++] = attr2trbl(Y) |
#define | BY_OBJECT ((struct monst *)0) |
Functions | |
STATIC_DCL int | FDECL (use_towel,(struct obj *)) |
STATIC_DCL boolean | FDECL (its_dead,(int, int, int *, struct obj *)) |
STATIC_DCL int | FDECL (use_stethoscope,(struct obj *)) |
STATIC_DCL void | FDECL (use_whistle,(struct obj *)) |
STATIC_DCL void | FDECL (use_magic_whistle,(struct obj *)) |
STATIC_DCL void | FDECL (use_leash,(struct obj *)) |
STATIC_DCL int | FDECL (use_mirror,(struct obj *)) |
STATIC_DCL void | FDECL (use_bell,(struct obj **)) |
STATIC_DCL void | FDECL (use_candelabrum,(struct obj *)) |
STATIC_DCL void | FDECL (use_candle,(struct obj **)) |
STATIC_DCL void | FDECL (use_lamp,(struct obj *)) |
STATIC_DCL void | FDECL (light_cocktail,(struct obj *)) |
STATIC_DCL void | FDECL (use_tinning_kit,(struct obj *)) |
STATIC_DCL void | FDECL (use_figurine,(struct obj **)) |
STATIC_DCL void | FDECL (use_grease,(struct obj *)) |
STATIC_DCL void | FDECL (use_trap,(struct obj *)) |
STATIC_DCL void | FDECL (use_stone,(struct obj *)) |
STATIC_PTR int | NDECL (set_trap) |
STATIC_DCL int | FDECL (use_whip,(struct obj *)) |
STATIC_DCL int | FDECL (use_pole,(struct obj *)) |
STATIC_DCL int | FDECL (use_cream_pie,(struct obj *)) |
STATIC_DCL int | FDECL (use_grapple,(struct obj *)) |
STATIC_DCL int | FDECL (do_break_wand,(struct obj *)) |
STATIC_DCL boolean | FDECL (figurine_location_checks,(struct obj *, coord *, BOOLEAN_P)) |
STATIC_DCL boolean | NDECL (uhave_graystone) |
STATIC_DCL void | FDECL (add_class,(char *, CHAR_P)) |
STATIC_OVL int | use_towel (struct obj *obj) |
STATIC_OVL boolean | its_dead (int rx, int ry, int *resp, struct obj *tobj) |
STATIC_OVL int | use_stethoscope (struct obj *obj) |
STATIC_OVL void | use_whistle (struct obj *obj) |
STATIC_OVL void | use_magic_whistle (struct obj *obj) |
boolean | um_dist (xchar x, xchar y, xchar n) |
int | number_leashed () |
void | o_unleash (struct obj *otmp) |
void | m_unleash (struct monst *mtmp, boolean feedback) |
void | unleash_all () |
STATIC_OVL void | use_leash (struct obj *obj) |
struct obj * | get_mleash (struct monst *mtmp) |
boolean | next_to_u () |
void | check_leash (xchar x, xchar y) |
STATIC_OVL int | use_mirror (struct obj *obj) |
STATIC_OVL void | use_bell (struct obj **optr) |
STATIC_OVL void | use_candelabrum (struct obj *obj) |
STATIC_OVL void | use_candle (struct obj **optr) |
boolean | snuff_candle (struct obj *otmp) |
boolean | snuff_lit (struct obj *obj) |
boolean | catch_lit (struct obj *obj) |
STATIC_OVL void | use_lamp (struct obj *obj) |
STATIC_OVL void | light_cocktail (struct obj *obj) |
int | dorub () |
int | dojump () |
int | jump (int magic) |
boolean | tinnable (struct obj *corpse) |
STATIC_OVL void | use_tinning_kit (struct obj *obj) |
void | fix_attributes_and_properties (struct obj *obj, int attr_point) |
void | fig_transform (genericptr_t arg, long timeout) |
STATIC_OVL boolean | figurine_location_checks (struct obj *obj, coord *cc, boolean quietly) |
STATIC_OVL void | use_figurine (struct obj **optr) |
STATIC_OVL void | use_grease (struct obj *obj) |
void | reset_trapset () |
STATIC_OVL void | use_stone (struct obj *tstone) |
STATIC_OVL void | use_trap (struct obj *otmp) |
STATIC_PTR int | set_trap () |
STATIC_OVL int | use_whip (struct obj *obj) |
STATIC_OVL int | use_pole (struct obj *obj) |
STATIC_OVL int | use_cream_pie (struct obj *obj) |
STATIC_OVL int | use_grapple (struct obj *obj) |
STATIC_OVL int | do_break_wand (struct obj *obj) |
STATIC_OVL boolean | uhave_graystone () |
STATIC_OVL void | add_class (char *cl, char class) |
int | doapply () |
int | unfixable_trouble_count (boolean is_horn) |
Variables | |
static const char | tools [] = { TOOL_CLASS, WEAPON_CLASS, WAND_CLASS, 0 } |
static const char | tools_too [] |
static const char | no_elbow_room [] = "don't have enough elbow-room to maneuver." |
static const char | hollow_str [] = "a hollow sound. This must be a secret %s!" |
static const char | whistle_str [] = "produce a %s whistling sound." |
static const char | look_str [] = "look %s." |
static NEARDATA const char | cuddly [] = { TOOL_CLASS, GEM_CLASS, 0 } |
static NEARDATA const char | lubricables [] = { ALL_CLASSES, ALLOW_NONE, 0 } |
static NEARDATA const char | need_to_remove_outer_armor [] = "need to remove your %s to grease your %s." |
static struct trapinfo | trapinfo |
static const char | not_enough_room [] = "There's not enough room here to use that." |
static const char | where_to_hit [] = "Where do you want to hit?" |
static const char | cant_see_spot [] = "won't hit anything if you can't see that spot." |
static const char | cant_reach [] = "can't reach that spot from here." |
#define attr2trbl | ( | Y ) | (Y) |
#define attr_trouble | ( | Y ) | trouble_list[trouble_count++] = attr2trbl(Y) |
Referenced by fix_attributes_and_properties().
#define BY_OBJECT ((struct monst *)0) |
Referenced by do_break_wand().
#define MAXLEASHED 2 |
Referenced by use_leash().
#define prop2trbl | ( | X ) | ((X) + A_MAX) |
Referenced by fix_attributes_and_properties().
#define PROP_COUNT 6 |
Referenced by fix_attributes_and_properties().
#define prop_trouble | ( | X ) | trouble_list[trouble_count++] = prop2trbl(X) |
Referenced by fix_attributes_and_properties().
#define WEAK 3 |
Referenced by fix_attributes_and_properties(), in_trouble(), and use_mirror().
STATIC_OVL void add_class | ( | char * | cl, |
char | class | ||
) |
References begin_burn(), bill_dummy_object(), Blind, BRASS_LANTERN, CANDELABRUM_OF_INVOCATION, cansee, check_unpaid(), costly_spot(), FALSE, get_obj_location(), ignitable, MAGIC_LAMP, makeknown, OBJ_INVENT, OBJ_MINVENT, OIL_LAMP, otense(), pline(), POT_OIL, rn2(), TRUE, u, you::ux, you::uy, and Yname2().
Referenced by dip(), and fire_damage().
References breathless, monst::data, DEADMONSTER, dist2(), FALSE, fmon, growl(), invent, u_conduct::killer, LEASH, monst::m_id, m_unleash(), monst::mhp, mon_nam(), Monnam(), MS_SILENT, permonst::msound, monst::mtame, monst::mx, monst::my, monst::nmon, obj::nobj, otmp, obj::otyp, pline(), rn2(), rnd(), s_suffix(), u, you::uconduct, um_dist(), you::ux, you::uy, whimper(), xkilled(), and yelp().
Referenced by domove(), move_into_trap(), and moveloop().
STATIC_OVL int do_break_wand | ( | struct obj * | obj ) |
References A_STR, ACURR, bhitm(), bhito(), bhitpile(), bhitpos, bill_dummy_object(), body_part(), bot(), flag::botl, BUFSZ, BY_OBJECT, Can_dig_down(), check_unpaid(), current_wand, d(), monst::data, delobj(), dig_check(), digactualhole(), EXPL_FIERY, EXPL_FROSTY, EXPL_MAGICAL, explode(), FALSE, flags, freeinv(), HEAD, HOLE, in_rooms(), IS_DOOR, IS_WALL, isok(), level, levl, litroom(), losehp(), m_at, makeknown, makemon(), mon, NO_KILLER_PREFIX, NO_MM_FLAGS, nohands, nomul(), dlevel_t::objects, pay_for_damage(), PIT, pline(), QBUFSZ, rn2(), rnd(), safe_qbuf(), setnotworn(), SHOPBASE, Sprintf, Strcpy, TRUE, u, uhim, you::ux, you::uy, you::uz, WAN_CANCELLATION, WAN_COLD, WAN_CREATE_MONSTER, WAN_DEATH, WAN_DIGGING, WAN_ENLIGHTENMENT, WAN_FIRE, WAN_LIGHT, WAN_LIGHTNING, WAN_LOCKING, WAN_MAGIC_MISSILE, WAN_NOTHING, WAN_OPENING, WAN_POLYMORPH, WAN_PROBING, WAN_SECRET_DOOR_DETECTION, WAN_STRIKING, WAN_TELEPORTATION, WAN_UNDEAD_TURNING, WAN_WISHING, WAND_CLASS, watch_dig(), nhcoord::x, xdir, nhcoord::y, ydir, yn, yname(), youmonst, ysimple_name(), and zapyourself().
Referenced by doapply().
int doapply | ( | ) |
References add_class(), aobjnam(), arti_speak(), BAG_OF_HOLDING, BAG_OF_TRICKS, bagotricks(), BEARTRAP, BELL, BELL_OF_OPENING, Blind, Blindf_off(), Blindf_on(), BLINDFOLD, BRASS_LANTERN, BUFSZ, BUGLE, BULLWHIP, CAN_OF_GREASE, CANDELABRUM_OF_INVOCATION, carrying(), check_capacity(), CHEST, consume_obj_charge(), CREAM_PIE, CREDIT_CARD, CRYSTAL_BALL, cursed(), do_break_wand(), do_play_instrument(), dowrite(), DRUM_OF_EARTHQUAKE, DWARVISH_MATTOCK, EUCALYPTUS_LEAF, EXPENSIVE_CAMERA, FALSE, FIGURINE, FIRE_HORN, fix_attributes_and_properties(), flags, FLINT, FOOD_CLASS, FOOD_RATION, FROST_HORN, getobj(), GRAPPLING_HOOK, hcolor(), hold_another_object(), HORN_OF_PLENTY, ICE, ICE_BOX, IRON_SAFE, IRONBARS, Is_airlevel, is_axe, is_pick, is_pole, Is_waterlevel, LAND_MINE, LARGE_BOX, LEASH, LEATHER_DRUM, LENSES, levl, light_cocktail(), LOADSTONE, LOCK_PICK, LUCKSTONE, LUMP_OF_ROYAL_JELLY, MAGIC_FLUTE, MAGIC_HARP, MAGIC_LAMP, MAGIC_MARKER, MAGIC_WHISTLE, makeknown, MAXOCLASSES, MIRROR, mkobj(), nomul(), nothing_happens, obj::oartifact, objects, obj::oclass, OIL_LAMP, OILSKIN_SACK, otmp, obj::otyp, obj::owt, PICK_AXE, pick_lock(), pline(), POT_BOOZE, POT_OIL, POT_SICKNESS, POT_WATER, POTION_CLASS, rn2(), rnd_class(), SACK, SADDLE, Shk_Your(), SKELETON_KEY, obj::spe, STETHOSCOPE, Strcpy, TALLOW_CANDLE, The(), TIN, TIN_OPENER, TIN_WHISTLE, TINNING_KIT, TOOLED_HORN, tools, tools_too, touch_artifact(), TOUCHSTONE, TOWEL, TRUE, u, ublindf, uhave_graystone(), unbless(), UNICORN_HORN, use_bell(), use_candelabrum(), use_candle(), use_container(), use_cream_pie(), use_crystal_ball(), use_figurine(), use_grapple(), use_grease(), use_lamp(), use_leash(), use_magic_whistle(), use_mirror(), use_pick_axe(), use_pole(), use_stethoscope(), use_stone(), use_tinning_kit(), use_towel(), use_trap(), use_whip(), use_whistle(), uwep, you::ux, you::uy, you::uz, flag::verbose, WAND_CLASS, WAX_CANDLE, weight(), what, WOODEN_FLUTE, WOODEN_HARP, and youmonst.
int dojump | ( | ) |
int dorub | ( | ) |
References obj::age, begin_burn(), Blind, BRASS_LANTERN, check_unpaid_usage(), djinni_from_bottle(), GEM_CLASS, getobj(), is_graystone, MAGIC_LAMP, makeknown, nothing_happens, obj::oclass, OIL_LAMP, obj::otyp, pline(), rn1, rn2(), obj::spe, TRUE, update_inventory, use_stone(), uwep, and wield_tool().
STATIC_DCL void FDECL | ( | use_bell | , |
(struct obj **) | |||
) |
STATIC_DCL void FDECL | ( | use_trap | , |
(struct obj *) | |||
) |
STATIC_DCL void FDECL | ( | use_stone | , |
(struct obj *) | |||
) |
STATIC_DCL void FDECL | ( | use_whistle | , |
(struct obj *) | |||
) |
STATIC_DCL void FDECL | ( | use_candelabrum | , |
(struct obj *) | |||
) |
STATIC_DCL int FDECL | ( | use_whip | , |
(struct obj *) | |||
) |
STATIC_DCL int FDECL | ( | use_towel | , |
(struct obj *) | |||
) |
STATIC_DCL void FDECL | ( | use_magic_whistle | , |
(struct obj *) | |||
) |
STATIC_DCL void FDECL | ( | use_candle | , |
(struct obj **) | |||
) |
STATIC_DCL int FDECL | ( | use_pole | , |
(struct obj *) | |||
) |
STATIC_DCL int FDECL | ( | use_cream_pie | , |
(struct obj *) | |||
) |
STATIC_DCL int FDECL | ( | use_grapple | , |
(struct obj *) | |||
) |
STATIC_DCL void FDECL | ( | use_lamp | , |
(struct obj *) | |||
) |
STATIC_DCL int FDECL | ( | do_break_wand | , |
(struct obj *) | |||
) |
STATIC_DCL int FDECL | ( | use_stethoscope | , |
(struct obj *) | |||
) |
STATIC_DCL void FDECL | ( | use_leash | , |
(struct obj *) | |||
) |
STATIC_DCL void FDECL | ( | light_cocktail | , |
(struct obj *) | |||
) |
STATIC_DCL void FDECL | ( | use_tinning_kit | , |
(struct obj *) | |||
) |
STATIC_DCL void FDECL | ( | add_class | , |
(char *, CHAR_P) | |||
) |
STATIC_DCL int FDECL | ( | use_mirror | , |
(struct obj *) | |||
) |
STATIC_DCL void FDECL | ( | use_figurine | , |
(struct obj **) | |||
) |
STATIC_DCL void FDECL | ( | use_grease | , |
(struct obj *) | |||
) |
void fig_transform | ( | genericptr_t | arg, |
long | timeout | ||
) |
References a_monnam(), an(), Blind, BUFSZ, cansee, canseemon, obj::corpsenm, monst::data, enexto(), FALSE, FIG_TRANSFORM, figurine_location_checks(), get_obj_location(), is_pool(), locomotion(), m_monnam(), make_familiar(), mon, mons, monstermoves, monst::mx, monst::my, newsym(), obfree(), obj_extract_self(), OBJ_FLOOR, OBJ_INVENT, OBJ_MIGRATING, OBJ_MINVENT, pline(), rnd(), s_suffix(), something, Sprintf, start_timer(), Strcpy, TIMER_OBJECT, TRUE, obj::where, nhcoord::x, and nhcoord::y.
References BOULDER, carried, FALSE, IS_ROCK, IS_TREE, isok(), levl, may_passwall(), mons, passes_walls, sobj_at(), throws_rocks, TRUE, u, nhcoord::x, and nhcoord::y.
Referenced by fig_transform(), and use_figurine().
void fix_attributes_and_properties | ( | struct obj * | obj, |
int | attr_point | ||
) |
References A_CON, A_MAX, A_STR, ABASE, ACURR, adjattrib(), AMAX, attr_trouble, BLINDED, Blinded, flag::botl, CONFUSION, Confusion, d(), FALSE, flags, HALLUC, Hallucination, HConfusion, HHallucination, HStun, make_blinded(), make_confused(), make_hallucinated(), make_sick(), make_stunned(), make_vomiting(), nothing_happens, pline(), prop2trbl, PROP_COUNT, prop_trouble, rn1, rn2(), rnd(), SICK, Sick, SICK_ALL, SICK_NONVOMITABLE, STUNNED, TRUE, u, you::ucreamed, you::uhs, unfixable_trouble_count(), VOMITING, Vomiting, WEAK, and xname().
Referenced by doapply(), domonability(), and dosit().
References can_reach_floor(), CORPSE, obj::corpsenm, FALSE, Hallucination, IRON_SAFE, permonst::mname, mons, otmp, obj::otyp, pick_lock(), pline(), PM_HEALER, Role_if, sobj_at(), STATUE, STATUE_TRAP, t_at(), The(), TRUE, u, you::ux, you::uy, and vobj_at.
Referenced by use_stethoscope().
int jump | ( | int | magic ) |
References A_STR, ACURR, body_part(), BOTH_SIDES, bp, cansee, change_luck(), Conflict, monst::data, deltrap(), distu, EJumping, getpos(), HJumping, hurtle_step(), In_sokoban, INTRINSIC, Is_airlevel, Is_waterlevel, isok(), Jumping, KILLED_BY, LEFT_SIDE, LEG, Levitation, losehp(), makeplural(), mon_nam(), Monnam(), morehungry(), monst::mtame, near_capacity(), nolimbs, nomovemsg, nomul(), pline(), RIGHT_SIDE, rn1, rn2(), rnd(), set_wounded_legs(), slithy, t_at(), teleds(), TRUE, TT_BEARTRAP, TT_INFLOOR, TT_LAVA, TT_PIT, TT_WEB, u, you::uhunger, UNENCUMBERED, you::ustuck, you::utrap, you::utraptype, you::ux, you::uy, you::uz, walk_path(), Wounded_legs, nhcoord::x, nhcoord::y, and youmonst.
Referenced by dojump(), and spelleffects().
STATIC_OVL void light_cocktail | ( | struct obj * | obj ) |
References addinv(), begin_burn(), bill_dummy_object(), Blind, BUFSZ, check_unpaid(), costly_spot(), doname(), end_burn(), FALSE, freeinv(), hold_another_object(), makeknown, obj_extract_self(), shk_your(), splitobj(), TRUE, u, Underwater, you::ux, and you::uy.
Referenced by doapply().
References canseemon, invent, LEASH, mhis, Monnam(), obj::nobj, otmp, obj::otyp, and pline().
Referenced by abuse_dog(), check_leash(), dog_move(), domove(), keepdogs(), m_detach(), migrate_to_level(), mon_catchup_elapsed_time(), teleport_pet(), and wary_dog().
STATIC_PTR int NDECL | ( | set_trap | ) |
STATIC_DCL boolean NDECL | ( | uhave_graystone | ) |
boolean next_to_u | ( | ) |
References DEADMONSTER, distu, FALSE, fmon, invent, LEASH, monst::m_id, mnexto(), mon_has_amulet(), monst::mx, monst::my, monst::nmon, obj::nobj, number_leashed(), otmp, obj::otyp, TRUE, and u.
Referenced by digactualhole(), dodown(), domagicportal(), dotele(), doup(), fall_through(), level_tele(), moveloop(), and tele_trap().
int number_leashed | ( | ) |
References invent, LEASH, obj::nobj, and obj::otyp.
Referenced by drown(), gulpmu(), next_to_u(), and use_leash().
void o_unleash | ( | struct obj * | otmp ) |
References fmon, monst::m_id, and monst::nmon.
Referenced by bury_an_obj(), eatspecial(), obfree(), and steal().
void reset_trapset | ( | ) |
References trapinfo::force_bungle, and trapinfo::tobj.
Referenced by reset_occupations(), set_trap(), and use_trap().
STATIC_PTR int set_trap | ( | ) |
References add_damage(), BEAR_TRAP, carried, defsyms, dotrap(), trapinfo::force_bungle, FORCEBUNGLE, Fumbling, in_rooms(), LAND_MINE, LANDMINE, maketrap(), newsym(), otmp, obj::otyp, reset_trapset(), rnl(), SHOPBASE, the(), trapinfo::time_needed, trapinfo::tobj, trap_to_defsym, trapinfo::tx, trapinfo::ty, u, useup(), you::ux, you::uy, and what_trap.
Referenced by use_trap().
References Blind, BUFSZ, CANDELABRUM_OF_INVOCATION, cansee, end_burn(), FALSE, get_obj_location(), Is_candle, OBJ_MINVENT, pline(), Shk_Your(), and TRUE.
Referenced by kick_object(), snuff_lit(), and throwit().
References Blind, BRASS_LANTERN, cansee, end_burn(), FALSE, get_obj_location(), MAGIC_LAMP, OBJ_MINVENT, OIL_LAMP, otense(), pline(), POT_OIL, snuff_candle(), TRUE, and Yname2().
Referenced by dotrap(), get_wet(), gulpmm(), gulpmu(), gulpum(), in_container(), litroom(), mintrap(), and water_damage().
References permonst::cnutrit, CORPSE, and mons.
Referenced by floorfood(), and getobj().
STATIC_OVL boolean uhave_graystone | ( | ) |
References u, you::ux, and you::uy.
Referenced by check_leash(), dochug(), expels(), gd_move(), pay_for_damage(), and shopdig().
int unfixable_trouble_count | ( | boolean | is_horn ) |
References Confusion, HHallucination, HStun, Sick, Slimed, STEED, Stoned, Strangled, u, Vomiting, and Wounded_legs.
Referenced by fix_attributes_and_properties(), and peffects().
void unleash_all | ( | ) |
References fmon, invent, LEASH, monst::nmon, obj::nobj, otmp, and obj::otyp.
Referenced by drown(), finish_paybill(), gulpmu(), and savebones().
STATIC_OVL void use_bell | ( | struct obj ** | optr ) |
References a_monnam(), obj::age, AMII_LOUDER_VOLUME, AMII_MUFFLED_VOLUME, AMII_OKAY_VOLUME, AMII_SOFT_VOLUME, BELL_OF_OPENING, consume_obj_charge(), FALSE, findit(), G_GONE, invocation_pos(), makeknown, makemon(), mkclass(), mkundead(), mon_adjust_speed(), moves, NO_MINVENT, nomovemsg, nomul(), nothing_happens, obj_resists(), On_stairs(), openit(), obj::otyp, pline(), PM_MOUNTAIN_NYMPH, PM_WATER_NYMPH, PM_WOOD_NYMPH, rn2(), rnd(), S_NYMPH, Something, obj::spe, the(), Tobjnam(), TRUE, u, uchain, Underwater, unpunish(), useup(), you::ux, you::uy, wake_nearby(), nhcoord::x, xname(), and nhcoord::y.
Referenced by doapply().
STATIC_OVL void use_candelabrum | ( | struct obj * | obj ) |
References begin_burn(), Blind, end_burn(), FALSE, invocation_pos(), pline(), The(), the(), Tobjnam(), TRUE, u, Underwater, you::ux, you::uy, vtense(), and xname().
Referenced by doapply().
STATIC_OVL void use_candle | ( | struct obj ** | optr ) |
References obj::age, CANDELABRUM_OF_INVOCATION, carrying(), end_burn(), eos(), if(), obj_merge_light_sources(), otmp, obj::otyp, pline(), QBUFSZ, obj::quan, safe_qbuf(), simple_typename(), obj::spe, splitobj(), Sprintf, The(), the(), TRUE, u, Underwater, use_lamp(), useupall(), vtense(), xname(), and yn.
Referenced by doapply().
STATIC_OVL int use_cream_pie | ( | struct obj * | obj ) |
References AT_WEAP, bill_dummy_object(), Blind, Blinded, body_part(), can_blnd(), delobj(), FACE, FALSE, Hallucination, make_blinded(), makeplural(), obj_extract_self(), pline(), rnd(), splitobj(), the(), TRUE, u, you::ucreamed, xname(), and youmonst.
Referenced by doapply().
STATIC_OVL void use_figurine | ( | struct obj ** | optr ) |
References you::dx, you::dy, you::dz, FALSE, FIG_TRANSFORM, figurine_location_checks(), flags, getdir(), Is_airlevel, is_pool(), Is_waterlevel, make_familiar(), flag::move, multi, stop_timer(), u, useup(), you::ux, you::uy, you::uz, nhcoord::x, and nhcoord::y.
Referenced by doapply().
STATIC_OVL int use_grapple | ( | struct obj * | obj ) |
References any::a_int, any::a_void, add_menu, ATR_NONE, bigmonst, BUFSZ, cansee, cant_reach, cant_see_spot, couldsee, create_nhwindow, monst::data, destroy_nhwindow, distu, end_menu, enexto(), FALSE, getpos(), hurtle(), IS_AIR, is_pool(), mi::item, KILLED_BY, level, levl, losehp(), m_at, MENU_UNSELECTED, mon_nam(), newsym(), NHW_MENU, NO_GLYPH, not_enough_room, nothing_happens, dlevel_t::objects, otmp, P_BASIC, P_NONE, P_SKILL, P_SKILLED, PICK_ONE, pickup_object(), pline(), rloc_to(), rn1, rn2(), select_menu, sgn(), spoteffects(), Sprintf, start_menu, strongmonst, surface(), thitmonst(), TRUE, u, uwep, uwep_skill_type(), you::ux, you::uy, verysmall, where_to_hit, wield_tool(), nhcoord::x, and nhcoord::y.
Referenced by doapply().
STATIC_OVL void use_grease | ( | struct obj * | obj ) |
References body_part(), BUFSZ, consume_obj_charge(), monst::data, dropx(), FINGER, Fumbling, getobj(), Glib, HAND, incr_itimeout(), makeplural(), nohands, otmp, obj::owornmask, pline(), rn2(), rnd(), Strcat, Strcpy, Tobjnam(), TRUE, uarm, uarmc, update_inventory, WORN_ARMOR, xname(), yname(), youmonst, and zeroobj.
Referenced by doapply().
STATIC_OVL void use_lamp | ( | struct obj * | obj ) |
References begin_burn(), bill_dummy_object(), Blind, BRASS_LANTERN, BUFSZ, check_unpaid(), costly_spot(), end_burn(), FALSE, Is_candle, MAGIC_LAMP, objects, objclass::oc_cost, OIL_LAMP, otense(), pline(), plur, rn2(), s_suffix(), Shk_Your(), Tobjnam(), TRUE, u, Underwater, you::ux, you::uy, xname(), yname(), and Yname2().
Referenced by doapply(), and use_candle().
STATIC_OVL void use_leash | ( | struct obj * | obj ) |
References canspotmon, you::dz, get_adjacent_loc(), l_monnam(), m_at, monst::m_id, MAXLEASHED, Monnam(), monst::mtame, number_leashed(), pline(), TRUE, u, you::ux, you::uy, nhcoord::x, and nhcoord::y.
Referenced by doapply().
STATIC_OVL void use_magic_whistle | ( | struct obj * | obj ) |
References canspotmon, change_luck(), DEADMONSTER, fill_pit(), fmon, Hallucination, makeknown, mintrap(), mnexto(), monst::mtame, monst::mx, monst::my, monst::nmon, rn2(), and wake_nearby().
Referenced by doapply().
STATIC_OVL int use_mirror | ( | struct obj * | obj ) |
References beautiful(), bhit(), Blind, body_part(), canseemon, ceiling(), COLNO, d(), attack::damd, monst::data, you::dx, you::dy, you::dz, FACE, FALSE, FDECL, Free_action, freeinv(), getdir(), Hallucination, haseyes, hcolor(), HConfusion, humanoid, INVIS_BEAM, Invisible, is_unicorn, is_vampire, killed(), monst::m_lev, make_confused(), permonst::mattk, MAXULEV, mbodypart(), mhis, permonst::mlet, mon_nam(), mon_reflects(), monflee(), Monnam(), mons, MONST_P, mpickobj(), nomul(), OBJ_P, perceives, pline(), PM_FLOATING_EYE, PM_MEDUSA, PM_SUCCUBUS, PM_UMBER_HULK, rloc(), rn2(), rnd(), S_GHOST, S_NYMPH, s_suffix(), See_invisible, setnotworn(), Sick, something, STOMACH, stoned, surface(), tele_restrict(), TRUE, u, you::uhs, you::ulevel, you::umonnum, Underwater, you::ustuck, you::ux, you::uy, vis, WEAK, and youmonst.
Referenced by doapply().
STATIC_OVL int use_pole | ( | struct obj * | obj ) |
References bhitpos, cansee, canseemon, cant_reach, cant_see_spot, check_caitiff(), couldsee, distu, getpos(), m_at, monst::mhp, not_enough_room, nothing_happens, P_BASIC, P_NONE, P_SKILL, P_SKILLED, pline(), thitmonst(), TRUE, u, you::uconduct, uwep, uwep_skill_type(), you::ux, you::uy, u_conduct::weaphit, where_to_hit, wield_tool(), nhcoord::x, and nhcoord::y.
Referenced by doapply().
STATIC_OVL int use_stethoscope | ( | struct obj * | obj ) |
References Blind, body_part(), can_reach_floor(), cansee, canspotmon, ceiling(), confdir(), Confusion, CORR, cvt_sdoor_to_door(), monst::data, you::dx, you::dy, you::dz, feel_location(), freehand(), getdir(), rm::glyph, glyph_is_invisible, HAND, Is_stronghold, is_whirly, isok(), its_dead(), levl, m_at, map_invisible(), Monnam(), monst::movement, moves, mstatusline(), monst::mx, monst::my, newsym(), nohands, pline(), PM_HEALER, rn2(), Role_if, SCORR, SDOOR, Stunned, surface(), rm::typ, u, unblock_point(), Underwater, unmap_object(), ustatusline(), you::ustuck, you::ux, you::uy, you::uz, and youmonst.
Referenced by doapply().
STATIC_OVL void use_stone | ( | struct obj * | tstone ) |
References ALL_CLASSES, ALLOW_NONE, Blind, c_obj_colors, CLOTH, COIN_CLASS, dealloc_obj(), FALSE, GEM_CLASS, getobj(), GLASS, GOLD, Hallucination, is_flimsy, is_graystone, LIQUID, makeknown, obj_resists(), objects, objclass::oc_color, obj::oclass, obj::otyp, pline(), plur, PM_ARCHEOLOGIST, PM_GNOME, prinv(), QBUFSZ, obj::quan, Race_if, RING_CLASS, Role_if, SILVER, Sprintf, the(), Tobjnam(), TOUCHSTONE, TRUE, u, you::ugold, useup(), WAX, WOOD, and xname().
Referenced by doapply(), and dorub().
STATIC_OVL void use_tinning_kit | ( | struct obj * | obj ) |
References an(), BUFSZ, can, carried, permonst::cnutrit, consume_obj_charge(), CORPSE, obj::corpsenm, costly_spot(), monst::data, doname(), FALSE, floorfood(), hold_another_object(), is_rider, mksobj(), permonst::mname, mons, obj::oeaten, obj::otyp, obj::owt, obj::ox, obj::oy, pline(), poly_when_stoned(), revive_corpse(), something, obj::spe, Sprintf, Stone_resistance, TIN, touch_petrifies, TRUE, uarmg, useup(), useupf(), weight(), and youmonst.
Referenced by doapply().
STATIC_OVL int use_towel | ( | struct obj * | obj ) |
References Blinded, Blindf_off(), body_part(), dropx(), FACE, freehand(), Glib, HAND, LENSES, make_blinded(), makeplural(), obj::otyp, pline(), rn1, rn2(), TRUE, u, ublindf, you::ucreamed, and what.
Referenced by doapply().
STATIC_OVL void use_trap | ( | struct obj * | otmp ) |
References A_DEX, A_STR, ACURR, BEAR_TRAP, Blind, BUFSZ, closed_door(), monst::data, defsyms, dropx(), trapinfo::force_bungle, Fumbling, is_animal, IS_FURNITURE, is_lava(), is_pool(), IS_ROCK, LAND_MINE, LANDMINE, Levitation, levl, mon_nam(), nohands, On_stairs(), otmp, P_BASIC, P_SKILL, reset_trapset(), rnl(), set_occupation(), set_trap(), shk_your(), Sprintf, Stunned, t_at(), the(), trapinfo::time_needed, trapinfo::tobj, trap_to_defsym, TRUE, trapinfo::tx, trapinfo::ty, u, Underwater, you::ustuck, you::ux, you::uy, what, what_trap, xdnladder, xupladder, yn, and youmonst.
Referenced by doapply().
STATIC_OVL int use_whip | ( | struct obj * | obj ) |
References A_DEX, ACURR, an(), attack(), bigmonst, bimanual, body_part(), flag::botl, BOULDER, BUFSZ, canspotmon, ceiling(), confdir(), Confusion, CORPSE, obj::corpsenm, cxname(), monst::data, dbon(), dmgval(), doname(), dropx(), you::dx, you::dy, you::dz, enexto(), FALSE, flags, FOOT, Fumbling, getdir(), Glib, glyph_is_invisible, HAND, hold_another_object(), Is_airlevel, IS_FURNITURE, Is_waterlevel, level, Levitation, levl, losehp(), monst::m_ap_type, m_at, makeplural(), map_invisible(), mbodypart(), mhis, permonst::mname, mon_nam(), MON_WEP, mons, monst::mx, monst::my, NO_KILLER_PREFIX, obj_extract_self(), obj_no_longer_held(), dlevel_t::objects, otmp, obj::otyp, pickup_object(), place_object(), pline(), PM_ARCHEOLOGIST, PM_HORSE, PM_STONE_GOLEM, poly_when_stoned(), polymon(), possibly_unwield(), Protection_from_shape_changers, obj::quan, rn2(), rnd(), rnl(), Role_if, s_suffix(), sensemon, setmnotwielded(), singular(), sobj_at(), something, obj::spe, Sprintf, stackobj(), STEED, Stone_resistance, Strcpy, stumble_onto_mimic(), Stunned, surface(), teleds(), the(), thitu(), touch_petrifies, TRUE, TT_PIT, u, uarmg, uhim, uhis, Underwater, you::ustuck, you::utrap, you::utraptype, uwep, you::ux, you::uy, you::uz, vision_full_recalc, wakeup(), wield_tool(), nhcoord::x, xname(), nhcoord::y, and youmonst.
Referenced by doapply().
STATIC_OVL void use_whistle | ( | struct obj * | obj ) |
References wake_nearby().
Referenced by doapply().
const char cant_reach[] = "can't reach that spot from here." |
Referenced by use_grapple(), and use_pole().
const char cant_see_spot[] = "won't hit anything if you can't see that spot." |
Referenced by use_grapple(), and use_pole().
NEARDATA const char cuddly[] = { TOOL_CLASS, GEM_CLASS, 0 } [static] |
const char hollow_str[] = "a hollow sound. This must be a secret %s!" [static] |
const char look_str[] = "look %s." [static] |
NEARDATA const char lubricables[] = { ALL_CLASSES, ALLOW_NONE, 0 } [static] |
NEARDATA const char need_to_remove_outer_armor[] = "need to remove your %s to grease your %s." [static] |
const char no_elbow_room[] = "don't have enough elbow-room to maneuver." [static] |
const char not_enough_room[] = "There's not enough room here to use that." [static] |
Referenced by use_grapple(), and use_pole().
const char tools_too[] [static] |
{ ALL_CLASSES, TOOL_CLASS, POTION_CLASS, WEAPON_CLASS, WAND_CLASS, GEM_CLASS, 0 }
Referenced by doapply().
const char where_to_hit[] = "Where do you want to hit?" |
Referenced by use_grapple(), and use_pole().
const char whistle_str[] = "produce a %s whistling sound." [static] |