add / option to always show hidden items and check if received value is nil

This commit is contained in:
gretchen
2024-03-15 15:16:58 +01:00
parent 7605c0653b
commit 39c97a230f
3 changed files with 14 additions and 6 deletions
+7 -5
View File
@@ -86,12 +86,14 @@ AUX_data_sharer:SetScript("OnEvent", function()
if msg == "AuxData" then
if arg2 ~= AUXplayerName then
local unit_buyout_price = tonumber (munit_buyout_price)
if unit_buyout_price then
--print("received data:" .. msg .. "," .. item_key .. "," .. unit_buyout_price); --for testing (print comes from PFUI)
local item_record = read_record(item_key)
if unit_buyout_price > 0 and unit_buyout_price < (item_record.daily_min_buyout or aux.huge) then
item_record.daily_min_buyout = unit_buyout_price
write_record(item_key, item_record)
--print("wrote data"); --for testing (print comes from PFUI)
local item_record = read_record(item_key)
if unit_buyout_price > 0 and unit_buyout_price < (item_record.daily_min_buyout or aux.huge) then
item_record.daily_min_buyout = unit_buyout_price
write_record(item_key, item_record)
--print("wrote data"); --for testing (print comes from PFUI)
end
end
end
end