Skip to content

Commit

Permalink
return grade in GetSynthesizeResultPool
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-doobu committed Dec 5, 2024
1 parent 87618f4 commit af2aada
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Lib9c/Helper/SynthesizeSimulator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -602,14 +602,14 @@ public static HashSet<int> GetSynthesizeResultPool(Grade sourceGrade, ItemSubTyp
/// <param name="sourceGrades">grades of material items</param>
/// <param name="subType">excepted FullCostume,Title</param>
/// <param name="sheet">CostumeItemSheet to use</param>
/// <returns>list of items key(int)</returns>
public static HashSet<int> GetSynthesizeResultPool(HashSet<Grade> sourceGrades, ItemSubType subType, CostumeItemSheet sheet)
/// <returns>list of items key(int), grade(Grade) tuple</returns>
public static HashSet<(int, Grade)> GetSynthesizeResultPool(HashSet<Grade> sourceGrades, ItemSubType subType, CostumeItemSheet sheet)
{
return sheet
.Values
.Where(r => r.ItemSubType == subType)
.Where(r => sourceGrades.Any(grade => (Grade)r.Grade == grade))
.Select(r => r.Id)
.Select(r => (r.Id, (Grade)r.Grade))
.ToHashSet();
}

Expand All @@ -619,14 +619,14 @@ public static HashSet<int> GetSynthesizeResultPool(HashSet<Grade> sourceGrades,
/// <param name="sourceGrades">grades of material items</param>
/// <param name="subType">excepted Grimoire,Aura</param>
/// <param name="sheet">EquipmentItemSheet to use</param>
/// <returns>list of items key(int)</returns>
public static HashSet<int> GetSynthesizeResultPool(HashSet<Grade> sourceGrades, ItemSubType subType, EquipmentItemSheet sheet)
/// <returns>list of items key(int), grade(Grade) tuple</returns>
public static HashSet<(int, Grade)> GetSynthesizeResultPool(HashSet<Grade> sourceGrades, ItemSubType subType, EquipmentItemSheet sheet)
{
return sheet
.Values
.Where(r => r.ItemSubType == subType)
.Where(r => sourceGrades.Any(grade => (Grade)r.Grade == grade))
.Select(r => r.Id)
.Select(r => (r.Id, (Grade)r.Grade))
.ToHashSet();
}

Expand Down

0 comments on commit af2aada

Please sign in to comment.