Go to the source code of this file.
Data Structures | |
union | vptrs |
struct | obj |
Defines | |
#define | nexthere v.v_nexthere |
#define | ocontainer v.v_ocontainer |
#define | ocarry v.v_ocarry |
#define | STATUE_HISTORIC 0x01 |
#define | STATUE_MALE 0x02 |
#define | STATUE_FEMALE 0x04 |
#define | OBJ_FREE 0 |
#define | OBJ_FLOOR 1 |
#define | OBJ_CONTAINED 2 |
#define | OBJ_INVENT 3 |
#define | OBJ_MINVENT 4 |
#define | OBJ_MIGRATING 5 |
#define | OBJ_BURIED 6 |
#define | OBJ_ONBILL 7 |
#define | NOBJ_STATES 8 |
#define | greatest_erosion(otmp) (int)((otmp)->oeroded > (otmp)->oeroded2 ? (otmp)->oeroded : (otmp)->oeroded2) |
#define | MAX_ERODE 3 |
#define | orotten oeroded |
#define | odiluted oeroded |
#define | norevive oeroded2 |
#define | sokoprize olocked |
#define | orecursive olocked |
#define | opoisoned otrapped |
#define | OATTACHED_NOTHING 0 |
#define | OATTACHED_MONST 1 |
#define | OATTACHED_M_ID 2 |
#define | OATTACHED_UNUSED3 3 |
#define | leashmon corpsenm |
#define | spestudied corpsenm |
#define | fromsink corpsenm |
#define | newobj(xl) (struct obj *)alloc((unsigned)(xl) + sizeof(struct obj)) |
#define | ONAME(otmp) (((char *)(otmp)->oextra) + (otmp)->oxlth) |
#define | is_blade(otmp) |
#define | is_axe(otmp) |
#define | is_pick(otmp) |
#define | is_sword(otmp) |
#define | is_pole(otmp) |
#define | is_spear(otmp) |
#define | is_launcher(otmp) |
#define | is_ammo(otmp) |
#define | ammo_and_launcher(otmp, ltmp) |
#define | is_missile(otmp) |
#define | is_weptool(o) |
#define | bimanual(otmp) |
#define | is_multigen(otmp) |
#define | is_poisonable(otmp) |
#define | uslinging() (uwep && objects[uwep->otyp].oc_skill == P_SLING) |
#define | is_shield(otmp) |
#define | is_helmet(otmp) |
#define | is_boots(otmp) |
#define | is_gloves(otmp) |
#define | is_cloak(otmp) |
#define | is_shirt(otmp) |
#define | is_suit(otmp) |
#define | is_elven_armor(otmp) |
#define | is_orcish_armor(otmp) |
#define | is_dwarvish_armor(otmp) |
#define | is_gnomish_armor(otmp) (FALSE) |
#define | MAX_EGG_HATCH_TIME 200 |
#define | stale_egg(egg) ((monstermoves - (egg)->age) > (2*MAX_EGG_HATCH_TIME)) |
#define | ofood(o) ((o)->otyp == CORPSE || (o)->otyp == EGG || (o)->otyp == TIN) |
#define | polyfodder(obj) |
#define | mlevelgain(obj) (ofood(obj) && (obj)->corpsenm == PM_WRAITH) |
#define | mhealup(obj) (ofood(obj) && (obj)->corpsenm == PM_NURSE) |
#define | drainlevel(corpse) (mons[(corpse)->corpsenm].cnutrit*4/5) |
#define | carried(o) ((o)->where == OBJ_INVENT) |
#define | mcarried(o) ((o)->where == OBJ_MINVENT) |
#define | Has_contents(o) |
#define | Is_container(o) ((o)->otyp >= LARGE_BOX && (o)->otyp <= BAG_OF_TRICKS) |
#define | Is_box(otmp) |
#define | Is_mbag(otmp) |
#define | Is_sokoprize(otmp) ((otmp)->sokoprize && !Is_box(otmp)) |
#define | Is_dragon_scales(idx) |
#define | Is_dragon_mail(idx) |
#define | Is_dragon_armor(idx) (Is_dragon_scales(idx) || Is_dragon_mail(idx)) |
#define | Is_gold_dragon_armor(idx) |
#define | Dragon_scales_to_mail(idx) (idx - GRAY_DRAGON_SCALES + GRAY_DRAGON_SCALE_MAIL) |
#define | Dragon_mail_to_scales(idx) (idx - GRAY_DRAGON_SCALE_MAIL + GRAY_DRAGON_SCALES) |
#define | Dragon_scales_to_pm(obj) |
#define | Dragon_mail_to_pm(obj) |
#define | Dragon_to_scales(pm) (GRAY_DRAGON_SCALES + (pm - mons)) |
#define | is_elven_weapon(otmp) |
#define | is_elven_obj(otmp) (is_elven_armor(otmp) || is_elven_weapon(otmp)) |
#define | is_orcish_obj(otmp) |
#define | is_dwarvish_obj(otmp) |
#define | is_gnomish_obj(otmp) (is_gnomish_armor(otmp)) |
#define | Is_candle(otmp) |
#define | MAX_OIL_IN_FLASK 400 |
#define | age_is_relative(otmp) |
#define | ignitable(otmp) |
#define | is_graystone(obj) |
#define | is_flimsy(otmp) (objects[(otmp)->otyp].oc_material <= LEATHER) |
#define | is_plural(o) |
#define | CONTAINED_TOO 0x1 |
#define | BURIED_TOO 0x2 |
#define age_is_relative | ( | otmp ) |
((otmp)->otyp == BRASS_LANTERN\ || (otmp)->otyp == OIL_LAMP\ || (otmp)->otyp == CANDELABRUM_OF_INVOCATION\ || (otmp)->otyp == TALLOW_CANDLE\ || (otmp)->otyp == WAX_CANDLE\ || (otmp)->otyp == POT_OIL)
Referenced by in_container(), out_container(), and restobjchn().
#define ammo_and_launcher | ( | otmp, | |
ltmp | |||
) |
Referenced by autoquiver(), hmon_hitmon(), hold_another_object(), noisy_hit(), thitmonst(), throw_obj(), throwit(), and thrwmu().
#define bimanual | ( | otmp ) |
((otmp->oclass == WEAPON_CLASS || \ otmp->oclass == TOOL_CLASS) && \ objects[otmp->otyp].oc_bimanual)
Referenced by can_twoweapon(), canwearobj(), curse(), doname_base(), doputon(), dotrap(), dountrap(), freehand(), glibr(), hmon_hitmon(), m_dowear(), mintrap(), mon_wield_item(), ready_weapon(), select_off(), stuck_ring(), use_misc(), use_whip(), weldmsg(), wield_tool(), and worst_cursed_item().
#define BURIED_TOO 0x2 |
Referenced by begin_burn(), doname_base(), get_obj_location(), and poly_obj().
#define carried | ( | o ) | ((o)->where == OBJ_INVENT) |
Referenced by arti_invoke(), ballfall(), bc_order(), begin_burn(), bless(), carry_count(), chest_trap(), clear_fcorr(), consume_offering(), costly_tin(), curse(), doeat(), dofiretrap(), dog_eat(), done_eating(), dosacrifice(), dotrap(), drag_ball(), drag_down(), drain_item(), eatcorpse(), eatfood(), eatspecial(), erode_armor(), erode_obj(), feel_location(), figurine_location_checks(), float_down(), goto_level(), grease_protect(), hatch_egg(), hurtle(), in_container(), merged(), move_bc(), oname(), opentin(), out_container(), passive_obj(), placebc(), poly_obj(), set_bc(), set_trap(), shk_your(), start_tin(), teleds(), touchfood(), unbless(), uncurse(), unplacebc(), and use_tinning_kit().
#define CONTAINED_TOO 0x1 |
Referenced by begin_burn(), doname_base(), get_obj_location(), poly_obj(), and revive().
#define Dragon_mail_to_pm | ( | obj ) |
&mons[PM_GRAY_DRAGON + (obj)->otyp \ - GRAY_DRAGON_SCALE_MAIL]
Referenced by mon_break_armor(), muse_newcham_mon(), and select_newcham_form().
#define Dragon_mail_to_scales | ( | idx ) | (idx - GRAY_DRAGON_SCALE_MAIL + GRAY_DRAGON_SCALES) |
Referenced by discover_object(), and forget_single_object().
#define Dragon_scales_to_mail | ( | idx ) | (idx - GRAY_DRAGON_SCALES + GRAY_DRAGON_SCALE_MAIL) |
Referenced by discover_object(), and forget_single_object().
#define Dragon_scales_to_pm | ( | obj ) |
&mons[PM_GRAY_DRAGON + (obj)->otyp \ - GRAY_DRAGON_SCALES]
Referenced by mon_break_armor(), muse_newcham_mon(), and select_newcham_form().
#define drainlevel | ( | corpse ) | (mons[(corpse)->corpsenm].cnutrit*4/5) |
Referenced by doeat(), dog_eat(), doname_base(), eatcorpse(), eatfood(), is_edible(), and readobjnam().
#define fromsink corpsenm |
#define greatest_erosion | ( | otmp ) | (int)((otmp)->oeroded > (otmp)->oeroded2 ? (otmp)->oeroded : (otmp)->oeroded2) |
Referenced by dig(), dmgval(), doread(), forcelock(), hmon_hitmon(), and thitmonst().
#define Has_contents | ( | o ) |
Referenced by addtobill(), artifact_score(), bill_box_content(), clear_unpaid(), contained_cost(), contained_gold(), count_objects(), count_unidentified(), count_unpaid(), do_dknown_of(), doname_base(), dounpaid(), dropped_container(), find_unpaid(), fire_damage(), get_cost_of_shop_item(), get_valuables(), hidden_gold(), impact_drop(), is_edible(), keepdogs(), kill_eggs(), mbag_explodes(), meatobj(), migrate_to_level(), o_in(), o_material(), o_on(), obfree(), picked_container(), poly_obj(), price_quote(), readobjnam(), realloc_obj(), restobjchn(), rot_organic(), saveobjchn(), sellobj(), ship_object(), stolen_container(), stolen_value(), subfrombill(), and trim_contents().
#define ignitable | ( | otmp ) |
((otmp)->otyp == BRASS_LANTERN\ || (otmp)->otyp == OIL_LAMP\ || (otmp)->otyp == CANDELABRUM_OF_INVOCATION\ || (otmp)->otyp == TALLOW_CANDLE\ || (otmp)->otyp == WAX_CANDLE\ || (otmp)->otyp == POT_OIL)
Referenced by catch_lit(), and obj_is_burning().
#define is_ammo | ( | otmp ) |
((otmp->oclass == WEAPON_CLASS || \ otmp->oclass == GEM_CLASS) && \ objects[otmp->otyp].oc_skill >= -P_CROSSBOW && \ objects[otmp->otyp].oc_skill <= -P_BOW)
Referenced by autoquiver(), dip(), hmon_hitmon(), ini_inv(), m_throw(), readobjnam(), setuwep(), thitmonst(), and throwit().
#define is_axe | ( | otmp ) |
((otmp->oclass == WEAPON_CLASS || \ otmp->oclass == TOOL_CLASS) && \ objects[otmp->otyp].oc_skill == P_AXE)
Referenced by dig(), dig_check(), dmgval(), doapply(), dog_move(), getobj(), m_move(), and mfndpos().
#define is_blade | ( | otmp ) |
#define is_boots | ( | otmp ) |
Referenced by armoroff(), canwearobj(), cursed(), dowear(), engrave(), ini_inv(), m_dowear_type(), seffects(), silly_thing(), and xname().
#define Is_box | ( | otmp ) |
Referenced by bhito(), doforce(), dosit(), in_container(), kick_object(), openone(), pick_lock(), poly_obj(), readobjnam(), untrap(), and water_damage().
#define Is_candle | ( | otmp ) |
(otmp->otyp == TALLOW_CANDLE || \ otmp->otyp == WAX_CANDLE)
Referenced by bill_dummy_object(), burn_object(), can_ooze(), candle_light_range(), contained_cost(), doname_base(), getprice(), mergable(), obj_split_light_source(), readobjnam(), sellobj(), snuff_candle(), and use_lamp().
#define is_cloak | ( | otmp ) |
Referenced by armoroff(), can_ooze(), canwearobj(), dowear(), ini_inv(), m_dowear_type(), seffects(), and xname().
#define Is_container | ( | o ) | ((o)->otyp >= LARGE_BOX && (o)->otyp <= BAG_OF_TRICKS) |
Referenced by bhito(), can_ooze(), click_to_cmd(), container_at(), container_contents(), container_impact_dmg(), doloot(), fire_damage(), obj_no_longer_held(), water_damage(), and weight().
#define Is_dragon_armor | ( | idx ) | (Is_dragon_scales(idx) || Is_dragon_mail(idx)) |
Referenced by knows_class(), and readobjnam().
#define Is_dragon_mail | ( | idx ) |
(idx >= GRAY_DRAGON_SCALE_MAIL && \ idx <= YELLOW_DRAGON_SCALE_MAIL)
Referenced by discover_object(), forget_single_object(), mon_break_armor(), muse_newcham_mon(), and select_newcham_form().
#define Is_dragon_scales | ( | idx ) |
(idx >= GRAY_DRAGON_SCALES && \ idx <= YELLOW_DRAGON_SCALES)
Referenced by discover_object(), dotakeoff(), forget_single_object(), mon_break_armor(), muse_newcham_mon(), readobjnam(), select_newcham_form(), and xname().
#define is_dwarvish_armor | ( | otmp ) |
((otmp)->otyp == DWARVISH_IRON_HELM\ || (otmp)->otyp == DWARVISH_MITHRIL_COAT\ || (otmp)->otyp == DWARVISH_CLOAK\ || (otmp)->otyp == DWARVISH_ROUNDSHIELD)
#define is_dwarvish_obj | ( | otmp ) |
(is_dwarvish_armor(otmp)\ || (otmp)->otyp == DWARVISH_SPEAR\ || (otmp)->otyp == DWARVISH_SHORT_SWORD\ || (otmp)->otyp == DWARVISH_MATTOCK)
#define is_elven_armor | ( | otmp ) |
((otmp)->otyp == ELVEN_LEATHER_HELM\ || (otmp)->otyp == ELVEN_MITHRIL_COAT\ || (otmp)->otyp == ELVEN_CLOAK\ || (otmp)->otyp == ELVEN_SHIELD\ || (otmp)->otyp == ELVEN_BOOTS)
Referenced by racial_exception(), and seffects().
#define is_elven_weapon | ( | otmp ) |
((otmp)->otyp == ELVEN_ARROW\ || (otmp)->otyp == ELVEN_SPEAR\ || (otmp)->otyp == ELVEN_DAGGER\ || (otmp)->otyp == ELVEN_SHORT_SWORD\ || (otmp)->otyp == ELVEN_BROADSWORD\ || (otmp)->otyp == ELVEN_BOW)
Referenced by chwepon().
Referenced by break_armor(), canwearobj(), hmon_hitmon(), m_dowear_type(), mon_break_armor(), and use_stone().
#define is_gloves | ( | otmp ) |
(otmp->oclass == ARMOR_CLASS && \ objects[otmp->otyp].oc_armcat == ARM_GLOVES)
Referenced by armoroff(), can_ooze(), canwearobj(), cursed(), dowear(), ini_inv(), m_dowear_type(), seffects(), silly_thing(), and xname().
#define is_gnomish_armor | ( | otmp ) | (FALSE) |
#define Is_gold_dragon_armor | ( | idx ) |
(Is_dragon_armor(idx) && \ (OBJ_DESCR(objects[idx])) && \ (!strncmp(OBJ_DESCR(objects[idx]), "gold ", 5)))
Referenced by Armor_gone(), Armor_off(), Armor_on(), begin_burn(), savebones(), and update_mon_intrinsics().
#define is_graystone | ( | obj ) |
((obj)->otyp == LUCKSTONE || \ (obj)->otyp == LOADSTONE || \ (obj)->otyp == FLINT || \ (obj)->otyp == TOUCHSTONE)
Referenced by dorub(), getobj(), ini_inv(), uhave_graystone(), and use_stone().
#define is_helmet | ( | otmp ) |
Referenced by armoroff(), canwearobj(), dowear(), ini_inv(), m_dowear_type(), seffects(), and xname().
#define is_launcher | ( | otmp ) |
(otmp->oclass == WEAPON_CLASS && \ objects[otmp->otyp].oc_skill >= P_BOW && \ objects[otmp->otyp].oc_skill <= P_CROSSBOW)
Referenced by hmon_hitmon(), and setuwep().
#define Is_mbag | ( | otmp ) |
(otmp->otyp == BAG_OF_HOLDING || \ otmp->otyp == BAG_OF_TRICKS)
Referenced by container_impact_dmg(), in_container(), mbag_explodes(), mkbox_cnts(), and use_container().
#define is_missile | ( | otmp ) |
((otmp->oclass == WEAPON_CLASS || \ otmp->oclass == TOOL_CLASS) && \ objects[otmp->otyp].oc_skill >= -P_BOOMERANG && \ objects[otmp->otyp].oc_skill <= -P_DART)
Referenced by autoquiver(), hmon_hitmon(), hold_another_object(), ini_inv(), readobjnam(), setuwep(), and throwing_weapon().
#define is_multigen | ( | otmp ) |
(otmp->oclass == WEAPON_CLASS && \ objects[otmp->otyp].oc_skill >= -P_SHURIKEN && \ objects[otmp->otyp].oc_skill <= -P_BOW)
Referenced by drop_throw(), and mksobj().
#define is_orcish_armor | ( | otmp ) |
((otmp)->otyp == ORCISH_HELM\ || (otmp)->otyp == ORCISH_CHAIN_MAIL\ || (otmp)->otyp == ORCISH_RING_MAIL\ || (otmp)->otyp == ORCISH_CLOAK\ || (otmp)->otyp == URUK_HAI_SHIELD\ || (otmp)->otyp == ORCISH_SHIELD)
#define is_orcish_obj | ( | otmp ) |
(is_orcish_armor(otmp)\ || (otmp)->otyp == ORCISH_ARROW\ || (otmp)->otyp == ORCISH_SPEAR\ || (otmp)->otyp == ORCISH_DAGGER\ || (otmp)->otyp == ORCISH_SHORT_SWORD\ || (otmp)->otyp == ORCISH_BOW)
#define is_pick | ( | otmp ) |
((otmp->oclass == WEAPON_CLASS || \ otmp->oclass == TOOL_CLASS) && \ objects[otmp->otyp].oc_skill == P_PICK_AXE)
Referenced by bhit(), dig(), dig_typ(), doapply(), dochug(), dodown(), dog_move(), getobj(), hitval(), m_move(), mfndpos(), out_container(), test_move(), throwit(), use_pick_axe(), and use_pick_axe2().
#define is_plural | ( | o ) |
((o)->quan > 1 || \ (o)->oartifact == ART_EYES_OF_THE_OVERWORLD)
Referenced by can_twoweapon(), do_oname(), dokick(), dowieldquiver(), mon_wield_item(), otense(), and use_misc().
#define is_poisonable | ( | otmp ) |
(otmp->oclass == WEAPON_CLASS && \ objects[otmp->otyp].oc_skill >= -P_SHURIKEN && \ objects[otmp->otyp].oc_skill <= -P_BOW)
Referenced by dip(), hmon_hitmon(), m_throw(), mksobj(), ohitmon(), poly_obj(), readobjnam(), and xname().
#define is_pole | ( | otmp ) |
((otmp->oclass == WEAPON_CLASS || \ otmp->oclass == TOOL_CLASS) && \ (objects[otmp->otyp].oc_skill == P_POLEARMS || \ objects[otmp->otyp].oc_skill == P_LANCE))
Referenced by doapply(), getobj(), hmon_hitmon(), setuwep(), thrwmu(), and xkilled().
#define is_shield | ( | otmp ) |
(otmp->oclass == ARMOR_CLASS && \ objects[otmp->otyp].oc_armcat == ARM_SHIELD)
Referenced by armoroff(), canwearobj(), dowear(), ini_inv(), m_dowear_type(), seffects(), and xname().
#define is_shirt | ( | otmp ) |
Referenced by can_ooze(), canwearobj(), dowear(), ini_inv(), and m_dowear_type().
Referenced by del_sokoprize(), dog_invent(), impact_drop(), m_move(), mapglyph(), meatobj(), mpickstuff(), pickup_object(), ship_object(), and xname().
#define is_spear | ( | otmp ) |
#define is_suit | ( | otmp ) |
Referenced by canwearobj(), ini_inv(), and m_dowear_type().
#define is_sword | ( | otmp ) |
(otmp->oclass == WEAPON_CLASS && \ objects[otmp->otyp].oc_skill >= P_SHORT_SWORD && \ objects[otmp->otyp].oc_skill <= P_SABER)
Referenced by canwearobj(), glibr(), mongets(), ready_weapon(), select_off(), and throwing_weapon().
#define is_weptool | ( | o ) |
((o)->oclass == TOOL_CLASS && \ objects[(o)->otyp].oc_skill != P_NONE)
Referenced by cancel_item(), cancellable(), chwepon(), dip(), dmgval(), doforce(), domonnoise(), doname_base(), dowield(), drain_item(), find_roll_to_hit(), getobj(), hitmu(), hitval(), hmon_hitmon(), ini_inv(), is_chargeable(), known_hitum(), not_fully_identified(), omon_adj(), pleased(), readobjnam(), seffects(), setuwep(), setworn(), and thitmonst().
#define leashmon corpsenm |
#define MAX_EGG_HATCH_TIME 200 |
Referenced by attach_egg_hatch_timeout().
#define MAX_ERODE 3 |
Referenced by cursed_book(), dip(), doread(), erode_obj(), fire_damage(), get_wet(), mrustm(), rust_dmg(), urustm(), and water_damage().
#define MAX_OIL_IN_FLASK 400 |
Referenced by mksobj().
#define mcarried | ( | o ) | ((o)->where == OBJ_MINVENT) |
Referenced by curse(), erode_obj(), and merged().
Referenced by dog_eat(), meatmetal(), and meatobj().
Referenced by dog_eat(), meatmetal(), and meatobj().
Referenced by bill_dummy_object(), mksobj(), realloc_obj(), restobjchn(), splitobj(), and sub_one_frombill().
#define nexthere v.v_nexthere |
#define NOBJ_STATES 8 |
#define norevive oeroded2 |
#define OATTACHED_M_ID 2 |
Referenced by obj_attach_mid(), reset_oattached_mids(), and revive().
#define OATTACHED_MONST 1 |
Referenced by animate_statue(), dosacrifice(), get_mtraits(), montraits(), reset_oattached_mids(), revive(), and save_mtraits().
#define OATTACHED_NOTHING 0 |
Referenced by fracture_rock(), realloc_obj(), reset_oattached_mids(), revive(), and sub_one_frombill().
#define OATTACHED_UNUSED3 3 |
#define OBJ_BURIED 6 |
Referenced by add_to_buried(), get_obj_location(), obj_extract_self(), obj_is_local(), and obj_timer_checks().
#define OBJ_CONTAINED 2 |
#define OBJ_FLOOR 1 |
Referenced by bhito(), burn_object(), costly_cancel(), delobj(), fig_transform(), fracture_rock(), get_cost_of_shop_item(), get_obj_location(), hatch_egg(), lantern_message(), merge_choice(), obj_extract_self(), obj_is_local(), obj_timer_checks(), place_object(), poly_obj(), remove_object(), replace_object(), revive(), revive_corpse(), rot_corpse(), see_lamp_flicker(), shk_owns(), and splitobj().
#define OBJ_FREE 0 |
Referenced by add_to_billobjs(), add_to_buried(), add_to_container(), add_to_migration(), add_to_minv(), addinv(), bill_dummy_object(), dealloc_obj(), display_minventory(), eatspecial(), extract_nobj(), find_lev_obj(), flooreffects(), mksobj(), obj_extract_self(), place_object(), replace_object(), saveobjchn(), sub_one_frombill(), and teleds().
#define OBJ_INVENT 3 |
Referenced by add_to_container(), addinv(), burn_object(), catch_lit(), cleanup_burn(), costly_cancel(), doorganize(), end_burn(), fig_transform(), get_obj_location(), hatch_egg(), lantern_message(), obj_extract_self(), obj_is_local(), poly_obj(), replace_object(), revive(), revive_corpse(), rot_corpse(), see_lamp_flicker(), and steal_it().
#define OBJ_MIGRATING 5 |
Referenced by add_to_migration(), fig_transform(), hatch_egg(), kick_object(), obj_extract_self(), and obj_is_local().
#define OBJ_MINVENT 4 |
Referenced by add_to_container(), add_to_minv(), burn_object(), catch_lit(), fig_transform(), get_container_location(), get_obj_location(), hatch_egg(), kick_object(), lantern_message(), mon_owns(), obj_extract_self(), obj_is_local(), replace_object(), replmon(), revive(), revive_corpse(), rot_corpse(), see_lamp_flicker(), snuff_candle(), snuff_lit(), and throwit().
#define OBJ_ONBILL 7 |
Referenced by add_to_billobjs(), and obj_extract_self().
#define ocarry v.v_ocarry |
#define ocontainer v.v_ocontainer |
#define odiluted oeroded |
#define ofood | ( | o ) | ((o)->otyp == CORPSE || (o)->otyp == EGG || (o)->otyp == TIN) |
Referenced by animate_statue(), bill_dummy_object(), chwepon(), make_familiar(), makewish(), mergable(), merged(), obj_attach_mid(), oname(), readobjnam(), realloc_obj(), resetobjs(), revive(), save_mtraits(), splitobj(), and xname().
#define opoisoned otrapped |
#define orecursive olocked |
#define orotten oeroded |
#define polyfodder | ( | obj ) |
(ofood(obj) && \ pm_to_cham((obj)->corpsenm) != CHAM_ORDINARY)
Referenced by dog_eat(), dropy(), meatmetal(), and meatobj().
#define sokoprize olocked |
#define spestudied corpsenm |
#define stale_egg | ( | egg ) | ((monstermoves - (egg)->age) > (2*MAX_EGG_HATCH_TIME)) |
Referenced by doname_base(), fprefx(), and hmon_hitmon().
#define STATUE_FEMALE 0x04 |
Referenced by animate_statue().
#define STATUE_HISTORIC 0x01 |
Referenced by animate_statue(), break_statue(), readobjnam(), and xname().
#define STATUE_MALE 0x02 |
Referenced by animate_statue().
Referenced by autoquiver(), dothrow(), dowieldquiver(), and seffects().