mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-04-25 16:14:01 -05:00
Build: remove sugar dependency
This commit is contained in:
parent
1e1b6952ae
commit
a62e85b822
|
|
@ -16,8 +16,6 @@ const fs = require('fs');
|
|||
const crypto = require('crypto');
|
||||
const exec = require('child_process').exec;
|
||||
|
||||
require('sugar');
|
||||
|
||||
const thisFile = __filename;
|
||||
const thisDir = __dirname;
|
||||
const rootDir = path.resolve(thisDir, '..');
|
||||
|
|
@ -160,14 +158,14 @@ function updateLearnsets(callback) {
|
|||
}
|
||||
|
||||
const buf = [];
|
||||
const pokemonList = Object.values(Pokedex).sort(function (a, b) {
|
||||
const pokemonList = Object.keys(Pokedex).map(speciesId => Pokedex[speciesId]).sort(function (a, b) {
|
||||
// Missingno. goes first (zeroth); afterwards, CAP in descending dex order (increasingly negative)
|
||||
// Finally, standard Pokémon in ascending dex order
|
||||
if (a.num <= 0 && b.num > 0) return -1;
|
||||
if (b.num <= 0 && a.num > 0) return 1;
|
||||
if (a.num <= 0 && b.num <= 0) return b.num - a.num;
|
||||
return a.num - b.num;
|
||||
}).map('species').map(toId);
|
||||
}).map(template => toId(template.species));
|
||||
|
||||
for (let i = 0, len = pokemonList.length; i < len; i++) {
|
||||
const entry = newLearnsetsG6[pokemonList[i]];
|
||||
|
|
|
|||
|
|
@ -14,8 +14,7 @@
|
|||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"eslint": "~1.10.3",
|
||||
"sugar": "1.4.1"
|
||||
"eslint": "~1.10.3"
|
||||
},
|
||||
"private": true
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user