Skip to content

Commit

Permalink
gamePlayed Field added to replays
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanpmartell committed Jan 24, 2025
1 parent 520be6d commit a8d05f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LittleWarGameClient/js/lwg.js
Original file line number Diff line number Diff line change
Expand Up @@ -24060,8 +24060,10 @@ Game.prototype.getReplayFile = function() {
}

// build and return stringified replay object
const currentUTC = new Date().toISOString();
return JSON.stringify({
map: this.name,
gamePlayed: currentUTC,
mapVersion: this.data.timestamp,
gameVersion: GAME_VERSION,
players: p,
Expand Down

0 comments on commit a8d05f8

Please sign in to comment.