Update code for updated dalamud
authorLiza Carvelli <liza@carvel.li>
Tue, 27 Aug 2024 20:00:34 +0000 (22:00 +0200)
committerLiza Carvelli <liza@carvel.li>
Tue, 27 Aug 2024 20:00:34 +0000 (22:00 +0200)
Questionable/Controller/ContextMenuController.cs
Questionable/Controller/Steps/Gathering/TurnInDelivery.cs

index f8441e637f38ad0f0eeca0fd46f6b555edd0f2d4..509d8372939c29016aaa300e9643d4c2fbee2b3a 100644 (file)
@@ -99,7 +99,7 @@ internal sealed class ContextMenuController : IDisposable
             if (agentSatisfactionSupply->IsAgentActive())
             {
                 int maxTurnIns = agentSatisfactionSupply->NpcInfo.SatisfactionRank == 1 ? 3 : 6;
-                quantityToGather = Math.Min(agentSatisfactionSupply->RemainingAllowances,
+                quantityToGather = Math.Min(agentSatisfactionSupply->NpcData.RemainingAllowances,
                     ((AgentSatisfactionSupply2*)agentSatisfactionSupply)->CalculateTurnInsToNextRank(maxTurnIns));
             }
         }
index ca6a93d8bee178c6cee54406d573a24c9f265de4..08da14409da2a97b55d8b7c73cab3c41103f566a 100644 (file)
@@ -44,7 +44,7 @@ internal static class TurnInDelivery
             if (addon == null || !LAddon.IsAddonReady(addon))
                 return ETaskResult.StillRunning;
 
-            ushort remainingAllowances = agentSatisfactionSupply->RemainingAllowances;
+            ushort remainingAllowances = agentSatisfactionSupply->NpcData.RemainingAllowances;
             if (remainingAllowances == 0)
             {
                 logger.LogInformation("No remaining weekly allowances");