}
}
+bool BaseitemKey::refuse_enchant_weapon() const
+{
+ return *this == BaseitemKey(ItemKindType::SWORD, SV_POISON_NEEDLE);
+}
+
bool BaseitemKey::is_mushrooms() const
{
if (!this->subtype_value) {
bool is_junk() const;
bool is_armour() const;
bool is_cross_bow() const;
+ bool refuse_enchant_weapon() const;
private:
ItemKindType type_value;
*/
bool ItemEntity::refuse_enchant_weapon() const
{
- return this->bi_key == BaseitemKey(ItemKindType::SWORD, SV_POISON_NEEDLE);
+ return this->bi_key.refuse_enchant_weapon();
}
/*!