fix double adding stats bug
This commit is contained in:
parent
e2b750048d
commit
e4c9aff117
@ -170,11 +170,10 @@ Pokemon.forEach((mon) => {
|
||||
}
|
||||
return 0;
|
||||
});
|
||||
pokemon.pvp[league].push(...combinedStatsDistribution[league][combinedStats]);
|
||||
}
|
||||
});
|
||||
|
||||
fs.mkdir(outPath, {recursive: true}, () => {
|
||||
fs.mkdir(outPath, { recursive: true }, () => {
|
||||
fs.writeFile(outPath + mon.id + '.json', JSON.stringify(pokemon), (err) => {
|
||||
if (err) {
|
||||
/* tslint:disable-next-line:no-console */
|
||||
@ -202,7 +201,7 @@ familyOrder.forEach((familyId) => {
|
||||
});
|
||||
});
|
||||
|
||||
fs.mkdir(outPath, {recursive: true}, () => {
|
||||
fs.mkdir(outPath, { recursive: true }, () => {
|
||||
fs.writeFile(outPath + 'order.json', JSON.stringify(pokemonOrder), (err) => {
|
||||
if (err) {
|
||||
/* tslint:disable-next-line:no-console */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user