forked from liza/Questionable
Update warnings
This commit is contained in:
parent
2d22657d41
commit
fb3aa0e0d4
@ -238,8 +238,10 @@ public sealed class RendererPlugin : IDalamudPlugin
|
|||||||
maximumAngle = x.MaximumAngle.GetValueOrDefault();
|
maximumAngle = x.MaximumAngle.GetValueOrDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if false
|
||||||
var a = GatheringMath.CalculateLandingLocation(x, 0, 0);
|
var a = GatheringMath.CalculateLandingLocation(x, 0, 0);
|
||||||
var b = GatheringMath.CalculateLandingLocation(x, 1, 1);
|
var b = GatheringMath.CalculateLandingLocation(x, 1, 1);
|
||||||
|
#endif
|
||||||
return new List<Element>
|
return new List<Element>
|
||||||
{
|
{
|
||||||
new Element(isCone
|
new Element(isCone
|
||||||
|
@ -63,7 +63,6 @@ internal sealed class InteractionUiController : IDisposable
|
|||||||
QuestData questData,
|
QuestData questData,
|
||||||
IGameGui gameGui,
|
IGameGui gameGui,
|
||||||
ITargetManager targetManager,
|
ITargetManager targetManager,
|
||||||
IFramework framework,
|
|
||||||
IPluginLog pluginLog,
|
IPluginLog pluginLog,
|
||||||
IClientState clientState,
|
IClientState clientState,
|
||||||
ILogger<InteractionUiController> logger)
|
ILogger<InteractionUiController> logger)
|
||||||
|
@ -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;
|
var target = _targetManager.Target;
|
||||||
if (target == null)
|
if (target == null)
|
||||||
@ -85,8 +85,8 @@ internal sealed class LeveUiController : IDisposable
|
|||||||
if (_questController is { IsRunning: true, NextQuest: { Quest.Id: LeveId } nextQuest } &&
|
if (_questController is { IsRunning: true, NextQuest: { Quest.Id: LeveId } nextQuest } &&
|
||||||
_questFunctions.IsReadyToAcceptQuest(nextQuest.Quest.Id))
|
_questFunctions.IsReadyToAcceptQuest(nextQuest.Quest.Id))
|
||||||
{
|
{
|
||||||
var addon = (AddonGuildLeve*)args.Addon;
|
|
||||||
/*
|
/*
|
||||||
|
var addon = (AddonGuildLeve*)args.Addon;
|
||||||
var atkValues = addon->AtkValues;
|
var atkValues = addon->AtkValues;
|
||||||
|
|
||||||
var availableLeves = _questData.GetAllByIssuerDataId(target.DataId);
|
var availableLeves = _questData.GetAllByIssuerDataId(target.DataId);
|
||||||
|
@ -39,7 +39,6 @@ internal sealed unsafe class GatheringController : MiniTaskController<GatheringC
|
|||||||
private readonly GameFunctions _gameFunctions;
|
private readonly GameFunctions _gameFunctions;
|
||||||
private readonly NavmeshIpc _navmeshIpc;
|
private readonly NavmeshIpc _navmeshIpc;
|
||||||
private readonly IObjectTable _objectTable;
|
private readonly IObjectTable _objectTable;
|
||||||
private readonly IServiceProvider _serviceProvider;
|
|
||||||
private readonly ICondition _condition;
|
private readonly ICondition _condition;
|
||||||
private readonly ILoggerFactory _loggerFactory;
|
private readonly ILoggerFactory _loggerFactory;
|
||||||
private readonly IGameGui _gameGui;
|
private readonly IGameGui _gameGui;
|
||||||
@ -59,7 +58,6 @@ internal sealed unsafe class GatheringController : MiniTaskController<GatheringC
|
|||||||
IObjectTable objectTable,
|
IObjectTable objectTable,
|
||||||
IChatGui chatGui,
|
IChatGui chatGui,
|
||||||
ILogger<GatheringController> logger,
|
ILogger<GatheringController> logger,
|
||||||
IServiceProvider serviceProvider,
|
|
||||||
ICondition condition,
|
ICondition condition,
|
||||||
IDataManager dataManager,
|
IDataManager dataManager,
|
||||||
ILoggerFactory loggerFactory,
|
ILoggerFactory loggerFactory,
|
||||||
@ -76,7 +74,6 @@ internal sealed unsafe class GatheringController : MiniTaskController<GatheringC
|
|||||||
_gameFunctions = gameFunctions;
|
_gameFunctions = gameFunctions;
|
||||||
_navmeshIpc = navmeshIpc;
|
_navmeshIpc = navmeshIpc;
|
||||||
_objectTable = objectTable;
|
_objectTable = objectTable;
|
||||||
_serviceProvider = serviceProvider;
|
|
||||||
_condition = condition;
|
_condition = condition;
|
||||||
_loggerFactory = loggerFactory;
|
_loggerFactory = loggerFactory;
|
||||||
_gameGui = gameGui;
|
_gameGui = gameGui;
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
using System;
|
using System.Collections.Generic;
|
||||||
using System.Collections.Generic;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Dalamud.Game.ClientState.Conditions;
|
using Dalamud.Game.ClientState.Conditions;
|
||||||
using Dalamud.Memory;
|
|
||||||
using Dalamud.Plugin.Services;
|
using Dalamud.Plugin.Services;
|
||||||
using FFXIVClientStructs.FFXIV.Client.Game;
|
using FFXIVClientStructs.FFXIV.Client.Game;
|
||||||
using FFXIVClientStructs.FFXIV.Client.UI;
|
using FFXIVClientStructs.FFXIV.Client.UI;
|
||||||
@ -140,9 +139,10 @@ internal sealed class DoGather(
|
|||||||
return slots;
|
return slots;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[SuppressMessage("ReSharper", "UnusedParameter.Local")]
|
||||||
private Queue<EAction> GetNextActions(NodeCondition nodeCondition, List<SlotInfo> slots)
|
private Queue<EAction> GetNextActions(NodeCondition nodeCondition, List<SlotInfo> slots)
|
||||||
{
|
{
|
||||||
uint gp = clientState.LocalPlayer!.CurrentGp;
|
//uint gp = clientState.LocalPlayer!.CurrentGp;
|
||||||
Queue<EAction> actions = new();
|
Queue<EAction> actions = new();
|
||||||
|
|
||||||
if (!gameFunctions.HasStatus(StatusGatheringRateUp))
|
if (!gameFunctions.HasStatus(StatusGatheringRateUp))
|
||||||
@ -236,8 +236,10 @@ internal sealed class DoGather(
|
|||||||
|
|
||||||
public override string ToString() => $"DoGather{(revisitRequired ? " if revist" : "")}";
|
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);
|
private sealed record SlotInfo(int Index, uint ItemId, int GatheringChance, int BoonChance, int Quantity);
|
||||||
|
|
||||||
|
[SuppressMessage("ReSharper", "NotAccessedPositionalProperty.Local")]
|
||||||
private sealed record NodeCondition(
|
private sealed record NodeCondition(
|
||||||
uint CurrentIntegrity,
|
uint CurrentIntegrity,
|
||||||
uint MaxIntegrity);
|
uint MaxIntegrity);
|
||||||
|
Loading…
Reference in New Issue
Block a user