#include "hack.h"
Defines | |
#define | MOREARM(x) if (x) { armorpieces++; otmp = x; } |
#define | MOREACC(x) if (x) { Accessories++; otmp = x; } |
#define | DESTROY_ARM(o) |
Functions | |
STATIC_DCL void | FDECL (on_msg,(struct obj *)) |
STATIC_PTR int | NDECL (Armor_on) |
STATIC_PTR int | NDECL (Boots_on) |
STATIC_DCL int | NDECL (Cloak_on) |
STATIC_PTR int | NDECL (Helmet_on) |
STATIC_PTR int | NDECL (Gloves_on) |
STATIC_PTR int | NDECL (Shield_on) |
STATIC_DCL void | NDECL (Amulet_on) |
STATIC_DCL void | FDECL (Ring_off_or_gone,(struct obj *, BOOLEAN_P)) |
STATIC_PTR int | FDECL (select_off,(struct obj *)) |
STATIC_DCL struct obj * | NDECL (do_takeoff) |
STATIC_PTR int | NDECL (take_off) |
STATIC_DCL int | FDECL (menu_remarm,(int)) |
STATIC_DCL void | FDECL (already_wearing,(const char *)) |
STATIC_DCL void | FDECL (already_wearing2,(const char *, const char *)) |
void | off_msg (struct obj *otmp) |
STATIC_OVL void | on_msg (struct obj *otmp) |
STATIC_PTR int | Boots_on () |
int | Boots_off () |
STATIC_OVL int | Cloak_on () |
int | Cloak_off () |
STATIC_PTR int | Helmet_on () |
int | Helmet_off () |
STATIC_PTR int | Gloves_on () |
int | Gloves_off () |
STATIC_OVL int | Shield_on () |
int | Shield_off () |
STATIC_PTR int | Armor_on () |
int | Armor_off () |
int | Armor_gone () |
STATIC_OVL void | Amulet_on () |
void | Amulet_off () |
void | Ring_on (struct obj *obj) |
STATIC_OVL void | Ring_off_or_gone (struct obj *obj, boolean gone) |
void | Ring_off (struct obj *obj) |
void | Ring_gone (struct obj *obj) |
void | Blindf_on (struct obj *otmp) |
void | Blindf_off (struct obj *otmp) |
void | set_wear () |
boolean | donning (struct obj *otmp) |
void | cancel_don () |
int | dotakeoff () |
int | doremring () |
int | cursed (struct obj *otmp) |
int | armoroff (struct obj *otmp) |
STATIC_OVL void | already_wearing (char *cc) const |
STATIC_OVL void | already_wearing2 (char *cc1, char *cc2) const |
int | canwearobj (struct obj *otmp, long *mask, boolean noisy) |
int | dowear () |
int | doputon () |
void | find_ac () |
void | glibr () |
struct obj * | some_armor (struct monst *victim) |
void | erode_armor (struct monst *victim, boolean acid_dmg) |
struct obj * | stuck_ring (struct obj *ring, int otyp) |
struct obj * | unchanger () |
STATIC_PTR int | select_off (struct obj *otmp) |
STATIC_OVL struct obj * | do_takeoff () |
STATIC_PTR int | take_off () |
void | reset_remarm () |
int | doddoremarm () |
STATIC_OVL int | menu_remarm (int retry) |
int | destroy_arm (struct obj *atmp) |
void | adj_abon (struct obj *otmp, schar delta) |
Variables | |
STATIC_OVL NEARDATA long | takeoff_mask = 0L |
static NEARDATA long | taking_off = 0L |
static NEARDATA int | todelay |
static boolean | cancelled_don = FALSE |
static NEARDATA const char | see_yourself [] = "see yourself" |
static NEARDATA const char | unknown_type [] = "Unknown type of %s (%d)" |
static NEARDATA const char | c_armor [] = "armor" |
static NEARDATA const char | c_suit [] = "suit" |
static NEARDATA const char | c_cloak [] = "cloak" |
static NEARDATA const char | c_gloves [] = "gloves" |
static NEARDATA const char | c_boots [] = "boots" |
static NEARDATA const char | c_helmet [] = "helmet" |
static NEARDATA const char | c_shield [] = "shield" |
static NEARDATA const char | c_weapon [] = "weapon" |
static NEARDATA const char | c_sword [] = "sword" |
static NEARDATA const char | c_axe [] = "axe" |
static NEARDATA const char | c_that_ [] = "that" |
static NEARDATA const long | takeoff_order [] |
static NEARDATA const char | clothes [] = {ARMOR_CLASS, 0} |
static NEARDATA const char | accessories [] = {RING_CLASS, AMULET_CLASS, TOOL_CLASS, FOOD_CLASS, 0} |
static const char * | disrobing = "" |
#define DESTROY_ARM | ( | o ) |
((otmp = (o)) != 0 && \ (!atmp || atmp == otmp) && \ (!obj_resists(otmp, 0, 90)))
Referenced by destroy_arm().
#define MOREACC | ( | x ) | if (x) { Accessories++; otmp = x; } |
Referenced by doremring().
#define MOREARM | ( | x ) | if (x) { armorpieces++; otmp = x; } |
Referenced by dotakeoff().
References A_DEX, A_INT, A_WIS, ABON, flag::botl, flags, GAUNTLETS_OF_DEXTERITY, HELM_OF_BRILLIANCE, makeknown, obj::otyp, uarmg, and uarmh.
Referenced by Gloves_off(), Gloves_on(), Helmet_off(), Helmet_on(), and seffects().
STATIC_OVL void already_wearing | ( | char * | cc ) | const |
References c_that_.
Referenced by canwearobj(), and doputon().
STATIC_OVL void already_wearing2 | ( | char * | cc1, |
char * | cc2 | ||
) | const |
void Amulet_off | ( | ) |
References amphibious, AMULET_OF_CHANGE, AMULET_OF_ESP, AMULET_OF_LIFE_SAVING, AMULET_OF_MAGICAL_BREATHING, AMULET_OF_REFLECTION, AMULET_OF_RESTFUL_SLEEP, AMULET_OF_STRANGULATION, AMULET_OF_UNCHANGING, AMULET_OF_YENDOR, AMULET_VERSUS_POISON, breathless, monst::data, drown(), ESleeping, FAKE_AMULET_OF_YENDOR, HSleeping, obj::otyp, see_monsters(), setworn(), Strangled, Swimming, takeoff_mask, uamul, Underwater, W_AMUL, and youmonst.
Referenced by do_takeoff(), doremring(), dosacrifice(), lava_effects(), and remove_worn_item().
STATIC_OVL void Amulet_on | ( | ) |
References AMULET_OF_CHANGE, AMULET_OF_ESP, AMULET_OF_LIFE_SAVING, AMULET_OF_MAGICAL_BREATHING, AMULET_OF_REFLECTION, AMULET_OF_RESTFUL_SLEEP, AMULET_OF_STRANGULATION, AMULET_OF_UNCHANGING, AMULET_OF_YENDOR, AMULET_VERSUS_POISON, flag::botl, change_sex(), docall(), FAKE_AMULET_OF_YENDOR, flag::female, flags, HSleeping, makeknown, objects, objclass::oc_uname, obj::otyp, pline(), poly_gender(), rnd(), Slimed, Strangled, uamul, Unchanging, and useup().
Referenced by doputon().
int Armor_gone | ( | ) |
References cancelled_don, end_burn(), FALSE, Is_gold_dragon_armor, obj::otyp, setnotworn(), takeoff_mask, uarm, and W_ARM.
Referenced by break_armor(), destroy_arm(), lava_effects(), and seffects().
int Armor_off | ( | ) |
References Blind, cancelled_don, end_burn(), FALSE, Is_gold_dragon_armor, obj::otyp, pline(), setworn(), takeoff_mask, Tobjnam(), uarm, and W_ARM.
Referenced by armoroff(), do_takeoff(), donning(), and remove_worn_item().
STATIC_PTR int Armor_on | ( | ) |
References begin_burn(), Blind, FALSE, Is_gold_dragon_armor, obj::otyp, pline(), Tobjnam(), and uarm.
Referenced by cancel_don(), donning(), dowear(), and set_wear().
int armoroff | ( | struct obj * | otmp ) |
References Armor_off(), Boots_off(), Cloak_off(), cursed(), delay, Gloves_off(), Helmet_off(), is_boots, is_cloak, is_gloves, is_helmet, is_shield, nomovemsg, nomul(), objects, objclass::oc_delay, off_msg(), setworn(), Shield_off(), takeoff_mask, taking_off, and W_ARMOR.
Referenced by dotakeoff().
void Blindf_off | ( | struct obj * | otmp ) |
References Blind, Blind_telepat, flag::botl, CONDUCT_BLINDFOLDED, FALSE, flags, Infravision, LENSES, off_msg(), Punished, see_monsters(), set_bc(), setworn(), takeoff_mask, TRUE, violated(), vision_full_recalc, and W_TOOL.
Referenced by do_takeoff(), doapply(), doremring(), lava_effects(), remove_worn_item(), and use_towel().
void Blindf_on | ( | struct obj * | otmp ) |
References Blind, Blind_telepat, flag::botl, FALSE, flags, Infravision, on_msg(), Punished, see_monsters(), set_bc(), setuqwep(), setuswapwep(), setuwep(), setworn(), TRUE, uquiver, uswapwep, uwep, flag::verbose, vision_full_recalc, and W_TOOL.
Referenced by doapply(), and doputon().
int Boots_off | ( | ) |
References BStealth, c_boots, cancelled_don, monst::data, EFumbling, ELVEN_BOOTS, prop::extrinsic, FALSE, Fast, float_down(), Flying, FUMBLE_BOOTS, HFumbling, HIGH_BOOTS, HLevitation, HStealth, IRON_SHOES, is_clinger, is_pool(), JUMPING_BOOTS, KICKING_BOOTS, Levitation, LEVITATION_BOOTS, LOW_BOOTS, makeknown, objects, objclass::oc_oprop, obj::otyp, setworn(), SPEED_BOOTS, spoteffects(), takeoff_mask, TIMEOUT, TRUE, u, uarmf, unknown_type, you::uprops, you::ux, you::uy, Very_fast, W_ARMF, WATER_WALKING_BOOTS, WORN_BOOTS, and youmonst.
Referenced by armoroff(), break_armor(), destroy_arm(), do_takeoff(), donning(), lava_effects(), remove_worn_item(), and seffects().
STATIC_PTR int Boots_on | ( | ) |
References BStealth, c_boots, ELVEN_BOOTS, prop::extrinsic, FALSE, float_up(), FUMBLE_BOOTS, HFast, HFumbling, HIGH_BOOTS, HLevitation, HStealth, incr_itimeout(), IRON_SHOES, JUMPING_BOOTS, KICKING_BOOTS, LEVITATION_BOOTS, LOW_BOOTS, makeknown, objects, objclass::oc_oprop, obj::otyp, rnd(), SPEED_BOOTS, spoteffects(), TIMEOUT, TRUE, u, uarmf, unknown_type, you::uprops, WATER_WALKING_BOOTS, and WORN_BOOTS.
Referenced by cancel_don(), donning(), dowear(), and set_wear().
void cancel_don | ( | ) |
References Armor_on(), Boots_on(), cancelled_don, Gloves_on(), Helmet_on(), multi, nomovemsg, taking_off, and todelay.
Referenced by break_armor(), destroy_arm(), and remove_worn_item().
References already_wearing(), an(), BATTLE_AXE, bimanual, body_part(), c_armor, c_axe, c_boots, c_cloak, c_gloves, c_helmet, c_shield, c_suit, c_sword, c_that_, c_weapon, cantweararm, cloak_simple_name(), monst::data, FOOT, has_horns, is_boots, is_cloak, is_flimsy, is_gloves, is_helmet, is_shield, is_shirt, is_suit, is_sword, makeplural(), permonst::mlet, permonst::msize, MZ_SMALL, num_horns(), obj::otyp, pline(), plur, racial_exception(), S_CENTAUR, silly_thing(), slithy, surface(), TOURIST, TT_BEARTRAP, TT_INFLOOR, you::twoweap, u, uarm, uarmc, uarmf, uarmg, uarmh, uarms, Upolyd, you::utrap, you::utraptype, uwep, you::ux, you::uy, W_ARM, W_ARMC, W_ARMF, W_ARMG, W_ARMH, W_ARMOR, W_ARMS, welded(), and youmonst.
Referenced by dowear(), and getobj().
int Cloak_off | ( | ) |
References ALCHEMY_SMOCK, Blind, c_cloak, CLOAK_OF_DISPLACEMENT, CLOAK_OF_INVISIBILITY, CLOAK_OF_MAGIC_RESISTANCE, CLOAK_OF_PROTECTION, DWARVISH_CLOAK, EAcid_resistance, ELVEN_CLOAK, prop::extrinsic, HInvis, Invis, LEATHER_CLOAK, makeknown, MUMMY_WRAPPING, newsym(), objects, objclass::oc_oprop, OILSKIN_CLOAK, ORCISH_CLOAK, obj::otyp, pline(), ROBE, See_invisible, see_yourself, setworn(), takeoff_mask, u, uarmc, unknown_type, you::uprops, you::ux, you::uy, W_ARMC, and WORN_CLOAK.
Referenced by armoroff(), break_armor(), destroy_arm(), do_takeoff(), donning(), lava_effects(), remove_worn_item(), and seffects().
STATIC_OVL int Cloak_on | ( | ) |
References ALCHEMY_SMOCK, Blind, c_cloak, CLOAK_OF_DISPLACEMENT, CLOAK_OF_INVISIBILITY, CLOAK_OF_MAGIC_RESISTANCE, CLOAK_OF_PROTECTION, monst::data, DWARVISH_CLOAK, EAcid_resistance, EInvis, ELVEN_CLOAK, prop::extrinsic, HInvis, LEATHER_CLOAK, makeknown, MUMMY_WRAPPING, newsym(), objects, objclass::oc_oprop, OILSKIN_CLOAK, ORCISH_CLOAK, obj::otyp, pline(), pm_invisible, ROBE, See_invisible, see_yourself, Tobjnam(), u, uarmc, unknown_type, you::uprops, you::ux, you::uy, WORN_CLOAK, and youmonst.
Referenced by donning(), dowear(), and set_wear().
int cursed | ( | struct obj * | otmp ) |
References is_boots, is_gloves, TRUE, uwep, and welded().
Referenced by armoroff(), do_takeoff(), doapply(), and select_off().
int destroy_arm | ( | struct obj * | atmp ) |
References Armor_gone(), Boots_off(), cancel_don(), Cloak_off(), cloak_simple_name(), DESTROY_ARM, donning(), Gloves_off(), Helmet_off(), otmp, pline(), selftouch(), Shield_off(), stop_occupation(), surface(), u, uarm, uarmc, uarmf, uarmg, uarmh, uarms, useup(), you::ux, you::uy, and Ysimple_name2().
Referenced by cast_wizard_spell(), god_zaps_you(), gulpmu(), help_monster_out(), hitmu(), hmon_hitmon(), hmonas(), kick_monster(), rust_dmg(), seffects(), and zhitu().
STATIC_OVL struct obj* do_takeoff | ( | ) | [read] |
References Amulet_off(), Armor_off(), Blindf_off(), body_part(), Boots_off(), Cloak_off(), cursed(), FALSE, Gloves_off(), HANDED, Helmet_off(), LEFT_RING, otmp, RIGHT_RING, Ring_off(), setuqwep(), setuswapwep(), setuwep(), Shield_off(), taking_off, you::twoweap, u, uamul, uarm, uarmc, uarmf, uarmg, uarmh, uarms, ublindf, uleft, uright, uwep, W_QUIVER, W_SWAPWEP, W_WEP, WORN_AMUL, WORN_ARMOR, WORN_BLINDF, WORN_BOOTS, WORN_CLOAK, WORN_GLOVES, WORN_HELMET, and WORN_SHIELD.
Referenced by take_off().
int doddoremarm | ( | ) |
References add_valid_menu_class(), FALSE, flags, ggetobj(), menu_remarm(), flag::menu_style, MENU_TRADITIONAL, select_off(), set_occupation(), take_off(), takeoff_mask, taking_off, uamul, ublindf, uleft, uquiver, uright, uswapwep, uwep, W_QUIVER, W_SWAPWEP, W_WEP, and wearing_armor().
References Armor_off(), Armor_on(), Boots_off(), Boots_on(), Cloak_off(), Cloak_on(), FALSE, Gloves_off(), Gloves_on(), Helmet_off(), Helmet_on(), Shield_off(), Shield_on(), taking_off, uarm, uarmc, uarmf, uarmg, uarmh, uarms, what, WORN_ARMOR, WORN_BOOTS, WORN_CLOAK, WORN_GLOVES, WORN_HELMET, and WORN_SHIELD.
Referenced by break_armor(), destroy_arm(), remove_worn_item(), and steal().
int doputon | ( | ) |
References already_wearing(), already_wearing2(), AMULET_CLASS, AMULET_OF_CHANGE, Amulet_on(), bimanual, Blindf_on(), BLINDFOLD, body_part(), c_that_, monst::data, FACE, FINGER, getobj(), humanoid, is_worn(), LEFT_RING, LENSES, makeplural(), MEAT_RING, nolimbs, obj::oartifact, obj::oclass, otmp, obj::otyp, obj::owornmask, prinv(), QBUFSZ, RIGHT_RING, RING_CLASS, Ring_on(), setuqwep(), setuswapwep(), setuwep(), setworn(), something, Sprintf, touch_artifact(), TOWEL, TRUE, uamul, uarmg, ublindf, uleft, uquiver, uright, uswapwep, uwep, W_AMUL, W_RING, W_TOOL, welded(), weldmsg(), yn_function(), and youmonst.
int doremring | ( | ) |
References Amulet_off(), Blindf_off(), instance_flags::cmdassist, getobj(), iflags, MOREACC, off_msg(), otmp, obj::owornmask, instance_flags::paranoid_remove, pline(), reset_remarm(), Ring_off(), select_off(), takeoff_mask, TOURIST, uamul, uarm, uarmc, uarmf, uarmg, uarmh, uarms, ublindf, uleft, uright, W_AMUL, W_RING, and W_TOOL.
int dotakeoff | ( | ) |
References armoroff(), instance_flags::cmdassist, getobj(), iflags, Is_dragon_scales, MOREARM, otmp, obj::otyp, obj::owornmask, instance_flags::paranoid_remove, pline(), reset_remarm(), select_off(), takeoff_mask, TOURIST, uamul, uarm, uarmc, uarmf, uarmg, uarmh, uarms, ublindf, uleft, uright, uskin, and W_ARMOR.
int dowear | ( | ) |
References A_CURRENT, A_ORIGINAL, Armor_on(), Boots_on(), flag::botl, canwearobj(), Cloak_on(), monst::data, delay, d_level::dnum, flags, getobj(), Gloves_on(), HELM_OF_OPPOSITE_ALIGNMENT, Helmet_on(), is_boots, is_cloak, is_gloves, is_helmet, is_shield, is_shirt, makeknown, nohands, nomovemsg, nomul(), obj::oartifact, objects, objclass::oc_delay, on_msg(), otmp, obj::otyp, pline(), qstart_level, setuqwep(), setuswapwep(), setuwep(), setworn(), Shield_on(), takeoff_mask, taking_off, touch_artifact(), TRUE, u, you::ualignbase, uarm, you::ublessed, uquiver, uswapwep, uwep, you::uz, verysmall, and youmonst.
References carried, erode_obj(), FALSE, some_armor(), uarmf, and update_inventory.
Referenced by mdamagem(), passive(), passiveum(), zhitm(), and zhitu().
STATIC_DCL void FDECL | ( | on_msg | , |
(struct obj *) | |||
) |
STATIC_DCL void FDECL | ( | Ring_off_or_gone | , |
(struct obj *, BOOLEAN_P) | |||
) |
STATIC_PTR int FDECL | ( | select_off | , |
(struct obj *) | |||
) |
STATIC_DCL void FDECL | ( | already_wearing2 | , |
(const char *, const char *) | |||
) |
STATIC_DCL void FDECL | ( | already_wearing | , |
(const char *) | |||
) |
STATIC_DCL int FDECL | ( | menu_remarm | , |
(int) | |||
) |
void find_ac | ( | ) |
References permonst::ac, ARM_BONUS, flag::botl, flags, HProtection, INTRINSIC, mons, obj::otyp, RIN_PROTECTION, obj::spe, u, you::uac, uarm, uarmc, uarmf, uarmg, uarmh, uarms, you::ublessed, uleft, you::umonnum, uright, and you::uspellprot.
Referenced by cancel_monst(), cast_protection(), moveloop(), nh_timeout(), polyman(), polymon(), and u_init().
void glibr | ( | ) |
References bimanual, body_part(), c_sword, monst::data, dropx(), FINGER, HAND, is_sword, LOADSTONE, makeplural(), makesingular(), nolimbs, obj::oclass, oclass_names, otmp, obj::otyp, Ring_off(), setuswapwep(), setuwep(), you::twoweap, u, uarmg, uleft, uright, uswapwep, uwep, welded(), and youmonst.
Referenced by moveloop().
int Gloves_off | ( | ) |
References adj_abon(), an(), body_part(), flag::botl, BUFSZ, c_gloves, cancelled_don, CORPSE, corpse_xname(), obj::corpsenm, EFumbling, encumber_msg(), prop::extrinsic, FALSE, flags, GAUNTLETS_OF_DEXTERITY, GAUNTLETS_OF_FUMBLING, GAUNTLETS_OF_POWER, HAND, HFumbling, LEATHER_GLOVES, makeknown, makeplural(), mons, objects, objclass::oc_oprop, obj::otyp, setworn(), obj::spe, Strcpy, takeoff_mask, TIMEOUT, touch_petrifies, TRUE, you::twoweap, u, uarmg, unknown_type, you::uprops, uswapwep, uswapwepgone(), uwep, uwepgone(), W_ARMG, and WORN_GLOVES.
Referenced by armoroff(), break_armor(), destroy_arm(), do_takeoff(), donning(), lava_effects(), remove_worn_item(), and seffects().
STATIC_PTR int Gloves_on | ( | ) |
References adj_abon(), flag::botl, c_gloves, prop::extrinsic, flags, GAUNTLETS_OF_DEXTERITY, GAUNTLETS_OF_FUMBLING, GAUNTLETS_OF_POWER, HFumbling, incr_itimeout(), LEATHER_GLOVES, makeknown, objects, objclass::oc_oprop, obj::otyp, rnd(), obj::spe, TIMEOUT, u, uarmg, unknown_type, you::uprops, and WORN_GLOVES.
Referenced by cancel_don(), donning(), dowear(), and set_wear().
int Helmet_off | ( | ) |
References A_CHA, A_CURRENT, ABON, adj_abon(), flag::botl, c_helmet, cancelled_don, CORNUTHAUM, DENTED_POT, DUNCE_CAP, DWARVISH_IRON_HELM, ELVEN_LEATHER_HELM, FALSE, FEDORA, flags, HELM_OF_BRILLIANCE, HELM_OF_OPPOSITE_ALIGNMENT, HELM_OF_TELEPATHY, HELMET, ORCISH_HELM, obj::otyp, PM_WIZARD, Role_if, see_monsters(), setworn(), obj::spe, takeoff_mask, TINFOIL_HAT, align::type, u, you::ualign, you::ualignbase, uarmh, you::ublessed, unknown_type, and W_ARMH.
Referenced by armoroff(), break_armor(), destroy_arm(), do_takeoff(), donning(), lava_effects(), remove_worn_item(), and seffects().
STATIC_PTR int Helmet_on | ( | ) |
References A_CHA, A_CHAOTIC, A_INT, A_LAWFUL, A_NEUTRAL, ABASE, ABON, ACURR, adj_abon(), ATEMP, Blind, flag::botl, c_helmet, CORNUTHAUM, curse(), DENTED_POT, DUNCE_CAP, DWARVISH_IRON_HELM, ELVEN_LEATHER_HELM, FEDORA, flags, Hallucination, hcolor(), HELM_OF_BRILLIANCE, HELM_OF_OPPOSITE_ALIGNMENT, HELM_OF_TELEPATHY, HELMET, makeknown, NH_BLACK, ORCISH_HELM, obj::otyp, pline(), PM_WIZARD, rn2(), Role_if, obj::spe, TINFOIL_HAT, Tobjnam(), align::type, u, you::ualign, uarmh, you::ublessed, and unknown_type.
Referenced by cancel_don(), donning(), dowear(), and set_wear().
STATIC_OVL int menu_remarm | ( | int | retry ) |
References add_valid_menu_class(), ALL_TYPES, ALL_TYPES_SELECTED, FALSE, flags, ggetobj(), invent, INVORDER_SORT, is_worn(), is_worn_by_type(), MENU_COMBINATION, MENU_FULL, flag::menu_style, PICK_ANY, query_category(), query_objlist(), select_off(), SIGNAL_NOMENU, TRUE, USE_INVLET, and WORN_TYPES.
Referenced by doddoremarm().
STATIC_DCL void NDECL | ( | Amulet_on | ) |
STATIC_DCL int NDECL | ( | Cloak_on | ) |
STATIC_PTR int NDECL | ( | Armor_on | ) |
STATIC_PTR int NDECL | ( | Helmet_on | ) |
STATIC_DCL struct obj* NDECL | ( | do_takeoff | ) | [read] |
STATIC_PTR int NDECL | ( | Gloves_on | ) |
STATIC_PTR int NDECL | ( | take_off | ) |
STATIC_PTR int NDECL | ( | Shield_on | ) |
STATIC_PTR int NDECL | ( | Boots_on | ) |
void off_msg | ( | struct obj * | otmp ) |
References doname(), flags, and flag::verbose.
Referenced by armoroff(), Blindf_off(), doremring(), and take_off().
STATIC_OVL void on_msg | ( | struct obj * | otmp ) |
References an(), body_part(), BUFSZ, flags, HEAD, obj_is_pname(), Sprintf, the(), TOWEL, flag::verbose, and xname().
Referenced by Blindf_on(), and dowear().
void reset_remarm | ( | ) |
References nul, takeoff_mask, and taking_off.
Referenced by curse(), doremring(), dotakeoff(), dowield(), and reset_occupations().
void Ring_gone | ( | struct obj * | obj ) |
References Ring_off_or_gone(), and TRUE.
Referenced by destroy_item(), eataccessory(), lava_effects(), recharge(), and remove_worn_item().
void Ring_off | ( | struct obj * | obj ) |
References FALSE, and Ring_off_or_gone().
Referenced by do_takeoff(), doremring(), glibr(), and recharge().
References A_CHA, A_CON, A_DEX, A_INT, A_STR, A_WIS, ABON, ACURR, BInvis, Blind, flag::botl, prop::extrinsic, flags, float_down(), Invis, Invisible, Levitation, makeknown, MEAT_RING, newsym(), objects, objclass::oc_oprop, pline(), restartcham(), RIN_ADORNMENT, RIN_AGGRAVATE_MONSTER, RIN_COLD_RESISTANCE, RIN_CONFLICT, RIN_FIRE_RESISTANCE, RIN_FREE_ACTION, RIN_GAIN_CONSTITUTION, RIN_GAIN_DEXTERITY, RIN_GAIN_INTELLIGENCE, RIN_GAIN_STRENGTH, RIN_GAIN_WISDOM, RIN_HUNGER, RIN_INCREASE_ACCURACY, RIN_INCREASE_DAMAGE, RIN_INVISIBILITY, RIN_LEVITATION, RIN_POISON_RESISTANCE, RIN_POLYMORPH, RIN_POLYMORPH_CONTROL, RIN_PROTECTION, RIN_PROTECTION_FROM_SHAPE_CHAN, RIN_REGENERATION, RIN_SEARCHING, RIN_SEE_INVISIBLE, RIN_SHOCK_RESISTANCE, RIN_SLOW_DIGESTION, RIN_STEALTH, RIN_SUSTAIN_ABILITY, RIN_TELEPORT_CONTROL, RIN_TELEPORTATION, RIN_WARNING, See_invisible, see_monsters(), see_objects(), set_mimic_blocking(), setnotworn(), setworn(), takeoff_mask, u, you::udaminc, you::uhitinc, update_inventory, you::uprops, you::ux, you::uy, and W_RING.
Referenced by Ring_gone(), and Ring_off().
void Ring_on | ( | struct obj * | obj ) |
References A_CHA, A_CON, A_DEX, A_INT, A_STR, A_WIS, ABON, ACURR, BInvis, Blind, flag::botl, monst::data, prop::extrinsic, FALSE, flags, float_up(), HInvis, HLevitation, HRegeneration, HSee_invisible, Invis, makeknown, MEAT_RING, newsym(), objects, objclass::oc_oprop, perceives, pline(), regenerates, rescham(), RIN_ADORNMENT, RIN_AGGRAVATE_MONSTER, RIN_COLD_RESISTANCE, RIN_CONFLICT, RIN_FIRE_RESISTANCE, RIN_FREE_ACTION, RIN_GAIN_CONSTITUTION, RIN_GAIN_DEXTERITY, RIN_GAIN_INTELLIGENCE, RIN_GAIN_STRENGTH, RIN_GAIN_WISDOM, RIN_HUNGER, RIN_INCREASE_ACCURACY, RIN_INCREASE_DAMAGE, RIN_INVISIBILITY, RIN_LEVITATION, RIN_POISON_RESISTANCE, RIN_POLYMORPH, RIN_POLYMORPH_CONTROL, RIN_PROTECTION, RIN_PROTECTION_FROM_SHAPE_CHAN, RIN_REGENERATION, RIN_SEARCHING, RIN_SEE_INVISIBLE, RIN_SHOCK_RESISTANCE, RIN_SLOW_DIGESTION, RIN_STEALTH, RIN_SUSTAIN_ABILITY, RIN_TELEPORT_CONTROL, RIN_TELEPORTATION, RIN_WARNING, see_monsters(), see_objects(), self_invis_message(), set_mimic_blocking(), setuqwep(), setuswapwep(), setuwep(), spoteffects(), u, you::udaminc, you::uhitinc, uhp(), uhpmax(), update_inventory, you::uprops, uquiver, uswapwep, uwep, you::ux, you::uy, you::uz, W_RING, and youmonst.
Referenced by doputon(), and recharge().
STATIC_PTR int select_off | ( | struct obj * | otmp ) |
References BATTLE_AXE, bimanual, body_part(), BUFSZ, c_axe, c_gloves, c_suit, c_sword, c_weapon, cloak_simple_name(), cursed(), monst::data, doname(), FINGER, FOOT, Glib, HAND, is_sword, LEFT_RING, makeplural(), nolimbs, obj::otyp, RIGHT_RING, Sprintf, surface(), takeoff_mask, the(), TOURIST, TRUE, TT_BEARTRAP, TT_INFLOOR, you::twoweap, u, uamul, uarm, uarmc, uarmf, uarmg, uarmh, uarms, ublindf, uleft, uquiver, uright, uswapwep, you::utrap, you::utraptype, uwep, you::ux, you::uy, W_QUIVER, W_SWAPWEP, W_WEP, welded(), WORN_AMUL, WORN_ARMOR, WORN_BLINDF, WORN_BOOTS, WORN_CLOAK, WORN_GLOVES, WORN_HELMET, WORN_SHIELD, xname(), and youmonst.
Referenced by doddoremarm(), doremring(), dotakeoff(), and menu_remarm().
void set_wear | ( | ) |
References Armor_on(), Boots_on(), Cloak_on(), Gloves_on(), Helmet_on(), Shield_on(), uarm, uarmc, uarmf, uarmg, uarmh, and uarms.
int Shield_off | ( | ) |
References setworn(), takeoff_mask, and W_ARMS.
Referenced by armoroff(), break_armor(), destroy_arm(), do_takeoff(), donning(), lava_effects(), remove_worn_item(), and seffects().
STATIC_OVL int Shield_on | ( | ) |
References otmp, rn2(), uarm, uarmc, uarmf, uarmg, uarmh, uarms, W_ARM, W_ARMC, W_ARMF, W_ARMG, W_ARMH, W_ARMS, which_armor(), and youmonst.
Referenced by cast_wizard_spell(), erode_armor(), hitmu(), and seffects().
References AMULET_OF_UNCHANGING, bimanual, monst::data, nolimbs, obj::otyp, uamul, uarmg, uleft, uright, uwep, welded(), and youmonst.
Referenced by fix_worst_trouble(), and in_trouble().
STATIC_PTR int take_off | ( | ) |
References do_takeoff(), LEFT_RING, objects, objclass::oc_delay, off_msg(), otmp, obj::otyp, RIGHT_RING, set_occupation(), takeoff_mask, takeoff_order, taking_off, todelay, uarm, uarmc, uarmf, uarmg, uarmh, uarms, W_QUIVER, W_SWAPWEP, W_WEP, WORN_AMUL, WORN_ARMOR, WORN_BLINDF, WORN_BOOTS, WORN_CLOAK, WORN_GLOVES, WORN_HELMET, and WORN_SHIELD.
Referenced by doddoremarm().
struct obj* unchanger | ( | ) | [read] |
References AMULET_OF_UNCHANGING, obj::otyp, and uamul.
Referenced by fix_worst_trouble(), and in_trouble().
NEARDATA const char accessories[] = {RING_CLASS, AMULET_CLASS, TOOL_CLASS, FOOD_CLASS, 0} [static] |
NEARDATA const char c_armor[] = "armor" [static] |
Referenced by canwearobj().
NEARDATA const char c_axe[] = "axe" |
Referenced by canwearobj(), and select_off().
NEARDATA const char c_boots[] = "boots" |
Referenced by Boots_off(), Boots_on(), and canwearobj().
NEARDATA const char c_cloak[] = "cloak" |
Referenced by canwearobj(), Cloak_off(), and Cloak_on().
NEARDATA const char c_gloves[] = "gloves" |
Referenced by canwearobj(), Gloves_off(), Gloves_on(), and select_off().
NEARDATA const char c_helmet[] = "helmet" |
Referenced by canwearobj(), Helmet_off(), and Helmet_on().
NEARDATA const char c_shield[] = "shield" |
Referenced by canwearobj().
NEARDATA const char c_suit[] = "suit" |
Referenced by canwearobj(), and select_off().
NEARDATA const char c_sword[] = "sword" |
Referenced by canwearobj(), glibr(), and select_off().
NEARDATA const char c_that_[] = "that" |
Referenced by already_wearing(), canwearobj(), and doputon().
NEARDATA const char c_weapon[] = "weapon" |
Referenced by canwearobj(), and select_off().
boolean cancelled_don = FALSE [static] |
Referenced by Armor_gone(), Armor_off(), Boots_off(), cancel_don(), Gloves_off(), and Helmet_off().
NEARDATA const char clothes[] = {ARMOR_CLASS, 0} [static] |
const char* disrobing = "" [static] |
NEARDATA const char see_yourself[] = "see yourself" [static] |
Referenced by Cloak_off(), and Cloak_on().
STATIC_OVL NEARDATA long takeoff_mask = 0L |
Referenced by Amulet_off(), Armor_gone(), Armor_off(), armoroff(), Blindf_off(), Boots_off(), Cloak_off(), doddoremarm(), doremring(), dotakeoff(), dowear(), Gloves_off(), Helmet_off(), reset_remarm(), Ring_off_or_gone(), select_off(), Shield_off(), and take_off().
NEARDATA const long takeoff_order[] [static] |
{ WORN_BLINDF, W_WEP, WORN_SHIELD, WORN_GLOVES, LEFT_RING, RIGHT_RING, WORN_CLOAK, WORN_HELMET, WORN_AMUL, WORN_ARMOR, WORN_BOOTS, W_SWAPWEP, W_QUIVER, 0L }
Referenced by take_off().
NEARDATA long taking_off = 0L [static] |
Referenced by armoroff(), cancel_don(), do_takeoff(), doddoremarm(), donning(), dowear(), reset_remarm(), and take_off().
NEARDATA int todelay [static] |
Referenced by cancel_don(), and take_off().
NEARDATA const char unknown_type[] = "Unknown type of %s (%d)" [static] |
Referenced by Boots_off(), Boots_on(), Cloak_off(), Cloak_on(), Gloves_off(), Gloves_on(), Helmet_off(), and Helmet_on().