forked from Sokomine/yl_speak_up
removed autofill/autorefill in pay slot
This commit is contained in:
parent
e38044c6ff
commit
ec23d8ac01
@ -384,12 +384,14 @@ yl_speak_up.get_fs_trade_simple = function(player)
|
|||||||
elseif not(trade_inv:is_empty("pay")) then
|
elseif not(trade_inv:is_empty("pay")) then
|
||||||
-- both slots will remain empty
|
-- both slots will remain empty
|
||||||
-- (the slot may already contain the right things; we'll find that out later on)
|
-- (the slot may already contain the right things; we'll find that out later on)
|
||||||
trade_possible_msg = "Please insert the right payment manually."
|
trade_possible_msg = "Please insert the right payment!"
|
||||||
-- all good so far; move the price stack to the pay slot
|
-- all good so far; move the price stack to the pay slot
|
||||||
|
-- else
|
||||||
|
-- -- move price item to the price slot
|
||||||
|
-- local stack = player_inv:remove_item("main", trade.player_gives)
|
||||||
|
-- trade_inv:add_item("pay", stack)
|
||||||
else
|
else
|
||||||
-- move price item to the price slot
|
trade_possible_msg = "Please insert the right payment in the pay slot."
|
||||||
local stack = player_inv:remove_item("main", trade.player_gives)
|
|
||||||
trade_inv:add_item("pay", stack)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- make sure the sale slot is empty (we will fill it if the trade is possible)
|
-- make sure the sale slot is empty (we will fill it if the trade is possible)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user