Make 'CompleteQuest' work with ItemId → UseItem
authorLiza Carvelli <liza@carvel.li>
Sat, 11 Jan 2025 16:00:04 +0000 (17:00 +0100)
committerLiza Carvelli <liza@carvel.li>
Sat, 11 Jan 2025 16:00:04 +0000 (17:00 +0100)
Questionable/Controller/Steps/Interactions/UseItem.cs

index 118c204aadd5e7e24c3d2c81e13125607c62e7d8..bf779a0248efecc4e03d4a5f0c865ac8827e037b 100644 (file)
@@ -29,7 +29,7 @@ internal static class UseItem
     {
         public IEnumerable<ITask> CreateAllTasks(Quest quest, QuestSequence sequence, QuestStep step)
         {
-            if (step.InteractionType is EInteractionType.SinglePlayerDuty)
+            if (step.InteractionType is EInteractionType.SinglePlayerDuty or EInteractionType.CompleteQuest)
             {
                 if (step.ItemId == null)
                     return [];