From 8707213e8800e1b3ce3716f085d8ef75fe8d3287 Mon Sep 17 00:00:00 2001 From: William Burleson <72857839+Admiral-Billy@users.noreply.github.com> Date: Sat, 11 May 2024 10:11:00 -0400 Subject: [PATCH] Adds session playtime to gameInfo for Rich Presence (#738) * Add rich presence support * Adds playtime to gameInfo --- src/battle-scene.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/battle-scene.ts b/src/battle-scene.ts index 40ac8ab32..3f07bf859 100644 --- a/src/battle-scene.ts +++ b/src/battle-scene.ts @@ -1971,6 +1971,7 @@ export default class BattleScene extends SceneBase { updateGameInfo(): void { const gameInfo = { + playTime: this.sessionPlayTime ? this.sessionPlayTime : 0, gameMode: this.currentBattle ? this.gameMode.getName() : 'Title', biome: this.currentBattle ? getBiomeName(this.arena.biomeType) : '', wave: this.currentBattle?.waveIndex || 0,