From 30d19e91a8597bb3e9ebab13c96e127f017329e3 Mon Sep 17 00:00:00 2001 From: gretchen Date: Thu, 4 Jan 2024 17:20:25 +0100 Subject: [PATCH] cleanup --- core/history.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/history.lua b/core/history.lua index 0f65a84..f653702 100644 --- a/core/history.lua +++ b/core/history.lua @@ -16,7 +16,7 @@ local value_cache = {} function AuxAddon:OnEnable() --self:RegisterComm(commPrefix, "GROUP", "OnCommReceive"); --for testing purposes, not really useful in real world I think - --self:RegisterComm(commPrefix, "GUILD", "OnCommReceive"); + self:RegisterComm(commPrefix, "GUILD", "OnCommReceive"); end function aux.handle.LOAD2() @@ -70,10 +70,9 @@ function M.process_auction(auction_record) end end -function AuxAddon:OnCommReceive(prefix, sender, distribution, item_key, unit_buyout_price) --copied code from process_auction rather than calling it here to avoid resending the data also lazyness +function AuxAddon:OnCommReceive(prefix, sender, distribution, item_key, unit_buyout_price) --copied code from process_auction --print("received data"); --for testing (print comes from PFUI) local item_record = read_record(item_key) - --local unit_buyout_price = ceil(auction_record.buyout_price / auction_record.aux_quantity) 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)