fix gen
This commit is contained in:
parent
c6249b1b9b
commit
32e142b8cb
3
calc.js
3
calc.js
@ -8,6 +8,8 @@ import calc, {
|
|||||||
import assert from "assert";
|
import assert from "assert";
|
||||||
import chev, { Lexer } from "chevrotain";
|
import chev, { Lexer } from "chevrotain";
|
||||||
|
|
||||||
|
const gen = Generations.get(9);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a lexer.
|
* Creates a lexer.
|
||||||
*
|
*
|
||||||
@ -266,7 +268,6 @@ function parseAndCalculate(line) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const gen = Generations.get(8);
|
|
||||||
return calculate(
|
return calculate(
|
||||||
gen,
|
gen,
|
||||||
new Pokemon(gen, attacker, attackerOpts),
|
new Pokemon(gen, attacker, attackerOpts),
|
||||||
|
Loading…
Reference in New Issue
Block a user