Skip to content

Commit

Permalink
handle tera type section in moveset reports
Browse files Browse the repository at this point in the history
  • Loading branch information
scheibo committed Sep 2, 2024
1 parent e59403b commit 0b814a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion stats/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 3 additions & 3 deletions stats/src/display.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0b814a3

Please sign in to comment.