Update warnings
authorLiza Carvelli <liza@carvel.li>
Tue, 20 Aug 2024 00:50:47 +0000 (02:50 +0200)
committerLiza Carvelli <liza@carvel.li>
Tue, 20 Aug 2024 00:50:47 +0000 (02:50 +0200)
GatheringPathRenderer/RendererPlugin.cs
Questionable/Controller/GameUi/InteractionUiController.cs
Questionable/Controller/GameUi/LeveUiController.cs
Questionable/Controller/GatheringController.cs
Questionable/Controller/Steps/Gathering/DoGather.cs

index f3c52afcf70bba1ac3676f04c964b9c204a20d0b..b1ec75612a96dfb0b3764fd8ac6e9d645375350b 100644 (file)
@@ -238,8 +238,10 @@ public sealed class RendererPlugin : IDalamudPlugin
                                 maximumAngle = x.MaximumAngle.GetValueOrDefault();
                             }
 
+#if false
                             var a = GatheringMath.CalculateLandingLocation(x, 0, 0);
                             var b = GatheringMath.CalculateLandingLocation(x, 1, 1);
+#endif
                             return new List<Element>
                             {
                                 new Element(isCone
index a6f1106083565c951a0ff491202fa999988837c3..64c178328a49f94806013689c74cff0b03f43eb0 100644 (file)
@@ -63,7 +63,6 @@ internal sealed class InteractionUiController : IDisposable
         QuestData questData,
         IGameGui gameGui,
         ITargetManager targetManager,
-        IFramework framework,
         IPluginLog pluginLog,
         IClientState clientState,
         ILogger<InteractionUiController> logger)
index 533d5d3c9dd7dbd0ca6d7eabd8fd389f27c02a6f..5dbedc72bacd3179a335c6be1e73d4a1780dabe4 100644 (file)
@@ -76,7 +76,7 @@ internal sealed class LeveUiController : IDisposable
         }
     }
 
-    private unsafe void GuildLevePostSetup(AddonEvent type, AddonArgs args)
+    private void GuildLevePostSetup(AddonEvent type, AddonArgs args)
     {
         var target = _targetManager.Target;
         if (target == null)
@@ -85,8 +85,8 @@ internal sealed class LeveUiController : IDisposable
         if (_questController is { IsRunning: true, NextQuest: { Quest.Id: LeveId } nextQuest } &&
             _questFunctions.IsReadyToAcceptQuest(nextQuest.Quest.Id))
         {
-            var addon = (AddonGuildLeve*)args.Addon;
             /*
+            var addon = (AddonGuildLeve*)args.Addon;
             var atkValues = addon->AtkValues;
 
             var availableLeves = _questData.GetAllByIssuerDataId(target.DataId);
index 4dfae667274c51b05718f14d0748d962ab6ab94e..36a09a9fc72db3aac7881bb378000871b4e7cedf 100644 (file)
@@ -39,7 +39,6 @@ internal sealed unsafe class GatheringController : MiniTaskController<GatheringC
     private readonly GameFunctions _gameFunctions;
     private readonly NavmeshIpc _navmeshIpc;
     private readonly IObjectTable _objectTable;
-    private readonly IServiceProvider _serviceProvider;
     private readonly ICondition _condition;
     private readonly ILoggerFactory _loggerFactory;
     private readonly IGameGui _gameGui;
@@ -59,7 +58,6 @@ internal sealed unsafe class GatheringController : MiniTaskController<GatheringC
         IObjectTable objectTable,
         IChatGui chatGui,
         ILogger<GatheringController> logger,
-        IServiceProvider serviceProvider,
         ICondition condition,
         IDataManager dataManager,
         ILoggerFactory loggerFactory,
@@ -76,7 +74,6 @@ internal sealed unsafe class GatheringController : MiniTaskController<GatheringC
         _gameFunctions = gameFunctions;
         _navmeshIpc = navmeshIpc;
         _objectTable = objectTable;
-        _serviceProvider = serviceProvider;
         _condition = condition;
         _loggerFactory = loggerFactory;
         _gameGui = gameGui;
index 5eb29bd7a5962bd34f66d5df50ffb5eece1fd61e..bc4057375f0681961ca2e108e5e054f70f1687e4 100644 (file)
@@ -1,8 +1,7 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
+using System.Diagnostics.CodeAnalysis;
 using System.Linq;
 using Dalamud.Game.ClientState.Conditions;
-using Dalamud.Memory;
 using Dalamud.Plugin.Services;
 using FFXIVClientStructs.FFXIV.Client.Game;
 using FFXIVClientStructs.FFXIV.Client.UI;
@@ -140,9 +139,10 @@ internal sealed class DoGather(
         return slots;
     }
 
+    [SuppressMessage("ReSharper", "UnusedParameter.Local")]
     private Queue<EAction> GetNextActions(NodeCondition nodeCondition, List<SlotInfo> slots)
     {
-        uint gp = clientState.LocalPlayer!.CurrentGp;
+        //uint gp = clientState.LocalPlayer!.CurrentGp;
         Queue<EAction> actions = new();
 
         if (!gameFunctions.HasStatus(StatusGatheringRateUp))
@@ -236,8 +236,10 @@ internal sealed class DoGather(
 
     public override string ToString() => $"DoGather{(revisitRequired ? " if revist" : "")}";
 
+    [SuppressMessage("ReSharper", "NotAccessedPositionalProperty.Local")]
     private sealed record SlotInfo(int Index, uint ItemId, int GatheringChance, int BoonChance, int Quantity);
 
+    [SuppressMessage("ReSharper", "NotAccessedPositionalProperty.Local")]
     private sealed record NodeCondition(
         uint CurrentIntegrity,
         uint MaxIntegrity);