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

Add crashsite-manhattan + fallback to scenario_name.

This commit is contained in:
James Gillham 2021-09-18 15:37:28 +01:00
parent 6d1648e66b
commit f13ad9371b

View File

@ -78,7 +78,8 @@ function Public.control(config)
['crashsite-world'] = 'Crash Site World Map', ['crashsite-world'] = 'Crash Site World Map',
['crashsite-desert'] = 'Crash Site Desert', ['crashsite-desert'] = 'Crash Site Desert',
['crashsite-arrakis'] = 'Crash Site Arrakis', ['crashsite-arrakis'] = 'Crash Site Arrakis',
['crashsite-venice'] = 'Crash Site Venice' ['crashsite-venice'] = 'Crash Site Venice',
['crashsite-manhattan'] = 'Crash Site Manhattan'
} }
local function can_restart(player) local function can_restart(player)
@ -243,8 +244,8 @@ function Public.control(config)
local new_map_name = start_game_data.name local new_map_name = start_game_data.name
Server.to_discord_named_raw(map_promotion_channel, Server.to_discord_named_raw(map_promotion_channel,
crash_site_role_mention .. ' **' .. scenario_display_name[config.scenario_name] .. ' has just restarted!!\\n' crash_site_role_mention .. ' **' .. (scenario_display_name[config.scenario_name] or config.scenario_name) .. ' has just restarted!!\\n'
.. 'Next map: ' .. scenario_display_name[new_map_name] .. '**') .. 'Next map: ' .. (scenario_display_name[new_map_name] or new_map_name) .. '**')
Server.set_data('crash_site_data', tostring(end_epoch), statistics) -- Store the table, with end_epoch as the key Server.set_data('crash_site_data', tostring(end_epoch), statistics) -- Store the table, with end_epoch as the key
end end