Fix bad item use condition on vesper bay tickets
authorLiza Carvelli <liza@carvel.li>
Sun, 21 Jul 2024 08:40:10 +0000 (10:40 +0200)
committerLiza Carvelli <liza@carvel.li>
Sun, 21 Jul 2024 08:40:10 +0000 (10:40 +0200)
Questionable/Controller/Steps/Interactions/UseItem.cs

index 1fd7b6aa09735469a0504dfc2968ab59fa0bfc5c..8868f81181295b1c0f67333913e6208cd10bc7db 100644 (file)
@@ -131,7 +131,7 @@ internal static class UseItem
                 }
 
                 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)
                     logger.LogInformation(