added logging for succesful trades

This commit is contained in:
Sokomine 2021-05-24 20:33:08 +02:00
parent 878a5b6c23
commit 2e6ecf6006

View File

@ -302,6 +302,11 @@ yl_speak_up.do_trade_simple = function(player, count)
-- store for statistics how many times the player has executed this trade
trade.trade_done = trade.trade_done + 1
-- log the trade
yl_speak_up.log_change(pname, trade.n_id,
"bought "..tostring(trade.npc_gives)..
" for "..tostring(trade.player_gives))
end