From 7332f9945fb5141fcf52fec75731475d46e150be Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Tue, 10 Oct 2023 16:29:44 +0200 Subject: [PATCH] Change the minimum level for retainers to work --- ARControl/AutoRetainerControlPlugin.cs | 1 - ARControl/Configuration.cs | 1 - ARControl/Windows/ConfigWindow.cs | 7 +++---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/ARControl/AutoRetainerControlPlugin.cs b/ARControl/AutoRetainerControlPlugin.cs index 2f1ea32..8efe99a 100644 --- a/ARControl/AutoRetainerControlPlugin.cs +++ b/ARControl/AutoRetainerControlPlugin.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; -using System.Runtime.CompilerServices; using ARControl.GameData; using ARControl.Windows; using AutoRetainerAPI; diff --git a/ARControl/Configuration.cs b/ARControl/Configuration.cs index b97fe9e..6601c7c 100644 --- a/ARControl/Configuration.cs +++ b/ARControl/Configuration.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using Dalamud.Configuration; using Dalamud.Game.Text; -using Dalamud.Interface; namespace ARControl; diff --git a/ARControl/Windows/ConfigWindow.cs b/ARControl/Windows/ConfigWindow.cs index 109cfa7..215547a 100644 --- a/ARControl/Windows/ConfigWindow.cs +++ b/ARControl/Windows/ConfigWindow.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Linq; using System.Numerics; using ARControl.GameData; -using Dalamud.Game.Text; using Dalamud.Interface; using Dalamud.Interface.Colors; using Dalamud.Interface.Components; @@ -20,7 +19,7 @@ namespace ARControl.Windows; internal sealed class ConfigWindow : Window { // TODO This should also allow retainers under max level - private const byte MaxLevel = 90; + private const byte MinLevel = 10; private static readonly Vector4 ColorGreen = ImGuiColors.HealerGreen; private static readonly Vector4 ColorRed = ImGuiColors.DalamudRed; @@ -499,9 +498,9 @@ internal sealed class ConfigWindow : Window { foreach (var retainer in character.Retainers.Where(x => x.Job > 0).OrderBy(x => x.DisplayOrder)) { - ImGui.BeginDisabled(retainer.Level < MaxLevel); + ImGui.BeginDisabled(retainer.Level < MinLevel); - bool managed = retainer.Managed && retainer.Level == MaxLevel; + bool managed = retainer.Managed && retainer.Level >= MinLevel; IDalamudTextureWrap? icon = _iconCache.GetIcon(62000 + retainer.Job); if (icon != null)