mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 06:19:29 +02:00
Removing extra parameters.
This commit is contained in:
parent
a1f900516c
commit
ae89cb7fdc
@ -1,5 +1,3 @@
|
||||
import { GameModes } from "#app/game-mode";
|
||||
|
||||
export class UpdateSessionSavedataRequest {
|
||||
slot: number;
|
||||
trainerId: number;
|
||||
@ -12,7 +10,6 @@ export interface NewClearSessionSavedataRequest {
|
||||
slot: number;
|
||||
clientSessionId: string;
|
||||
result: boolean;
|
||||
gameMode: GameModes;
|
||||
}
|
||||
|
||||
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 (this.victory) {
|
||||
if (!Utils.isLocal || Utils.isLocalServerConnected) {
|
||||
pokerogueApi.savedata.session.newclear({ slot: this.scene.sessionSlotId, clientSessionId, result: this.victory, gameMode: this.scene.gameMode.modeId })
|
||||
pokerogueApi.savedata.session.newclear({ slot: this.scene.sessionSlotId, clientSessionId, result: this.victory })
|
||||
.then((success) => doGameOver(!!success));
|
||||
} else {
|
||||
this.scene.gameData.offlineNewClear(this.scene).then(result => {
|
||||
|
@ -6,7 +6,6 @@ import type {
|
||||
NewClearSessionSavedataRequest,
|
||||
UpdateSessionSavedataRequest,
|
||||
} from "#app/@types/PokerogueSessionSavedataApi";
|
||||
import { GameModes } from "#app/game-mode";
|
||||
import { PokerogueSessionSavedataApi } from "#app/plugins/api/pokerogue-session-savedata-api";
|
||||
import type { SessionSaveData } from "#app/system/game-data";
|
||||
import { getApiBaseUrl } from "#app/test/utils/testUtils";
|
||||
@ -30,8 +29,7 @@ describe("Pokerogue Session Savedata API", () => {
|
||||
const params: NewClearSessionSavedataRequest = {
|
||||
clientSessionId: "test-session-id",
|
||||
slot: 3,
|
||||
result: true,
|
||||
gameMode: GameModes.CLASSIC
|
||||
result: true
|
||||
};
|
||||
|
||||
it("should return true on SUCCESS", async () => {
|
||||
|
Loading…
Reference in New Issue
Block a user