Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/item.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/item.h b/src/core/item.h
index ec0d6be..4d9f0e8 100644
--- a/src/core/item.h
+++ b/src/core/item.h
@@ -19,7 +19,7 @@ namespace core
class Item
{
public:
- enum Flags {Tradeable = 1, Unique = 2};
+ enum Flags {Tradeable = 1, Unique = 2, Unrestricted = 4};
Item(const Info *info);
@@ -78,6 +78,13 @@ public:
}
/**
+ * @brief returns true if the Unrestricted flag is set
+ */
+ inline const bool unrestricted() const {
+ return ((item_flags & (unsigned int) Unrestricted) == (unsigned int) Unrestricted);
+ }
+
+ /**
* @brief return true if the dirty flag is set
* */
inline const bool dirty() const {