}
}
-void have_mighty_throw(player_type *creature_ptr)
+BIT_FLAGS have_mighty_throw(player_type *creature_ptr)
{
- object_type *o_ptr;
-
- creature_ptr->mighty_throw = FALSE;
-
- for (inventory_slot_type i = INVEN_RARM; i < INVEN_TOTAL; i++) {
- o_ptr = &creature_ptr->inventory_list[i];
- if (!o_ptr->k_idx)
- continue;
-
- if (o_ptr->name2 == EGO_RING_THROW)
- creature_ptr->mighty_throw = TRUE;
- }
+ BIT_FLAGS result = 0L;
+ result |= check_equipment_flags(creature_ptr, TR_MIGHTY_THROW);
+ return result;
}
BIT_FLAGS have_dec_mana(player_type *creature_ptr)
void have_down_saving(player_type *creature_ptr);
void have_no_ac(player_type *creature_ptr);
void have_no_flowed(player_type *creature_ptr);
-void have_mighty_throw(player_type *creature_ptr);
+BIT_FLAGS have_mighty_throw(player_type *creature_ptr);
BIT_FLAGS have_dec_mana(player_type *creature_ptr);
BIT_FLAGS have_reflect(player_type *creature_ptr);
void have_see_nocto(player_type *creature_ptr);
BIT_FLAGS old_esp_nonliving = creature_ptr->esp_nonliving;
BIT_FLAGS old_esp_unique = creature_ptr->esp_unique;
bool old_see_inv = creature_ptr->see_inv;
- bool old_mighty_throw = creature_ptr->mighty_throw;
+ BIT_FLAGS old_mighty_throw = creature_ptr->mighty_throw;
s16b old_speed = creature_ptr->pspeed;
ARMOUR_CLASS old_dis_ac = creature_ptr->dis_ac;
have_easy2_weapon(creature_ptr);
have_down_saving(creature_ptr);
have_no_ac(creature_ptr);
- have_mighty_throw(creature_ptr);
+ creature_ptr->mighty_throw = have_mighty_throw(creature_ptr);
creature_ptr->dec_mana = have_dec_mana(creature_ptr);
creature_ptr->reflect = have_reflect(creature_ptr);
have_see_nocto(creature_ptr);
BIT_FLAGS easy_spell;
bool heavy_spell;
bool warning;
- bool mighty_throw;
+ BIT_FLAGS mighty_throw;
bool see_nocto; /* Noctovision */
bool invoking_midnight_curse;