diff options
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r-- | src/being/being.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index 97fad3c59..4a3e4d0cb 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -3551,3 +3551,13 @@ void Being::enableShop(const bool b) mShop = b; updateName(); } + +bool Being::isBuyShopEnabled() const +{ + return mShop && (!serverFeatures->haveVending() || !mBuyBoard.empty()); +} + +bool Being::isSellShopEnabled() const +{ + return mShop && (!serverFeatures->haveVending() || !mSellBoard.empty()); +} |