diff --git a/ConsoleCommands/BaseListCommand.cs b/ConsoleCommands/BaseListCommand.cs index 089ecf65..27c23696 100644 --- a/ConsoleCommands/BaseListCommand.cs +++ b/ConsoleCommands/BaseListCommand.cs @@ -44,7 +44,7 @@ private void ListLootItems(Match match, ELootRarity? rarityFilter = null) FindLootItems(world, itemsPerName); // Step 2 - look inside containers (items) - if (LootItems.SearchInsideContainers) + if (LootItemsFeature.SearchInsideContainers) FindItemsInContainers(world, itemsPerName); var names = itemsPerName.Keys.ToList(); @@ -96,7 +96,7 @@ private void FindLootItems(GameWorld world, Dictionary> items if (lootItem is Corpse corpse) { - if (LootItems.SearchInsideCorpses) + if (LootItemsFeature.SearchInsideCorpses) FindItemsInRootItem(itemsPerName, corpse.ItemOwner?.RootItem); continue; diff --git a/ConsoleCommands/BaseTrackCommand.cs b/ConsoleCommands/BaseTrackCommand.cs index 05464d1c..7d05ac96 100644 --- a/ConsoleCommands/BaseTrackCommand.cs +++ b/ConsoleCommands/BaseTrackCommand.cs @@ -29,6 +29,6 @@ private void TrackLootItem(Match match, ELootRarity? rarity = null) if (extraGroup is {Success: true}) color = ColorConverter.Parse(extraGroup.Value); - TrackList.ShowTrackList(this, LootItems, LootItems.Track(matchGroup.Value, color, rarity)); + TrackList.ShowTrackList(this, LootItemsFeature, LootItemsFeature.Track(matchGroup.Value, color, rarity)); } } diff --git a/ConsoleCommands/LoadTrackList.cs b/ConsoleCommands/LoadTrackList.cs index dd07f793..275b2199 100644 --- a/ConsoleCommands/LoadTrackList.cs +++ b/ConsoleCommands/LoadTrackList.cs @@ -16,6 +16,6 @@ public override void Execute(Match match) if (!TryGetTrackListFilename(match, out var filename)) return; - ConfigurationManager.LoadPropertyValue(filename, base.LootItems, nameof(Features.LootItems.TrackedNames)); + ConfigurationManager.LoadPropertyValue(filename, base.LootItemsFeature, nameof(Features.LootItems.TrackedNames)); } } diff --git a/ConsoleCommands/SaveTrackList.cs b/ConsoleCommands/SaveTrackList.cs index e6d578e5..2132e2f2 100644 --- a/ConsoleCommands/SaveTrackList.cs +++ b/ConsoleCommands/SaveTrackList.cs @@ -16,6 +16,6 @@ public override void Execute(Match match) if (!TryGetTrackListFilename(match, out var filename)) return; - ConfigurationManager.SavePropertyValue(filename, LootItems, nameof(LootItems.TrackedNames)); + ConfigurationManager.SavePropertyValue(filename, LootItemsFeature, nameof(LootItemsFeature.TrackedNames)); } } diff --git a/ConsoleCommands/TrackList.cs b/ConsoleCommands/TrackList.cs index da41a428..363458b5 100644 --- a/ConsoleCommands/TrackList.cs +++ b/ConsoleCommands/TrackList.cs @@ -12,7 +12,7 @@ internal class TrackList : ConsoleCommandWithoutArgument public override void Execute() { - ShowTrackList(this, LootItems); + ShowTrackList(this, LootItemsFeature); } internal static void ShowTrackList(ConsoleCommand command, Features.LootItems lootItems, bool changed = false) diff --git a/ConsoleCommands/UnTrack.cs b/ConsoleCommands/UnTrack.cs index eabbb700..8a893ff8 100644 --- a/ConsoleCommands/UnTrack.cs +++ b/ConsoleCommands/UnTrack.cs @@ -16,6 +16,6 @@ public override void Execute(Match match) if (matchGroup is not {Success: true}) return; - TrackList.ShowTrackList(this, LootItems, LootItems.UnTrack(matchGroup.Value)); + TrackList.ShowTrackList(this, LootItemsFeature, LootItemsFeature.UnTrack(matchGroup.Value)); } }