mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 06:19:29 +02:00
Added new telemetry-related parameters
This commit is contained in:
parent
2bf8acea06
commit
a32d76c3d2
@ -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 {
|
||||||
|
@ -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 => {
|
||||||
|
Loading…
Reference in New Issue
Block a user