1
0
forked from liza/Questionable

Update warnings

This commit is contained in:
Liza 2024-08-20 02:50:47 +02:00
parent 2d22657d41
commit fb3aa0e0d4
Signed by: liza
GPG Key ID: 7199F8D727D55F67
5 changed files with 10 additions and 10 deletions

View 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

View 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)

View 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);

View 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;

View 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);