Change the minimum level for retainers to work
This commit is contained in:
parent
d8cfb75c33
commit
7332f9945f
@ -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;
|
||||
|
@ -2,7 +2,6 @@
|
||||
using System.Collections.Generic;
|
||||
using Dalamud.Configuration;
|
||||
using Dalamud.Game.Text;
|
||||
using Dalamud.Interface;
|
||||
|
||||
namespace ARControl;
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user