Skip to content

Commit

Permalink
Fix quality check condition for item types (#8032)
Browse files Browse the repository at this point in the history
Corrected the logical error in the if condition to correctly check for specific item types such as Amulet, Belt, Jewel, Quiver, and Ring before setting item quality to nil. This ensures that NormaliseQuality() is able to properly set the default value.
  • Loading branch information
ConnorThelin authored Jul 30, 2024
1 parent 6ed2c79 commit 004fe35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Classes/ItemsTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1955,7 +1955,7 @@ function ItemsTabClass:CraftItem()
item.implicitModLines = { }
item.explicitModLines = { }
item.crucibleModLines = { }
if base.base.type ~= "Amulet" or base.base.type ~= "Belt" or base.base.type ~= "Jewel" or base.base.type ~= "Quiver" or base.base.type ~= "Ring" then
if base.base.type == "Amulet" or base.base.type == "Belt" or base.base.type == "Jewel" or base.base.type == "Quiver" or base.base.type == "Ring" then
item.quality = nil
else
item.quality = 0
Expand Down

0 comments on commit 004fe35

Please sign in to comment.