mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-10 07:05:41 +12:00
Fix quests giving you CONCEPTUAL items rather than just using them
This commit is contained in:
parent
e56a144a05
commit
99653314ed
1 changed files with 5 additions and 1 deletions
|
@ -191,7 +191,11 @@ namespace HISP.Game
|
||||||
for (int i = 0; i < itemInfo.Quantity; i++)
|
for (int i = 0; i < itemInfo.Quantity; i++)
|
||||||
{
|
{
|
||||||
ItemInstance itm = new ItemInstance(itemInfo.ItemId);
|
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)
|
if (quest.WarpX != 0 && quest.WarpY != 0)
|
||||||
|
|
Loading…
Add table
Reference in a new issue