refactoring
This commit is contained in:
@@ -239,7 +239,6 @@ do
|
|||||||
) do
|
) do
|
||||||
if not self[parser[1]] then
|
if not self[parser[1]] then
|
||||||
tinsert(parser, str)
|
tinsert(parser, str)
|
||||||
p(str, p(unpack(parser)), p(select(3, unpack(parser))))
|
|
||||||
local index, label = parser[2](select(3, unpack(parser)))
|
local index, label = parser[2](select(3, unpack(parser)))
|
||||||
if index then
|
if index then
|
||||||
self[parser[1]] = A(label, index)
|
self[parser[1]] = A(label, index)
|
||||||
|
|||||||
@@ -372,7 +372,6 @@ end
|
|||||||
|
|
||||||
function public.item_class_index(item_class)
|
function public.item_class_index(item_class)
|
||||||
for i, class in temp-A(GetAuctionItemClasses()) do
|
for i, class in temp-A(GetAuctionItemClasses()) do
|
||||||
if type(item_class) ~= 'string' then error() end
|
|
||||||
if strupper(class) == strupper(item_class) then
|
if strupper(class) == strupper(item_class) then
|
||||||
return i, class
|
return i, class
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user