diff options
Diffstat (limited to 'engines/xeen/item.cpp')
-rw-r--r-- | engines/xeen/item.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/xeen/item.cpp b/engines/xeen/item.cpp index c50276d4ae..871f60b82b 100644 --- a/engines/xeen/item.cpp +++ b/engines/xeen/item.cpp @@ -385,6 +385,17 @@ Common::String WeaponItems::getAttributes(XeenItem &item, const Common::String & ); } +bool WeaponItems::hasElderWeapon() const { + if (g_vm->getGameID() == GType_Swords) { + for (uint idx = 0; idx < size(); ++idx) { + if ((*this)[idx]._id >= 34) + return true; + } + } + + return false; +} + /*------------------------------------------------------------------------*/ void ArmorItems::equipItem(int itemIndex) { |