Skip to content

Commit c0f60a5

Browse files
authored
Add support for breach ring quality (#47)
* Breach ring default 50 quality * fake mod support display only
1 parent 69defed commit c0f60a5

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/Classes/ItemsTab.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,11 @@ holding Shift will put it in the second.]])
427427
function(index, value)
428428
self.displayItem.catalyst = index - 1
429429
if not self.displayItem.catalystQuality then
430-
self.displayItem.catalystQuality = 20
430+
if string.match(self.displayItem.name, "Breach Ring") then
431+
self.displayItem.catalystQuality = 50
432+
else
433+
self.displayItem.catalystQuality = 20
434+
end
431435
self.controls.displayItemCatalystQualityEdit:SetText(self.displayItem.catalystQuality)
432436
end
433437
if self.displayItem.crafted then

src/Modules/ModParser.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2801,6 +2801,9 @@ local specialModList = {
28012801
["reflects your other ring"] = {
28022802
-- Display only. For Kalandra's Touch.
28032803
},
2804+
["maximum quality is 50%%"] = {
2805+
-- Display only. For Breach Rings.
2806+
},
28042807
["has (%d+) sockets?"] = function(num) return { mod("SocketCount", "BASE", num) } end,
28052808
["no physical damage"] = { mod("WeaponData", "LIST", { key = "PhysicalMin" }), mod("WeaponData", "LIST", { key = "PhysicalMax" }), mod("WeaponData", "LIST", { key = "PhysicalDPS" }) },
28062809
["has (%d+)%% increased elemental damage"] = function(num) return { mod("LocalElementalDamage", "INC", num) } end,

0 commit comments

Comments
 (0)