Skip to content

Commit 17d56cd

Browse files
author
Freddie
committed
Filter and delete ignored skill line abilities
1 parent be9597d commit 17d56cd

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

apps/tool/Tools/DumpsTool.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1680,7 +1680,9 @@ private async Task ImportRecipeItems(WowDbContext context)
16801680
var seen = new HashSet<(int, int)>();
16811681
foreach (var skillLineAbility in skillLineAbilities)
16821682
{
1683-
if (skillLineAbility.Spell == 0 || !_teachSpellBySpellId.TryGetValue(skillLineAbility.Spell, out var recipeItemIds))
1683+
if (skillLineAbility.Spell == 0 ||
1684+
Hardcoded.IgnoredSkillLineAbilities.Contains(skillLineAbility.ID) ||
1685+
!_teachSpellBySpellId.TryGetValue(skillLineAbility.Spell, out var recipeItemIds))
16841686
{
16851687
continue;
16861688
}
@@ -1704,7 +1706,9 @@ private async Task ImportRecipeItems(WowDbContext context)
17041706
}
17051707
}
17061708

1707-
// TODO deletes
1709+
await context.WowProfessionRecipeItem
1710+
.Where(item => Hardcoded.IgnoredSkillLineAbilities.Contains(item.SkillLineAbilityId))
1711+
.ExecuteDeleteAsync();
17081712

17091713
_timer.AddPoint("RecipeItems");
17101714
}

0 commit comments

Comments
 (0)