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 { export class UpdateSessionSavedataRequest {
slot: number; slot: number;
trainerId: number; trainerId: number;
@ -9,6 +11,8 @@ export class UpdateSessionSavedataRequest {
export interface NewClearSessionSavedataRequest { export interface NewClearSessionSavedataRequest {
slot: number; slot: number;
clientSessionId: string; clientSessionId: string;
result: boolean;
gameMode: GameModes;
} }
export interface GetSessionSavedataRequest { 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 Offline, execute offlineNewClear(), a localStorage implementation of newClear daily run checks */
if (this.victory) { if (this.victory) {
if (!Utils.isLocal || Utils.isLocalServerConnected) { 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)); .then((success) => doGameOver(!!success));
} else { } else {
this.scene.gameData.offlineNewClear(this.scene).then(result => { this.scene.gameData.offlineNewClear(this.scene).then(result => {