Skip to content

Commit

Permalink
Parse contracts
Browse files Browse the repository at this point in the history
Fixes #476
  • Loading branch information
leMicin committed Jan 2, 2021
1 parent b5fcefa commit 86581f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Sidekick.Domain/Game/Items/Models/Category.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public enum Category
Leaguestone = 10,
Prophecy = 11,
ItemisedMonster = 12,
Watchstone = 13
Watchstone = 13,
Contract = 14,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public async Task Initialize()
FillPattern(result.Result[10].Entries, Category.Prophecy);
FillPattern(result.Result[11].Entries, Category.ItemisedMonster, useRegex: true);
FillPattern(result.Result[12].Entries, Category.Watchstone);
FillPattern(result.Result[14].Entries, Category.Contract, useRegex: true);

Prefixes = new[]
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,6 @@ private List<LineContentValue> ParseHash(List<List<JsonElement>> values)
private List<LineContent> ParseLineContents(List<ResultLineContent> lines)
{
return lines?
.OrderBy(x => x.Order)
.Select(line =>
{
var values = new List<LineContentValue>();
Expand Down

0 comments on commit 86581f9

Please sign in to comment.