Compare commits
No commits in common. "7aa98e1905a4e4c53711555ab16aa736c4c38ab0" and "51f9f80cc2fd13115eaa4d70ace28e1d6f686270" have entirely different histories.
7aa98e1905
...
51f9f80cc2
|
|
@ -1,7 +1,3 @@
|
||||||
## 0.3.1
|
|
||||||
|
|
||||||
feat: use ID for uniform(https://stat.ink/api-info/salmon-uniform3)
|
|
||||||
|
|
||||||
## 0.3.0
|
## 0.3.0
|
||||||
|
|
||||||
feat: clear state when season change
|
feat: clear state when season change
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@ import type { StatInkPostBody, VsHistoryDetail } from "./types.ts";
|
||||||
|
|
||||||
export const AGENT_NAME = "splatoon.catgirlin.space / s3si.ts";
|
export const AGENT_NAME = "splatoon.catgirlin.space / s3si.ts";
|
||||||
export const AGENT_VERSION = "1.0.0";
|
export const AGENT_VERSION = "1.0.0";
|
||||||
export const S3SI_VERSION = "0.3.1";
|
export const S3SI_VERSION = "0.3.0";
|
||||||
export const COMBINED_VERSION = `${AGENT_VERSION}/${S3SI_VERSION}`;
|
export const COMBINED_VERSION = `${AGENT_VERSION}/${S3SI_VERSION}`;
|
||||||
export const NSOAPP_VERSION = "2.5.0";
|
export const NSOAPP_VERSION = "2.4.0";
|
||||||
export const WEB_VIEW_VERSION = "3.0.0-2857bc50";
|
export const WEB_VIEW_VERSION = "3.0.0-2857bc50";
|
||||||
export const S3SI_LINK = "https://forgejo.catgirlin.space/catgirl/s3si.ts";
|
export const S3SI_LINK = "https://forgejo.catgirlin.space/catgirl/s3si.ts";
|
||||||
|
|
||||||
|
|
@ -28,6 +28,17 @@ export const SPLATNET3_STATINK_MAP: {
|
||||||
StatInkPostBody["fest_dragon"]
|
StatInkPostBody["fest_dragon"]
|
||||||
>;
|
>;
|
||||||
COOP_EVENT_MAP: Record<number, string | undefined>;
|
COOP_EVENT_MAP: Record<number, string | undefined>;
|
||||||
|
COOP_UNIFORM_MAP: Record<
|
||||||
|
number,
|
||||||
|
| "orange"
|
||||||
|
| "green"
|
||||||
|
| "yellow"
|
||||||
|
| "pink"
|
||||||
|
| "blue"
|
||||||
|
| "black"
|
||||||
|
| "white"
|
||||||
|
| undefined
|
||||||
|
>;
|
||||||
COOP_SPECIAL_MAP: Record<string, string | undefined>;
|
COOP_SPECIAL_MAP: Record<string, string | undefined>;
|
||||||
WATER_LEVEL_MAP: Record<0 | 1 | 2, "low" | "normal" | "high">;
|
WATER_LEVEL_MAP: Record<0 | 1 | 2, "low" | "normal" | "high">;
|
||||||
} = {
|
} = {
|
||||||
|
|
@ -62,6 +73,15 @@ export const SPLATNET3_STATINK_MAP: {
|
||||||
7: "giant_tornado",
|
7: "giant_tornado",
|
||||||
8: "mudmouth_eruption",
|
8: "mudmouth_eruption",
|
||||||
},
|
},
|
||||||
|
COOP_UNIFORM_MAP: {
|
||||||
|
1: "orange",
|
||||||
|
2: "green",
|
||||||
|
3: "yellow",
|
||||||
|
4: "pink",
|
||||||
|
5: "blue",
|
||||||
|
6: "black",
|
||||||
|
7: "white",
|
||||||
|
},
|
||||||
COOP_SPECIAL_MAP: {
|
COOP_SPECIAL_MAP: {
|
||||||
"bd327d1b64372dedefd32adb28bea62a5b6152d93aada5d9fc4f669a1955d6d4":
|
"bd327d1b64372dedefd32adb28bea62a5b6152d93aada5d9fc4f669a1955d6d4":
|
||||||
"nicedama",
|
"nicedama",
|
||||||
|
|
|
||||||
|
|
@ -682,7 +682,8 @@ export class StatInkExporter implements GameExporter {
|
||||||
name: player.name,
|
name: player.name,
|
||||||
number: player.nameId,
|
number: player.nameId,
|
||||||
splashtag_title: player.byname,
|
splashtag_title: player.byname,
|
||||||
uniform: b64Number(player.uniform.id).toString(),
|
uniform:
|
||||||
|
SPLATNET3_STATINK_MAP.COOP_UNIFORM_MAP[b64Number(player.uniform.id)],
|
||||||
special: specialWeapon ? await this.mapSpecial(specialWeapon) : undefined,
|
special: specialWeapon ? await this.mapSpecial(specialWeapon) : undefined,
|
||||||
weapons: await Promise.all(weapons.map((w) => this.mapCoopWeapon(w))),
|
weapons: await Promise.all(weapons.map((w) => this.mapCoopWeapon(w))),
|
||||||
golden_eggs: goldenDeliverCount,
|
golden_eggs: goldenDeliverCount,
|
||||||
|
|
|
||||||
10
src/types.ts
10
src/types.ts
|
|
@ -681,15 +681,7 @@ export type StatInkCoopPlayer = {
|
||||||
name: string;
|
name: string;
|
||||||
number: string;
|
number: string;
|
||||||
splashtag_title: string | null;
|
splashtag_title: string | null;
|
||||||
uniform?:
|
uniform?: "orange" | "green" | "yellow" | "pink" | "blue" | "black" | "white";
|
||||||
| string
|
|
||||||
| "orange"
|
|
||||||
| "green"
|
|
||||||
| "yellow"
|
|
||||||
| "pink"
|
|
||||||
| "blue"
|
|
||||||
| "black"
|
|
||||||
| "white";
|
|
||||||
special?: string;
|
special?: string;
|
||||||
weapons: (string | null)[];
|
weapons: (string | null)[];
|
||||||
golden_eggs: number;
|
golden_eggs: number;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue