1
0

change from single followable item to multiple

This commit is contained in:
Gargaj
2015-11-14 16:42:26 +01:00
parent 5d5f5c9fba
commit 853e6e6882
11 changed files with 67 additions and 12 deletions

View File

@@ -459,3 +459,33 @@ void cItems::Set(int a_Idx, short a_ItemType, char a_ItemCount, short a_ItemDama
bool cItems::Contains(const cItem & a_Item)
{
for (auto itr : *this)
{
if (a_Item.IsEqual(itr))
{
return true;
}
}
return false;
}
bool cItems::ContainsType(const cItem & a_Item)
{
for (auto itr : *this)
{
if (a_Item.IsSameType(itr))
{
return true;
}
}
return false;
}