bool object_is_weapon_armour_ammo(object_type *o_ptr) { if (enchantment_hack && o_ptr->name1 == ART_HEPHAESTUS) return FALSE; if (object_is_weapon_ammo(o_ptr) || object_is_armour(o_ptr)) return TRUE; return FALSE; }
/* * Check if an object is weapon (including bows and ammo) and allows enchantment */ bool object_allow_enchant_weapon(object_type *o_ptr) { if (object_is_weapon_ammo(o_ptr) && !object_refuse_enchant_weapon(o_ptr)) return TRUE; return FALSE; }
/* * Check if an object is weapon, armour or ammo */ bool object_is_weapon_armour_ammo(object_type *o_ptr) { if (object_is_weapon_ammo(o_ptr) || object_is_armour(o_ptr)) return TRUE; return FALSE; }