Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-10-21 10:18:07 +0000
committerStijn Buys <ingar@osirion.org>2012-10-21 10:18:07 +0000
commit37116aad3b2c128bae5b7f1ef4d1bc3cb8608f57 (patch)
treea7377905f52eaa41b6cc38a94db96fb9f8706246 /src/core
parentdb69f96fbf5ac5321bdcb1e86ff07d1e35de9fec (diff)
Support the Item::Unrestricted flag, client allows to sell unrestricted items anywhere.
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 {