Skip to content

Commit caab0fc

Browse files
committed
update analyser lib, refactored for the new LootItemExtended interface
1 parent ae88958 commit caab0fc

5 files changed

+9
-8
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Changelog
22

3+
## 0.0.36 (21 Jan 2025)
4+
- Fixed a crahs
35

46
## 0.0.35 (13 Jan 2025)
57
- Update analyser library

Remnant2SaveAnalyzer-dev.sln.DotSettings

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<s:Boolean x:Key="/Default/UserDictionary/Words/=Bloodmoon/@EntryIndexedValue">True</s:Boolean>
1212
<s:Boolean x:Key="/Default/UserDictionary/Words/=Brabus/@EntryIndexedValue">True</s:Boolean>
1313
<s:Boolean x:Key="/Default/UserDictionary/Words/=Cabe/@EntryIndexedValue">True</s:Boolean>
14+
<s:Boolean x:Key="/Default/UserDictionary/Words/=Cervine/@EntryIndexedValue">True</s:Boolean>
1415
<s:Boolean x:Key="/Default/UserDictionary/Words/=Charnel/@EntryIndexedValue">True</s:Boolean>
1516
<s:Boolean x:Key="/Default/UserDictionary/Words/=craftable/@EntryIndexedValue">True</s:Boolean>
1617
<s:Boolean x:Key="/Default/UserDictionary/Words/=dlcs/@EntryIndexedValue">True</s:Boolean>

Remnant2SaveAnalyzer/Remnant2SaveAnalyzer.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</ItemGroup>
1717

1818
<ItemGroup>
19-
<PackageReference Include="lib.remnant2.analyzer" Version="0.0.37" />
19+
<PackageReference Include="lib.remnant2.analyzer" Version="0.0.39" />
2020
<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.135" />
2121
<PackageReference Include="Serilog" Version="4.1.0" />
2222
<PackageReference Include="Serilog.Expressions" Version="5.0.0" />

Remnant2SaveAnalyzer/RemnantSave.cs

-3
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,6 @@ private void ReportPlayerInfo()
260260
logger.Information($"BEGIN Inventory, Character {index+1} (save_{character.Index})");
261261

262262

263-
List<InventoryItem> debug = character.Profile.Inventory.Where(x => x.ProfileId == "/Game/Items/Common/Item_DragonHeartUpgrade.Item_DragonHeartUpgrade_C").ToList();
264-
265-
266263
List<IGrouping<string, InventoryItem>> itemTypes = [.. character.Profile.Inventory
267264
.GroupBy(x => x.LootItem?.Type)
268265
.OrderBy(x=> x.Key)];

Remnant2SaveAnalyzer/Views/Pages/WorldAnalyzerPage.xaml.cs

+5-4
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ private List<WorldAnalyzerGridData> FilterGridData(Profile profile, RolledWorld?
783783
private List<WorldAnalyzerGridData> AddLootGroup(LootGroup lg, string locationName, List<string> missingIds)
784784
{
785785
List<WorldAnalyzerGridData> result = [];
786-
List<LootItem> items = lg.Items;
786+
List<LootItemExtended> items = lg.Items;
787787
if (!Properties.Settings.Default.ShowCoopItems)
788788
{
789789
items = items.Where(x => !x.Properties.ContainsKey("Coop") || x.Properties["Coop"] != "True").ToList();
@@ -819,15 +819,16 @@ private List<WorldAnalyzerGridData> AddLootGroup(LootGroup lg, string locationNa
819819
return result;
820820
}
821821

822-
public class LocalisedLootItem : LootItem
822+
public class LocalisedLootItem : LootItemExtended
823823
{
824824
private readonly WorldAnalyzerPage _parent;
825825
[SetsRequiredMembers]
826-
public LocalisedLootItem(LootItem item, WorldAnalyzerPage parent)
826+
public LocalisedLootItem(LootItemExtended item, WorldAnalyzerPage parent) : base(item)
827827
{
828828
IsLooted = item.IsLooted;
829829
IsPrerequisiteMissing = item.IsPrerequisiteMissing;
830-
Properties = item.Properties;
830+
IsVendoredAccountAward = item.IsVendoredAccountAward;
831+
HasRequiredMaterial = item.HasRequiredMaterial;
831832
_parent = parent;
832833
}
833834

0 commit comments

Comments
 (0)