Remove Red Onion Helm from internal blacklist
This commit is contained in:
parent
cfbd064d4a
commit
3bd6b6fbca
@ -54,7 +54,7 @@ public sealed class AutoDiscardPlogon : IDalamudPlugin
|
|||||||
ArgumentNullException.ThrowIfNull(dataManager);
|
ArgumentNullException.ThrowIfNull(dataManager);
|
||||||
|
|
||||||
_pluginInterface = pluginInterface;
|
_pluginInterface = pluginInterface;
|
||||||
_configuration = (Configuration?)_pluginInterface.GetPluginConfig() ?? new Configuration();
|
_configuration = (Configuration?)_pluginInterface.GetPluginConfig() ?? Configuration.CreateNew();
|
||||||
MigrateConfiguration(_configuration);
|
MigrateConfiguration(_configuration);
|
||||||
_chatGui = chatGui;
|
_chatGui = chatGui;
|
||||||
_clientState = clientState;
|
_clientState = clientState;
|
||||||
@ -124,6 +124,14 @@ public sealed class AutoDiscardPlogon : IDalamudPlugin
|
|||||||
configuration.Version = 2;
|
configuration.Version = 2;
|
||||||
_pluginInterface.SavePluginConfig(configuration);
|
_pluginInterface.SavePluginConfig(configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (configuration.Version == 2)
|
||||||
|
{
|
||||||
|
if (!configuration.BlacklistedItems.Contains(2820))
|
||||||
|
configuration.BlacklistedItems.Add(2820);
|
||||||
|
configuration.Version = 3;
|
||||||
|
_pluginInterface.SavePluginConfig(configuration);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CheckRetainerPostProcess(string retainerName) =>
|
private void CheckRetainerPostProcess(string retainerName) =>
|
||||||
|
@ -5,7 +5,7 @@ namespace ARDiscard;
|
|||||||
|
|
||||||
internal sealed class Configuration : IPluginConfiguration
|
internal sealed class Configuration : IPluginConfiguration
|
||||||
{
|
{
|
||||||
public int Version { get; set; } = 2;
|
public int Version { get; set; } = 3;
|
||||||
public bool RunAfterVenture { get; set; }
|
public bool RunAfterVenture { get; set; }
|
||||||
public bool RunBeforeLogout { get; set; }
|
public bool RunBeforeLogout { get; set; }
|
||||||
public List<uint> DiscardingItems { get; set; } = new();
|
public List<uint> DiscardingItems { get; set; } = new();
|
||||||
@ -45,4 +45,12 @@ internal sealed class Configuration : IPluginConfiguration
|
|||||||
public bool GroupByCategory { get; set; } = true;
|
public bool GroupByCategory { get; set; } = true;
|
||||||
public bool ShowIcons { get; set; } = true;
|
public bool ShowIcons { get; set; } = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Configuration CreateNew()
|
||||||
|
{
|
||||||
|
return new Configuration
|
||||||
|
{
|
||||||
|
BlacklistedItems = [2820]
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,6 @@ internal sealed class ListManager : IListManager
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private ISet<uint> _blacklistedItems = new List<uint>
|
private ISet<uint> _blacklistedItems = new List<uint>
|
||||||
{
|
{
|
||||||
2820, // red onion helm
|
|
||||||
|
|
||||||
16039, // ala mhigan earrings
|
16039, // ala mhigan earrings
|
||||||
24589, // aetheryte earrings
|
24589, // aetheryte earrings
|
||||||
33648, // menphina's earrings
|
33648, // menphina's earrings
|
||||||
|
Loading…
Reference in New Issue
Block a user