save files are now chronologically named

This commit is contained in:
Olivier Gagnon 2021-12-08 18:27:57 -05:00
parent 35fa4a4117
commit ed821617c0

@ -77,7 +77,7 @@ class BitburnerSaveObject {
// Save file name is based on current timestamp and BitNode // Save file name is based on current timestamp and BitNode
const epochTime = Math.round(Date.now() / 1000); const epochTime = Math.round(Date.now() / 1000);
const bn = Player.bitNodeN; const bn = Player.bitNodeN;
const filename = `bitburnerSave_BN${bn}x${SourceFileFlags[bn]}_${epochTime}.json`; const filename = `bitburnerSave_${epochTime}_BN${bn}x${SourceFileFlags[bn]}.json`;
download(filename, saveString); download(filename, saveString);
} }