Skip to content
This repository was archived by the owner on Jun 16, 2025. It is now read-only.

Commit 86581f9

Browse files
committed
Parse contracts
Fixes #476
1 parent b5fcefa commit 86581f9

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/Sidekick.Domain/Game/Items/Models/Category.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public enum Category
1515
Leaguestone = 10,
1616
Prophecy = 11,
1717
ItemisedMonster = 12,
18-
Watchstone = 13
18+
Watchstone = 13,
19+
Contract = 14,
1920
}
2021
}

src/Sidekick.Infrastructure/PoeApi/Items/Metadatas/ItemMetadataProvider.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public async Task Initialize()
5454
FillPattern(result.Result[10].Entries, Category.Prophecy);
5555
FillPattern(result.Result[11].Entries, Category.ItemisedMonster, useRegex: true);
5656
FillPattern(result.Result[12].Entries, Category.Watchstone);
57+
FillPattern(result.Result[14].Entries, Category.Contract, useRegex: true);
5758

5859
Prefixes = new[]
5960
{

src/Sidekick.Infrastructure/PoeApi/Trade/TradeSearchService.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,6 @@ private List<LineContentValue> ParseHash(List<List<JsonElement>> values)
421421
private List<LineContent> ParseLineContents(List<ResultLineContent> lines)
422422
{
423423
return lines?
424-
.OrderBy(x => x.Order)
425424
.Select(line =>
426425
{
427426
var values = new List<LineContentValue>();

0 commit comments

Comments
 (0)