feat: add crown (#56)

main
imspace 2022-12-16 23:45:55 +08:00 committed by GitHub
parent 6c80140719
commit 4386a75c99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
## 0.2.5
feat: add crown
## 0.2.4 ## 0.2.4
fix: wrong golden eggs (https://github.com/fetus-hina/stat.ink/issues/1167) fix: wrong golden eggs (https://github.com/fetus-hina/stat.ink/issues/1167)

View File

@ -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.2.4"; export const S3SI_VERSION = "0.2.5";
export const NSOAPP_VERSION = "2.4.0"; export const NSOAPP_VERSION = "2.4.0";
export const WEB_VIEW_VERSION = "2.0.0-bd36a652"; export const WEB_VIEW_VERSION = "2.0.0-bd36a652";
export const S3SI_LINK = "https://github.com/spacemeowx2/s3si.ts"; export const S3SI_LINK = "https://github.com/spacemeowx2/s3si.ts";

View File

@ -398,6 +398,7 @@ export class StatInkExporter implements GameExporter {
weapon: b64Number(player.weapon.id).toString(), weapon: b64Number(player.weapon.id).toString(),
inked: player.paint, inked: player.paint,
gears: await this.mapGears(player), gears: await this.mapGears(player),
crown: player.crown ? "yes" : "no",
disconnected: player.result ? "no" : "yes", disconnected: player.result ? "no" : "yes",
}; };
if (player.result) { if (player.result) {

View File

@ -156,6 +156,7 @@ export type VsPlayer = {
special: number; special: number;
} | null; } | null;
paint: number; paint: number;
crown: boolean;
headGear: PlayerGear; headGear: PlayerGear;
clothingGear: PlayerGear; clothingGear: PlayerGear;
@ -638,6 +639,7 @@ export type StatInkPlayer = {
death?: number; death?: number;
special?: number; special?: number;
gears?: StatInkGears; gears?: StatInkGears;
crown?: "yes" | "no";
disconnected: "yes" | "no"; disconnected: "yes" | "no";
}; };