From 4386a75c993b54a4c8919be1609357ff9ef539f4 Mon Sep 17 00:00:00 2001 From: imspace Date: Fri, 16 Dec 2022 23:45:55 +0800 Subject: [PATCH] feat: add crown (#56) --- CHANGELOG.md | 4 ++++ src/constant.ts | 2 +- src/exporters/stat.ink.ts | 1 + src/types.ts | 2 ++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4401111..0a4e3ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.2.5 + +feat: add crown + ## 0.2.4 fix: wrong golden eggs (https://github.com/fetus-hina/stat.ink/issues/1167) diff --git a/src/constant.ts b/src/constant.ts index c46e3fa..f363bb0 100644 --- a/src/constant.ts +++ b/src/constant.ts @@ -1,7 +1,7 @@ import type { StatInkPostBody, VsHistoryDetail } from "./types.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 WEB_VIEW_VERSION = "2.0.0-bd36a652"; export const S3SI_LINK = "https://github.com/spacemeowx2/s3si.ts"; diff --git a/src/exporters/stat.ink.ts b/src/exporters/stat.ink.ts index 863dd08..ccf5632 100644 --- a/src/exporters/stat.ink.ts +++ b/src/exporters/stat.ink.ts @@ -398,6 +398,7 @@ export class StatInkExporter implements GameExporter { weapon: b64Number(player.weapon.id).toString(), inked: player.paint, gears: await this.mapGears(player), + crown: player.crown ? "yes" : "no", disconnected: player.result ? "no" : "yes", }; if (player.result) { diff --git a/src/types.ts b/src/types.ts index ec3550d..da47b60 100644 --- a/src/types.ts +++ b/src/types.ts @@ -156,6 +156,7 @@ export type VsPlayer = { special: number; } | null; paint: number; + crown: boolean; headGear: PlayerGear; clothingGear: PlayerGear; @@ -638,6 +639,7 @@ export type StatInkPlayer = { death?: number; special?: number; gears?: StatInkGears; + crown?: "yes" | "no"; disconnected: "yes" | "no"; };