Skip to content

Commit 9e9d5a9

Browse files
vaisestLocalIdentity
andauthored
Add support for adding vestigial implicits (#10156)
* Add support for adding vestigial implicits * Prevent adding item to itself as vestigial * Cleanup * Fix shavs + Infernal Mantle mod id * Fix equality comparison * Add "Core drop pool" filtering to vestigial implicits and unique db * Fix (hopefully) all the rest of the core drop pool uniques * Fix stasis prison and typo * Regen modcache * Cleanup * Remove delve implicits * Move popup code to its own module and remove various bits of dead code * Fix random sorting on vestigial mods * Fix mod double up The mod on Kaom's was wrong so was double matching the mod * Fix tooltip to show stat difference of replacing the implicit The stat diff wasn't taking into account that the vestigial mods replace the implicit on an item --------- Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 3cedc38 commit 9e9d5a9

29 files changed

Lines changed: 2094 additions & 385 deletions

‎src/Classes/ItemDBControl.lua‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function ItemDBClass:ItemDBControl(anchor, rect, itemsTab, db, dbType)
4747
self.controls.requirement = new("DropDownControl"):DropDownControl({"LEFT",self.controls.sort,"BOTTOMLEFT"}, {0, 11, 179, 18}, { "Any requirements", "Current level", "Current attributes", "Current useable" }, function(index, value)
4848
self.listBuildFlag = true
4949
end)
50-
self.controls.obtainable = new("DropDownControl"):DropDownControl({"LEFT",self.controls.requirement,"RIGHT"}, {2, 0, 179, 18}, { "Obtainable", "Any source", "Unobtainable", "Vendor Recipe", "Upgraded", "Boss Item", "Corruption"}, function(index, value)
50+
self.controls.obtainable = new("DropDownControl"):DropDownControl({"LEFT",self.controls.requirement,"RIGHT"}, {2, 0, 179, 18}, { "Obtainable", "Any source", "Unobtainable", "Vendor Recipe", "Upgraded", "Boss Item", "Corruption", "Core Drop Pool"}, function(index, value)
5151
self.listBuildFlag = true
5252
end)
5353
end
@@ -126,6 +126,8 @@ function ItemDBClass:DoesItemMatchFilters(item)
126126
return false
127127
elseif (self.controls.obtainable.selIndex == 7 and not (string.match(source, "Vaal Orb"))) then
128128
return false
129+
elseif (self.controls.obtainable.selIndex == 8) and item.source then
130+
return false
129131
end
130132
end
131133
if self.dbType == "UNIQUE" and self.controls.requirement.selIndex > 1 then

0 commit comments

Comments
 (0)