From 0875a6ddfda9ece1af4a818e38be1f99e578c59a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 21 Oct 2014 14:40:14 +0300 Subject: Add to item field favorite. --- src/inventory.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/inventory.cpp') diff --git a/src/inventory.cpp b/src/inventory.cpp index 91a3a9b29..dfa201cdf 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -109,11 +109,12 @@ void Inventory::addItem(const int id, const uint8_t color, const bool identified, const bool damaged, + const bool favorite, const bool equipment, const bool equipped) { setItem(getFreeSlot(), id, quantity, refine, color, - identified, damaged, equipment, equipped); + identified, damaged, favorite, equipment, equipped); } void Inventory::setItem(const int index, @@ -123,6 +124,7 @@ void Inventory::setItem(const int index, const unsigned char color, const bool identified, const bool damaged, + const bool favorite, const bool equipment, const bool equipped) { @@ -136,7 +138,7 @@ void Inventory::setItem(const int index, if (!item1 && id > 0) { Item *const item = new Item(id, quantity, refine, color, - identified, damaged, equipment, equipped); + identified, damaged, favorite, equipment, equipped); item->setInvIndex(index); mItems[index] = item; mUsed++; @@ -150,6 +152,7 @@ void Inventory::setItem(const int index, item1->setEquipment(equipment); item1->setIdentified(identified); item1->setDamaged(damaged); + item1->setFavorite(favorite); } else if (item1) { -- cgit v1.2.3-60-g2f50