feat: add species and crown_type
https://github.com/fetus-hina/stat.ink/issues/1227splashcat-exporter
parent
5e36f6c33d
commit
0cfe618f2f
|
|
@ -393,6 +393,8 @@ export class StatInkExporter implements GameExporter {
|
||||||
inked: player.paint,
|
inked: player.paint,
|
||||||
gears: await this.mapGears(player),
|
gears: await this.mapGears(player),
|
||||||
crown: player.crown ? "yes" : "no",
|
crown: player.crown ? "yes" : "no",
|
||||||
|
crown_type: undefined,
|
||||||
|
species: player.species === "INKLING" ? "inkling" : "octoling",
|
||||||
disconnected: player.result ? "no" : "yes",
|
disconnected: player.result ? "no" : "yes",
|
||||||
};
|
};
|
||||||
if (player.result) {
|
if (player.result) {
|
||||||
|
|
@ -403,6 +405,13 @@ export class StatInkExporter implements GameExporter {
|
||||||
result.signal = player.result.noroshiTry ?? undefined;
|
result.signal = player.result.noroshiTry ?? undefined;
|
||||||
result.special = player.result.special;
|
result.special = player.result.special;
|
||||||
}
|
}
|
||||||
|
if (player.crown) {
|
||||||
|
result.crown_type = "x";
|
||||||
|
} else if (player.festDragonCert === "DRAGON") {
|
||||||
|
result.crown_type = "100x";
|
||||||
|
} else if (player.festDragonCert === "DOUBLE_DRAGON") {
|
||||||
|
result.crown_type = "333x";
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
async mapBattle(
|
async mapBattle(
|
||||||
|
|
@ -699,6 +708,7 @@ export class StatInkExporter implements GameExporter {
|
||||||
rescued: rescuedCount,
|
rescued: rescuedCount,
|
||||||
defeat_boss: defeatEnemyCount,
|
defeat_boss: defeatEnemyCount,
|
||||||
disconnected: disconnected ? "yes" : "no",
|
disconnected: disconnected ? "yes" : "no",
|
||||||
|
species: player.species === "INKLING" ? "inkling" : "octoling",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
mapKing(id?: string) {
|
mapKing(id?: string) {
|
||||||
|
|
|
||||||
|
|
@ -145,6 +145,7 @@ export type VsPlayer = {
|
||||||
} | null;
|
} | null;
|
||||||
paint: number;
|
paint: number;
|
||||||
crown: boolean;
|
crown: boolean;
|
||||||
|
festDragonCert: "NONE" | "DRAGON" | "DOUBLE_DRAGON";
|
||||||
|
|
||||||
headGear: PlayerGear;
|
headGear: PlayerGear;
|
||||||
clothingGear: PlayerGear;
|
clothingGear: PlayerGear;
|
||||||
|
|
@ -270,6 +271,8 @@ export type CoopHistoryPlayerResult = {
|
||||||
name: string;
|
name: string;
|
||||||
id: string;
|
id: string;
|
||||||
};
|
};
|
||||||
|
isMyself: boolean;
|
||||||
|
species: "INKLING" | "OCTOLING";
|
||||||
};
|
};
|
||||||
weapons: { name: string; image: Image | null }[];
|
weapons: { name: string; image: Image | null }[];
|
||||||
specialWeapon: null | {
|
specialWeapon: null | {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue