bool BaseitemKey::is_equipement() const
{
- switch (this->type_value) {
- case ItemKindType::SHOT:
- case ItemKindType::ARROW:
- case ItemKindType::BOLT:
- case ItemKindType::BOW:
- case ItemKindType::DIGGING:
- case ItemKindType::HAFTED:
- case ItemKindType::POLEARM:
- case ItemKindType::SWORD:
- case ItemKindType::BOOTS:
- case ItemKindType::GLOVES:
- case ItemKindType::HELM:
- case ItemKindType::CROWN:
- case ItemKindType::SHIELD:
- case ItemKindType::CLOAK:
- case ItemKindType::SOFT_ARMOR:
- case ItemKindType::HARD_ARMOR:
- case ItemKindType::DRAG_ARMOR:
- case ItemKindType::LITE:
- case ItemKindType::AMULET:
- case ItemKindType::RING:
- case ItemKindType::CARD:
- return true;
- default:
- return false;
- }
+ return this->is_wearable() || this->is_ammo();
}
bool BaseitemKey::is_melee_ammo() const