1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-30 04:30:58 +02:00

Added map name to the title of the Discord embed (#1321)

This commit is contained in:
Thomas Jensen 2022-05-21 12:07:24 +02:00 committed by GitHub
parent 4c9554ca0f
commit b5f3de51dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ return function(config)
end
local statistics = {
scenario = config.scenario_name,
scenario = config.scenario_name or 'Danger ore',
start_epoch = Server.get_start_time(),
end_epoch = end_epoch, -- stored as key already, useful to have it as part of same structure
game_ticks = game.ticks_played,
@ -142,7 +142,7 @@ return function(config)
ore_totals_message = ore_totals_message:sub(1, -3)..')' -- remove the last ", " and add a bracket
ore_totals_message = "Total ore mined: "..format_number(total_ore, true).. "\\n"..ore_totals_message
local statistics_message = 'Danger ores map completed!\\n\\n'..
local statistics_message = statistics.scenario..' completed!\\n\\n'..
'Statistics:\\n'..
'Map time: '..time_string..'\\n'..
'Total entities built: '..statistics.entities_built..'\\n'..