refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-28 02:23:38 +02:00
parent 15e6e7409a
commit f42e54a4fc
15 changed files with 78 additions and 77 deletions
+2 -2
View File
@@ -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
View File
@@ -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
View File
@@ -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