rarity post filter fix
This commit is contained in:
+5
-5
@@ -81,11 +81,11 @@ m.filters = {
|
|||||||
end
|
end
|
||||||
|
|
||||||
local code = ({
|
local code = ({
|
||||||
['poor'] = 1,
|
['poor'] = 0,
|
||||||
['common'] = 2,
|
['common'] = 1,
|
||||||
['uncommon'] = 3,
|
['uncommon'] = 2,
|
||||||
['rare'] = 4,
|
['rare'] = 3,
|
||||||
['epic'] = 5,
|
['epic'] = 4,
|
||||||
})[rarity or '']
|
})[rarity or '']
|
||||||
if not code then
|
if not code then
|
||||||
return false, {}, 'Erroneous rarity modifier'
|
return false, {}, 'Erroneous rarity modifier'
|
||||||
|
|||||||
Reference in New Issue
Block a user