fix: missing ink_saver_main in gears

main
spacemeowx2 2022-11-05 13:09:09 +08:00
parent 35b47d79c2
commit 2fde581f08
1 changed files with 3 additions and 1 deletions

View File

@ -195,7 +195,7 @@ export class StatInkExporter implements GameExporter {
const amap = await getAbility(); const amap = await getAbility();
const mapAbility = ({ name }: { name: string }): string | null => { const mapAbility = ({ name }: { name: string }): string | null => {
const abilityIdx = this.nameDict.gearPower[name]; const abilityIdx = this.nameDict.gearPower[name];
if (!abilityIdx) { if (abilityIdx === undefined) {
return null; return null;
} }
const result = amap[abilityIdx]; const result = amap[abilityIdx];
@ -374,6 +374,8 @@ export class StatInkExporter implements GameExporter {
} }
} }
Deno.writeTextFileSync("debug1.json", JSON.stringify(result, null, 2));
return result; return result;
} }
} }