Added new telemetry-related parameters

This commit is contained in:
frutescens 2024-11-09 10:59:40 -08:00
parent 2bf8acea06
commit a32d76c3d2
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,5 @@
import { GameModes } from "#app/game-mode";
export class UpdateSessionSavedataRequest {
slot: number;
trainerId: number;
@ -9,6 +11,8 @@ export class UpdateSessionSavedataRequest {
export interface NewClearSessionSavedataRequest {
slot: number;
clientSessionId: string;
result: boolean;
gameMode: GameModes;
}
export interface GetSessionSavedataRequest {

View File

@ -178,7 +178,7 @@ export class GameOverPhase extends BattlePhase {
If Offline, execute offlineNewClear(), a localStorage implementation of newClear daily run checks */
if (this.victory) {
if (!Utils.isLocal || Utils.isLocalServerConnected) {
pokerogueApi.savedata.session.newclear({ slot: this.scene.sessionSlotId, clientSessionId })
pokerogueApi.savedata.session.newclear({ slot: this.scene.sessionSlotId, clientSessionId, result: this.victory, gameMode: this.scene.gameMode.modeId })
.then((success) => doGameOver(!!success));
} else {
this.scene.gameData.offlineNewClear(this.scene).then(result => {