gridviews can accept directly, 2nd+ items get quickfind spots, highlighting

This commit is contained in:
Tyfon
2024-06-16 16:46:14 -07:00
parent 29e352eee9
commit c5836eb588
4 changed files with 215 additions and 15 deletions

View File

@@ -56,7 +56,8 @@ namespace UIFixes
ignoreSpawnedInSession = Settings.MergeFIROther.Value;
}
mergeableItem = gridsToPut.SelectMany(x => x.Items).Where(x => MergeableItemType.IsInstanceOfType(x))
mergeableItem = gridsToPut.SelectMany(x => x.Items)
.Where(x => MergeableItemType.IsInstanceOfType(x))
.Where(x => x != itemToMerge)
.Where(x => x.TemplateId == itemToMerge.TemplateId)
.Where(x => ignoreSpawnedInSession || x.SpawnedInSession == itemToMerge.SpawnedInSession)