From 6e67e2afd4282ac5fe090c9b074a6caba6121c54 Mon Sep 17 00:00:00 2001 From: Mikhail Novikov Date: Thu, 20 Jul 2023 12:44:27 +0200 Subject: [PATCH] Add game name and turn number to save file --- games/event_handlers/new_turn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games/event_handlers/new_turn.js b/games/event_handlers/new_turn.js index 7f306e8..e0cb8b6 100644 --- a/games/event_handlers/new_turn.js +++ b/games/event_handlers/new_turn.js @@ -170,7 +170,7 @@ function _buildMessagePayload(game, playerFile, fetchedTurnFiles) payload.addContent(`**${nationFilename}**: ${nationTurnFiles[nationFilename]}`); else if (nationTurnFiles[nationFilename] != null) - payload.setAttachment(`${nationFilename}.trn`, nationTurnFiles[nationFilename]); + payload.setAttachment(`${game.getName()}-${nationFilename}-T${turnNumber}.trn`, nationTurnFiles[nationFilename]); });