1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-12 10:04:40 +02:00

Fix lua check

This commit is contained in:
James Gillham 2020-12-27 14:07:06 +00:00
parent a127196e9c
commit 7501c7b28c

View File

@ -104,7 +104,7 @@ Event.add(Retailer.events.on_market_purchase, function(event)
Toast.toast_all_players(15, {'command_description.crash_site_rocket_tank_upgrade_success', interval_level}) Toast.toast_all_players(15, {'command_description.crash_site_rocket_tank_upgrade_success', interval_level})
item.name_label = {'command_description.crash_site_rocket_tanks_name_label', (interval_level + 1)} item.name_label = {'command_description.crash_site_rocket_tanks_name_label', (interval_level + 1)}
item.price = (interval_level + 1) * 7500 item.price = (interval_level + 1) * 7500
Retailer.set_item(market_id, item) -- this updates the retailer with the new item values. Retailer.set_item(market_id, item) -- this updates the retailer with the new item values.
end end
if interval_level >= 4 then -- update label, set price to 0, disable further purchases if interval_level >= 4 then -- update label, set price to 0, disable further purchases
item.price = 0 item.price = 0