From db18f36d623830a6eeca8e7ecc9a4b3f837ed8e3 Mon Sep 17 00:00:00 2001 From: spacemeowx2 Date: Wed, 26 Oct 2022 17:05:16 +0800 Subject: [PATCH] fix: missing DRAW in judgement. fix #8 --- src/constant.ts | 1 + src/types.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/constant.ts b/src/constant.ts index 85ce464..86c291d 100644 --- a/src/constant.ts +++ b/src/constant.ts @@ -38,6 +38,7 @@ export const SPLATNET3_STATINK_MAP: { LOSE: "lose", DEEMED_LOSE: "lose", EXEMPTED_LOSE: "exempted_lose", + DRAW: "draw", }, DRAGON: { NORMAL: undefined, diff --git a/src/types.ts b/src/types.ts index 57d5073..505929a 100644 --- a/src/types.ts +++ b/src/types.ts @@ -44,7 +44,7 @@ export type BattleListNode = { _bid: string; id: string; udemae: string; - judgement: "LOSE" | "WIN" | "DEEMED_LOSE" | "EXEMPTED_LOSE"; + judgement: "LOSE" | "WIN" | "DEEMED_LOSE" | "EXEMPTED_LOSE" | "DRAW"; }; export type CoopListNode = { id: string; @@ -144,7 +144,7 @@ export type VsHistoryDetail = { myTeam: VsTeam; otherTeams: VsTeam[]; - judgement: "LOSE" | "WIN" | "DEEMED_LOSE" | "EXEMPTED_LOSE"; + judgement: "LOSE" | "WIN" | "DEEMED_LOSE" | "EXEMPTED_LOSE" | "DRAW"; knockout: null | undefined | "NEITHER" | "WIN" | "LOSE"; awards: { name: string; rank: string }[]; duration: number;