fix: isMySelf is removed

main
spacemeowx2 2022-11-30 15:37:23 +08:00 committed by imspace
parent 0c916cc9e8
commit a53dc9985f
2 changed files with 4 additions and 5 deletions

View File

@ -602,7 +602,7 @@ export class StatInkExporter implements GameExporter {
return Promise.resolve(special); return Promise.resolve(special);
} }
async mapCoopPlayer({ async mapCoopPlayer(isMyself: boolean, {
player, player,
weapons, weapons,
specialWeapon, specialWeapon,
@ -614,7 +614,7 @@ export class StatInkExporter implements GameExporter {
rescuedCount, rescuedCount,
}: CoopHistoryPlayerResult): Promise<StatInkCoopPlayer> { }: CoopHistoryPlayerResult): Promise<StatInkCoopPlayer> {
return { return {
me: player.isMyself ? "yes" : "no", me: isMyself ? "yes" : "no",
name: player.name, name: player.name,
number: player.nameId, number: player.nameId,
splashtag_title: player.byname, splashtag_title: player.byname,
@ -760,8 +760,8 @@ export class StatInkExporter implements GameExporter {
job_bonus: detail.jobBonus, job_bonus: detail.jobBonus,
waves: await Promise.all(detail.waveResults.map((w) => this.mapWave(w))), waves: await Promise.all(detail.waveResults.map((w) => this.mapWave(w))),
players: await Promise.all([ players: await Promise.all([
this.mapCoopPlayer(myResult), this.mapCoopPlayer(true, myResult),
...memberResults.map((p) => this.mapCoopPlayer(p)), ...memberResults.map((p) => this.mapCoopPlayer(false, p)),
]), ]),
bosses, bosses,
agent: AGENT_NAME, agent: AGENT_NAME,

View File

@ -219,7 +219,6 @@ export type CoopHistoryPlayerResult = {
name: string; name: string;
id: string; id: string;
}; };
isMyself: boolean;
}; };
weapons: { name: string; image: Image | null }[]; weapons: { name: string; image: Image | null }[];
specialWeapon: null | { specialWeapon: null | {