fix: improved sorting
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
## Title: Guda
|
## Title: Guda
|
||||||
## Notes: All-in-one bag and bank addon for Turtle WoW
|
## Notes: All-in-one bag and bank addon for Turtle WoW
|
||||||
## Author: Vati
|
## Author: Vati
|
||||||
## Version: 1.1.0
|
## Version: 1.1.1
|
||||||
## SavedVariables: Guda_DB
|
## SavedVariables: Guda_DB
|
||||||
## SavedVariablesPerCharacter: Guda_CharDB
|
## SavedVariablesPerCharacter: Guda_CharDB
|
||||||
|
|
||||||
|
|||||||
@@ -144,6 +144,11 @@ local function GetSubclassOrder(subclass, itemName)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Check other categories
|
-- Check other categories
|
||||||
|
-- Group metals, stones, ores, bars together with gems
|
||||||
|
if string.find(subLower, "metal") or string.find(subLower, "stone") or
|
||||||
|
string.find(nameLower, "ore") or string.find(nameLower, "bar") or string.find(nameLower, "stone") then
|
||||||
|
return SUBCLASS_ORDER.gems -- Group ores/bars/stones with gems
|
||||||
|
end
|
||||||
if string.find(subLower, "cloth") then return SUBCLASS_ORDER.cloth end
|
if string.find(subLower, "cloth") then return SUBCLASS_ORDER.cloth end
|
||||||
if string.find(subLower, "leather") then return SUBCLASS_ORDER.leather end
|
if string.find(subLower, "leather") then return SUBCLASS_ORDER.leather end
|
||||||
if string.find(subLower, "herb") then return SUBCLASS_ORDER.herbs end
|
if string.find(subLower, "herb") then return SUBCLASS_ORDER.herbs end
|
||||||
|
|||||||
Reference in New Issue
Block a user