1
0
forked from liza/Questionable

Fix bad item use condition on vesper bay tickets

This commit is contained in:
Liza 2024-07-21 10:40:10 +02:00
parent 7ee7df90b8
commit e6a9c21c0f
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -131,7 +131,7 @@ internal static class UseItem
} }
int itemCount = inventoryManager->GetInventoryItemCount(ItemId); int itemCount = inventoryManager->GetInventoryItemCount(ItemId);
if (itemCount == _itemCount) if (!_usedItem && itemCount == _itemCount)
{ {
// TODO Better handling for game-provided errors, i.e. reacting to the 'Could not use' messages. UseItem() is successful in this case (and returns 0) // TODO Better handling for game-provided errors, i.e. reacting to the 'Could not use' messages. UseItem() is successful in this case (and returns 0)
logger.LogInformation( logger.LogInformation(