1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-03-03 14:53:01 +02:00

Add check for 0 price and 0 player limit

This commit is contained in:
plague006 2019-02-04 03:00:05 -05:00
parent dbbe8aa7ac
commit 160600dfd2

View File

@ -273,7 +273,9 @@ local function redraw_market_items(data)
local disabled = item.disabled == true
local message
if total_price == 0 then
if total_price == 0 and player_limit == 0 then
message = 'SOLD!'
elseif total_price == 0 then
message = 'FREE!'
elseif total_price == 1 then
message = '1 coin'