diff --git a/Source/items.h b/Source/items.h index d1d688c15..a090ee5f3 100644 --- a/Source/items.h +++ b/Source/items.h @@ -333,6 +333,15 @@ struct Item { } } + /** + * @brief Checks whether this item is gold. + * @return 'True' in case the item is gold and 'False' otherwise. + */ + bool isGold() const + { + return this->_itype == ItemType::Gold; + } + /** * @brief Checks whether this item is a helm. * @return 'True' in case the item is a helm and 'False' otherwise.