X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FItem.h;h=7e757ff245095e8f55e81b8c4f86d5b32595b450;hb=dc2dcbbfa1298bed46a4190fbd337c7ef83cc8af;hp=279235572768662e820ea60b3fd15533f31a099a;hpb=1907ca03c5e865c4d398170042aa384c67ffff29;p=l2e.git diff --git a/src/common/Item.h b/src/common/Item.h index 2792355..7e757ff 100644 --- a/src/common/Item.h +++ b/src/common/Item.h @@ -29,7 +29,7 @@ public: const char *Name() const { return name; } bool IsMostUseful() const { return mostUseful; } - bool IsEquipable() const { return equipable; } + bool IsEquipable() const { return equipability; } bool IsCursed() const { return cursed; } bool IsFruit() const { return fruit; } bool IsScenario() const { return scenario; } @@ -78,6 +78,8 @@ public: bool HasBattleAnimation() const { return properties & PROPERTY_HAS_BATTLE_ANIMATION; } bool HasIkariEffect() const { return properties & PROPERTY_HAS_IKARI_EFFECT; } + static bool Less(const Item &, const Item &); + // temporary setters public: void SetName(const char *n) { name = n; } @@ -129,12 +131,11 @@ private: Uint16 properties; TargetingMode targettingMode; - Uint8 equipability; + int equipability; HeroGroup equipableBy; // TODO: turn these back into bits as soon as fields are implemented in the loader bool mostUseful; - bool equipable; bool cursed; bool fruit; bool scenario;