diff --git a/stats/package.json b/stats/package.json index 4afead3..cb931f9 100644 --- a/stats/package.json +++ b/stats/package.json @@ -1,6 +1,6 @@ { "name": "@pkmn/stats", - "version": "0.2.19", + "version": "0.2.20", "description": "Logic for processing usage stats from Pokémon Showdown battle simulator logs", "repository": "github:pkmn/stats", "license": "MIT", diff --git a/stats/src/display.ts b/stats/src/display.ts index df514e3..641a885 100644 --- a/stats/src/display.ts +++ b/stats/src/display.ts @@ -442,13 +442,13 @@ function partialParseMovesetReport(report: string) { i = 0; continue; } - if (section % 9 === 1) { + if (section % 10 === 1) { species = line.slice(3, line.indexOf(' ')); } - if (section % 9 === 2 && i === 2) { + if (section % 10 === 2 && i === 2) { movesets[species] = {weight: Number(line.slice(17, line.indexOf(' ', 17))), outcomes: {}}; } - if (section % 9 === 8 && i >= 2) { + if (section % 10 === 9 && i >= 2) { if (i % 2 === 0) { s = SPECIES.exec(line)![1]; } else {