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

View File

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