/dports/games/dungeoncrawl/dc400b26-src/source/ |
H A D | item_use.cc | 94 if (!can_equip( EQ_WEAPON )) in wield_weapon() 101 if (you.equip[EQ_WEAPON] != -1 in wield_weapon() 179 if (you.equip[EQ_WEAPON] != -1) in wield_weapon() 573 if (item == you.equip[EQ_WEAPON]) in do_wear_armour() 593 if (you.equip[EQ_WEAPON] != -1 in do_wear_armour() 1197 if (you.equip[EQ_WEAPON] < 0) in throw_it() 1646 you.equip[EQ_WEAPON] = -1; in throw_it() 2603 int affected_slot = EQ_WEAPON; in enchant_armour() 2616 if (affected_slot == EQ_WEAPON) in enchant_armour() 3036 affected = EQ_WEAPON; in read_scroll() [all …]
|
H A D | transfor.cc | 44 remove_stuff[EQ_WEAPON] = 1; in remove_equipment() 46 if (remove_stuff[EQ_WEAPON] == 1 && you.equip[EQ_WEAPON] != -1) in remove_equipment() 48 unwield_item(you.equip[EQ_WEAPON]); in remove_equipment() 49 you.equip[EQ_WEAPON] = -1; in remove_equipment() 75 for (int i = EQ_WEAPON; i < EQ_LEFT_RING; i++) in check_for_cursed_equipment() 141 for (int i = EQ_WEAPON; i < EQ_RIGHT_RING; i++) in transform() 219 rem_stuff[ EQ_WEAPON ] = 0; /* can still hold a weapon */ in transform() 350 for (int i = EQ_WEAPON; i < EQ_RIGHT_RING; i++) in untransform() 503 return (use_which != EQ_WEAPON in can_equip() 508 return (use_which == EQ_WEAPON in can_equip()
|
H A D | spells3.cc | 121 if (you.equip[EQ_WEAPON] != -1 in remove_curse() 124 if (item_cursed( you.inv[you.equip[EQ_WEAPON]] )) in remove_curse() 126 do_uncurse_item( you.inv[you.equip[EQ_WEAPON]] ); in remove_curse() 278 if (you.equip[EQ_WEAPON] == -1 in cast_bone_shards() 294 dec_inv_item_quantity( you.equip[EQ_WEAPON], 1 ); in cast_bone_shards() 307 if (you.equip[EQ_WEAPON] == -1 in sublimation() 347 dec_inv_item_quantity( you.equip[EQ_WEAPON], 1 ); in sublimation() 374 const int chunk = you.equip[EQ_WEAPON]; in simulacrum() 431 const int wpn = you.equip[EQ_WEAPON]; in dancing_weapon() 478 you.equip[EQ_WEAPON] = -1; in dancing_weapon() [all …]
|
H A D | food.cc | 142 if (you.equip[EQ_WEAPON] != -1) in weapon_switch() 143 unwield_item(you.equip[EQ_WEAPON]); in weapon_switch() 145 you.equip[EQ_WEAPON] = targ; in weapon_switch() 164 int old_weapon = you.equip[EQ_WEAPON]; in butchery() 190 if (you.equip[EQ_WEAPON] != -1) in butchery() 214 if (you.equip[EQ_WEAPON] == a_slot) in butchery() 219 if (you.equip[EQ_WEAPON] != swap_slot) in butchery() 246 if (you.equip[EQ_WEAPON] != old_weapon) in butchery() 254 if (wpn_switch && you.equip[EQ_WEAPON] != -1) in butchery() 272 int wpn = you.equip[EQ_WEAPON]; in butchery() [all …]
|
H A D | it_use3.cc | 57 const int wpn = you.equip[EQ_WEAPON]; in special_wielded() 294 skill = weapon_skill( you.inv[you.equip[EQ_WEAPON]].base_type, in reaching_weapon_attack() 295 you.inv[you.equip[EQ_WEAPON]].sub_type ); in reaching_weapon_attack() 337 int wield = you.equip[EQ_WEAPON]; in evoke_wielded() 501 if (item_not_ident( you.inv[you.equip[EQ_WEAPON]], in evoke_wielded() 504 set_ident_flags( you.inv[you.equip[EQ_WEAPON]], in evoke_wielded() 508 in_name( you.equip[EQ_WEAPON], DESC_NOCAP_A, str_pass ); in evoke_wielded() 666 dec_inv_item_quantity( you.equip[EQ_WEAPON], 1 ); in evoke_wielded() 697 dec_inv_item_quantity( you.equip[EQ_WEAPON], 1 ); in efreet_flask() 1002 you.inv[you.equip[EQ_WEAPON]].sub_type = MISC_EMPTY_EBONY_CASKET; in box_of_beasts()
|
H A D | player.cc | 186 case EQ_WEAPON: in player_equip() 188 if (you.equip[EQ_WEAPON] != -1 in player_equip() 198 if (you.equip[EQ_WEAPON] != -1 in player_equip() 274 case EQ_WEAPON: in player_equip_ego_type() 279 wpn = you.equip[EQ_WEAPON]; in player_equip_ego_type() 325 const int wpn = you.equip[ EQ_WEAPON ]; in player_damage_type() 347 const int wpn = you.equip[ EQ_WEAPON ]; in player_damage_brand() 390 if (you.equip[EQ_WEAPON] != -1 in player_teleport() 778 if (you.equip[EQ_WEAPON] != -1 in player_res_poison() 967 if (you.equip[EQ_WEAPON] != -1 in player_spec_poison() [all …]
|
H A D | items.cc | 213 if (you.equip[EQ_WEAPON] == obj) in dec_inv_item_quantity() 223 if (i == EQ_WEAPON) in dec_inv_item_quantity() 264 if (you.equip[EQ_WEAPON] == obj) in inc_inv_item_quantity() 1346 if (item_dropped == you.equip[EQ_WEAPON] in drop() 1381 if (item_dropped == you.equip[EQ_WEAPON]) in drop() 1384 you.equip[EQ_WEAPON] = -1; in drop() 2191 if (you.equip[EQ_WEAPON] != -1 in handle_time() 2298 if (you.equip[EQ_WEAPON] == i) in handle_time() 2301 you.equip[EQ_WEAPON] = -1; in handle_time() 2316 if (you.equip[EQ_WEAPON] == i) in handle_time() [all …]
|
H A D | effects.cc | 341 if (you.equip[EQ_WEAPON] != -1) in random_uselessness() 344 in_name(you.equip[EQ_WEAPON], DESC_CAP_YOUR, str_pass); in random_uselessness() 1249 if (you.equip[EQ_WEAPON] == -1 in recharge_wand() 1250 || you.inv[you.equip[EQ_WEAPON]].base_type != OBJ_WANDS) in recharge_wand() 1257 switch (you.inv[you.equip[EQ_WEAPON]].sub_type) in recharge_wand() 1281 in_name(you.equip[EQ_WEAPON], DESC_CAP_YOUR, str_pass); in recharge_wand() 1286 you.inv[you.equip[EQ_WEAPON]].plus += in recharge_wand() 1289 if (you.inv[you.equip[EQ_WEAPON]].plus > charge_gain * 3) in recharge_wand() 1290 you.inv[you.equip[EQ_WEAPON]].plus = charge_gain * 3; in recharge_wand()
|
H A D | it_use2.cc | 404 int tmp = you.equip[ EQ_WEAPON ]; in unwield_item() 406 you.equip[ EQ_WEAPON ] = -1; in unwield_item() 408 you.equip[ EQ_WEAPON ] = tmp; in unwield_item()
|
H A D | output.cc | 266 if (you.equip[EQ_WEAPON] != -1) in print_stats() 269 textcolor(you.inv[you.equip[EQ_WEAPON]].colour); in print_stats() 272 in_name( you.equip[EQ_WEAPON], DESC_INVENTORY, str_pass, Options.terse_hand ); in print_stats()
|
H A D | command.cc | 121 if (to_slot == you.equip[EQ_WEAPON] || from_slot == you.equip[EQ_WEAPON]) in adjust_item() 454 const int weapon_id = you.equip[EQ_WEAPON]; in list_weapons()
|
H A D | newgame.cc | 2568 you.equip[EQ_WEAPON] = 0; in create_wanderer() 3144 you.equip[EQ_WEAPON] = 0; in give_items_skills() 3195 you.equip[EQ_WEAPON] = 0; in give_items_skills() 3279 you.equip[EQ_WEAPON] = 0; in give_items_skills() 3338 you.equip[EQ_WEAPON] = 0; in give_items_skills() 3369 you.equip[EQ_WEAPON] = 0; in give_items_skills() 3414 you.equip[EQ_WEAPON] = 0; in give_items_skills() 3484 you.equip[EQ_WEAPON] = 0; in give_items_skills() 3650 you.equip[EQ_WEAPON] = 0; in give_items_skills() 3743 you.equip[EQ_WEAPON] = 0; in give_items_skills() [all …]
|
H A D | skills2.cc | 2280 if (you.equip[EQ_WEAPON] == -1) in wield_warning() 2288 int wepType = you.inv[you.equip[EQ_WEAPON]].sub_type; in wield_warning() 2291 if (you.inv[you.equip[EQ_WEAPON]].base_type != OBJ_WEAPONS) in wield_warning()
|
H A D | decks.cc | 272 you.inv[you.equip[EQ_WEAPON]].plus--; in deck_of_cards() 274 if (you.inv[you.equip[EQ_WEAPON]].plus == 0) in deck_of_cards() 278 unwield_item(you.equip[EQ_WEAPON]); in deck_of_cards() 280 dec_inv_item_quantity( you.equip[EQ_WEAPON], 1 ); in deck_of_cards()
|
H A D | spl-cast.cc | 290 if (you.equip[EQ_WEAPON] != -1 in spell_fail() 291 && you.inv[you.equip[EQ_WEAPON]].base_type == OBJ_WEAPONS) in spell_fail() 293 int wpn_penalty = (3 * (property( you.inv[you.equip[EQ_WEAPON]], PWPN_SPEED ) - 12)) / 2; in spell_fail() 656 if (you.equip[EQ_WEAPON] != -1 in your_spells() 657 && item_is_staff( you.inv[you.equip[EQ_WEAPON]] ) in your_spells() 658 && item_not_ident( you.inv[you.equip[EQ_WEAPON]], ISFLAG_KNOW_TYPE )) in your_spells() 660 switch (you.inv[you.equip[EQ_WEAPON]].sub_type) in your_spells() 719 set_ident_flags( you.inv[you.equip[EQ_WEAPON]], ISFLAG_KNOW_TYPE ); in your_spells() 722 in_name(you.equip[EQ_WEAPON], DESC_NOCAP_A, str_pass); in your_spells()
|
H A D | spells4.cc | 669 const int weapon = you.equip[EQ_WEAPON]; in cast_sticks_to_snakes() 753 if (how_many > you.inv[you.equip[EQ_WEAPON]].quantity) in cast_sticks_to_snakes() 754 how_many = you.inv[you.equip[EQ_WEAPON]].quantity; in cast_sticks_to_snakes() 758 dec_inv_item_quantity( you.equip[EQ_WEAPON], how_many ); in cast_sticks_to_snakes() 1075 const int wpn = you.equip[EQ_WEAPON]; in cast_ignite_poison() 1135 if (item == you.equip[EQ_WEAPON]) in cast_ignite_poison() 1137 you.equip[EQ_WEAPON] = -1; in cast_ignite_poison() 2767 const int weapon = you.equip[ EQ_WEAPON ]; in cast_far_strike() 2985 if (you.equip[EQ_WEAPON] != -1) in cast_sandblast() 2987 int wep = you.equip[EQ_WEAPON]; in cast_sandblast() [all …]
|
H A D | spells1.cc | 261 if (item_slot == you.equip[EQ_WEAPON]) in identify() 1007 if (you.equip[EQ_WEAPON] == -1) in cast_sure_blade() 1009 else if (weapon_skill( you.inv[you.equip[EQ_WEAPON]].base_type, in cast_sure_blade() 1010 you.inv[you.equip[EQ_WEAPON]].sub_type) != SK_SHORT_BLADES) in cast_sure_blade()
|
/dports/games/stonesoup/crawl-0.27.1/crawl-ref/source/ |
H A D | equipment-type.h | 7 EQ_WEAPON, enumerator 8 EQ_FIRST_EQUIP = EQ_WEAPON,
|
H A D | player-equip.cc | 173 if (slot == EQ_WEAPON && eq != EQ_WEAPON) in equip_effect() 185 if (slot == EQ_WEAPON) in equip_effect() 198 if (slot == EQ_WEAPON && eq != EQ_WEAPON) in unequip_effect() 205 if (slot == EQ_WEAPON) in unequip_effect() 430 _equip_artefact_effect(item, &showMsgs, unmeld, EQ_WEAPON); in _equip_weapon_effect() 586 _unequip_artefact_effect(real_item, &showMsgs, meld, EQ_WEAPON, in _unequip_weapon_effect() 1241 const bool is_weapon = get_item_slot(item) == EQ_WEAPON; in unwield_item() 1246 unequip_item(EQ_WEAPON, showMsgs); in unwield_item()
|
H A D | player-act.cc | 221 const int wpn = equip[EQ_WEAPON]; in damage_brand() 222 if (wpn != -1 && !melded[EQ_WEAPON]) in damage_brand() 329 if (melded[EQ_WEAPON]) in weapon() 332 return slot_item(EQ_WEAPON, false); in weapon() 348 if (equip[EQ_WEAPON] != -1 && !ignore_curse) in can_wield() 350 if (inv[equip[EQ_WEAPON]].cursed()) in can_wield()
|
H A D | transform.cc | 46 static const int EQF_HANDS = SLOTF(EQ_WEAPON) | SLOTF(EQ_SHIELD) 156 slot = EQ_WEAPON; in slot_available() 1222 if (!form_can_wield(form) && you.weapon() || you.melded[EQ_WEAPON]) in _init_equipment_removal() 1223 result.insert(EQ_WEAPON); in _init_equipment_removal() 1229 result.insert(EQ_WEAPON); in _init_equipment_removal() 1234 if (i == EQ_WEAPON) in _init_equipment_removal() 1261 if (!unequip && e == EQ_WEAPON) in _remove_equipment() 1284 if (e == EQ_WEAPON) in _remove_equipment() 1316 if (e == EQ_WEAPON) in _unmeld_equipment_type() 1742 && which_trans == transformation::lich && rem_stuff.count(EQ_WEAPON) in transform()
|
H A D | tiledoll.cc | 361 const int item = you.melded[EQ_WEAPON] ? -1 : you.equip[EQ_WEAPON]; in fill_doll_equipment() 639 if (you.slot_item(EQ_WEAPON)) in pack_doll_buf() 641 item = new item_def(get_item_known_info(*you.slot_item(EQ_WEAPON))); in pack_doll_buf() 680 if ((p == TILEP_PART_HAND1 && you.slot_item(EQ_WEAPON) in pack_doll_buf()
|
H A D | wiz-fsim.cc | 86 const int weapon = you.equip[EQ_WEAPON]; in _equipped_skill() 102 const int weapon = you.equip[EQ_WEAPON]; in _equipped_weapon_name() 193 if (i != you.equip[EQ_WEAPON]) in _equip_weapon() 196 if (i != you.equip[EQ_WEAPON]) in _equip_weapon() 373 const int weapon = you.equip[EQ_WEAPON]; in _do_one_fsim_round()
|
H A D | adjust.cc | 238 if (to_slot == you.equip[EQ_WEAPON] || from_slot == you.equip[EQ_WEAPON]) in swap_inv_slots()
|
H A D | evoke.cc | 233 if (you.equip[EQ_WEAPON] == item_slot) in zap_wand() 1042 && (slot != -1 && slot == you.equip[EQ_WEAPON] in evoke_check() 1043 || slot == -1 && you.equip[EQ_WEAPON] >= 0); in evoke_check() 1051 if ((reaching || ranged) && you.melded[EQ_WEAPON]) in evoke_check() 1159 const bool wielded = (you.equip[EQ_WEAPON] == slot); in evoke_item()
|