Player can't exchanges jewels with allegories

feature/prepare-cross-merge
Nuno 4 years ago committed by kaetemi
parent aad1a6edd0
commit 3ccdb43683
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -11442,6 +11442,15 @@ void CCharacter::sellItem(INVENTORIES::TInventory inv, uint32 slot, uint32 quant
return;
}
// you cannot exchange jewels with non tags allegories
std::vector<CSheetId> sheets;
item->getJewelNonTagsEnchantments(sheets);
if (sheets.size() > 0)
{
nlwarning("Character %s tries to sell '%s'", _Id.toString().c_str(), item->getPhraseId().c_str());
return;
}
if (!ITEMFAMILY::isSellableByPlayer(itemForm->Family))
{
nlwarning(

Loading…
Cancel
Save