Fix quests giving you CONCEPTUAL items rather than just using them

This commit is contained in:
SilicaAndPina 2021-02-15 17:44:50 +13:00
parent e56a144a05
commit 99653314ed

View file

@ -191,7 +191,11 @@ namespace HISP.Game
for (int i = 0; i < itemInfo.Quantity; i++)
{
ItemInstance itm = new ItemInstance(itemInfo.ItemId);
user.Inventory.AddIgnoringFull(itm);
Item.ItemInformation itemInformation = itm.GetItemInfo();
if (itemInformation.Type == "CONCEPTUAL")
Item.ConsumeItem(user, itemInformation);
else
user.Inventory.AddIgnoringFull(itm);
}
}
if (quest.WarpX != 0 && quest.WarpY != 0)