fix: Dungeon swords not being recognized for reforges

This commit is contained in:
Linnea Gräf
2024-12-31 17:51:29 +01:00
parent a50de16018
commit bb124fe91d
7 changed files with 7 additions and 83 deletions

View File

@@ -171,9 +171,10 @@ class SBReforgeRecipe(
is Reforge.ReforgeEligibilityFilter.AllowsItemType ->
ReforgeStore.resolveItemType(it.itemType)
.flatMap {
RepoItemTypeCache.byItemType[it] ?: listOf()
}
.flatMapTo(mutableSetOf()) {
(RepoItemTypeCache.byItemType[it] ?: listOf()) +
(RepoItemTypeCache.byItemType[it.dungeonVariant] ?: listOf())
}.toList()
is Reforge.ReforgeEligibilityFilter.AllowsVanillaItemType -> {
listOf() // TODO: add filter support for this and potentially rework this to search for the declared item type in repo, instead of remapped item type