refactoring
This commit is contained in:
+2
-2
@@ -65,7 +65,7 @@ do
|
||||
end
|
||||
|
||||
function merchant_loaded()
|
||||
for i=1,GetMerchantNumItems() do
|
||||
for i = 1, GetMerchantNumItems() do
|
||||
if not GetMerchantItemLink(i) then
|
||||
return false
|
||||
end
|
||||
@@ -107,7 +107,7 @@ end
|
||||
function merchant_buy_scan()
|
||||
|
||||
local incomplete_data
|
||||
for i=1,GetMerchantNumItems() do
|
||||
for i = 1, GetMerchantNumItems() do
|
||||
local _, _, price, count, stock = GetMerchantItemInfo(i)
|
||||
local link = GetMerchantItemLink(i)
|
||||
if link then
|
||||
|
||||
+1
-1
@@ -224,7 +224,7 @@ function wait_for_list_results(send_signal, signal_received)
|
||||
end
|
||||
|
||||
function owner_data_complete(type)
|
||||
for i=1,PAGE_SIZE do
|
||||
for i = 1, PAGE_SIZE do
|
||||
local auction_info = info.auction(i, type)
|
||||
if auction_info and not auction_info.owner then
|
||||
return false
|
||||
|
||||
+2
-2
@@ -53,7 +53,7 @@ function _G.SlashCmdList.AUX(command)
|
||||
elseif arguments[1] == 'chars' and arguments[2] == 'add' then
|
||||
local realm = GetCVar 'realmName'
|
||||
_G.aux_characters[realm] = _G.aux_characters[realm] or {}
|
||||
for i=3,getn(arguments) do
|
||||
for i = 3, getn(arguments) do
|
||||
local name = gsub(strlower(arguments[i]), '^%l', strupper)
|
||||
if not _G.aux_characters[realm][name] then
|
||||
_G.aux_characters[realm][name] = true
|
||||
@@ -65,7 +65,7 @@ function _G.SlashCmdList.AUX(command)
|
||||
if not _G.aux_characters[realm] then
|
||||
return
|
||||
end
|
||||
for i=3,getn(arguments) do
|
||||
for i = 3, getn(arguments) do
|
||||
local name = gsub(strlower(arguments[i]), '^%l', strupper)
|
||||
if _G.aux_characters[realm][name] then
|
||||
_G.aux_characters[realm][name] = nil
|
||||
|
||||
Reference in New Issue
Block a user