fix: missing king_smell (#28)
parent
ddc3eb88df
commit
47a3425627
|
|
@ -1,3 +1,8 @@
|
||||||
|
## 0.1.25
|
||||||
|
|
||||||
|
fix: missing king_smell
|
||||||
|
([#28](https://github.com/spacemeowx2/s3si.ts/issues/28))
|
||||||
|
|
||||||
## 0.1.24
|
## 0.1.24
|
||||||
|
|
||||||
fix: missing coop weapons
|
fix: missing coop weapons
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import type { StatInkPostBody, VsHistoryDetail } from "./types.ts";
|
import type { StatInkPostBody, VsHistoryDetail } from "./types.ts";
|
||||||
|
|
||||||
export const AGENT_NAME = "s3si.ts";
|
export const AGENT_NAME = "s3si.ts";
|
||||||
export const S3SI_VERSION = "0.1.24";
|
export const S3SI_VERSION = "0.1.25";
|
||||||
export const NSOAPP_VERSION = "2.3.1";
|
export const NSOAPP_VERSION = "2.3.1";
|
||||||
export const WEB_VIEW_VERSION = "1.0.0-433ec0e8";
|
export const WEB_VIEW_VERSION = "1.0.0-433ec0e8";
|
||||||
export const S3SI_LINK = "https://github.com/spacemeowx2/s3si.ts";
|
export const S3SI_LINK = "https://github.com/spacemeowx2/s3si.ts";
|
||||||
|
|
|
||||||
|
|
@ -536,6 +536,7 @@ export class StatInkExporter implements GameExporter {
|
||||||
scale,
|
scale,
|
||||||
playedTime,
|
playedTime,
|
||||||
enemyResults,
|
enemyResults,
|
||||||
|
smellMeter,
|
||||||
} = detail;
|
} = detail;
|
||||||
|
|
||||||
const startedAt = Math.floor(new Date(playedTime).getTime() / 1000);
|
const startedAt = Math.floor(new Date(playedTime).getTime() / 1000);
|
||||||
|
|
@ -552,6 +553,9 @@ export class StatInkExporter implements GameExporter {
|
||||||
defeated_by_me: i.defeatCount,
|
defeated_by_me: i.defeatCount,
|
||||||
}]),
|
}]),
|
||||||
);
|
);
|
||||||
|
const clear_waves =
|
||||||
|
detail.waveResults.filter((i) => i.waveNumber < 4).length -
|
||||||
|
1 + (resultWave === 0 ? 1 : 0);
|
||||||
|
|
||||||
const result: StatInkCoopPostBody = {
|
const result: StatInkCoopPostBody = {
|
||||||
uuid: await gameId(detail.id),
|
uuid: await gameId(detail.id),
|
||||||
|
|
@ -559,9 +563,9 @@ export class StatInkExporter implements GameExporter {
|
||||||
big_run: "no",
|
big_run: "no",
|
||||||
stage: b64Number(detail.coopStage.id).toString(),
|
stage: b64Number(detail.coopStage.id).toString(),
|
||||||
danger_rate: dangerRate * 100,
|
danger_rate: dangerRate * 100,
|
||||||
clear_waves: detail.waveResults.filter((i) => i.waveNumber < 4).length -
|
clear_waves,
|
||||||
1 + (resultWave === 0 ? 1 : 0),
|
|
||||||
fail_reason: null,
|
fail_reason: null,
|
||||||
|
king_smell: smellMeter,
|
||||||
king_salmonid: this.mapKing(detail.bossResult?.boss.id),
|
king_salmonid: this.mapKing(detail.bossResult?.boss.id),
|
||||||
clear_extra: bossResult?.hasDefeatBoss ? "yes" : "no",
|
clear_extra: bossResult?.hasDefeatBoss ? "yes" : "no",
|
||||||
title_after: detail.afterGrade
|
title_after: detail.afterGrade
|
||||||
|
|
|
||||||
|
|
@ -474,6 +474,7 @@ export type StatInkCoopPostBody = {
|
||||||
// [0, 3]
|
// [0, 3]
|
||||||
clear_waves: number;
|
clear_waves: number;
|
||||||
fail_reason?: null | "wipe_out" | "time_limit";
|
fail_reason?: null | "wipe_out" | "time_limit";
|
||||||
|
king_smell?: number | null;
|
||||||
king_salmonid?: string;
|
king_salmonid?: string;
|
||||||
clear_extra: "yes" | "no";
|
clear_extra: "yes" | "no";
|
||||||
title_before?: string;
|
title_before?: string;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue