]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Hero.h
implemented "remove all" in equipment menu
[l2e.git] / src / common / Hero.h
index 1905c815e9cac9cbb7549c0f276b8054a6c9a035..70d21f202b7551dd11a45642a949871286036ba7 100644 (file)
@@ -71,6 +71,13 @@ public:
        bool HasRing() const { return ring; }
        bool HasJewel() const { return jewel; }
 
+       void RemoveWeapon() { weapon = 0; }
+       void RemoveArmor() { armor = 0; }
+       void RemoveShield() { shield = 0; }
+       void RemoveHelmet() { helmet = 0; }
+       void RemoveRing() { ring = 0; }
+       void RemoveJewel() { jewel = 0; }
+
        std::vector<const Spell *> &Spells() { return spells; }
        const std::vector<const Spell *> &Spells() const { return spells; }