mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-20 22:18:18 -05:00
Remove Pokeball from team data
This commit is contained in:
parent
9540ab62af
commit
93ad70d7dd
13
tools.js
13
tools.js
|
|
@ -717,13 +717,6 @@ module.exports = (function () {
|
|||
buf += '|'
|
||||
}
|
||||
|
||||
// Pokeball
|
||||
if (set.pokeball !== undefined && set.pokeball !== 'pokeball') {
|
||||
buf += '|'+set.pokeball;
|
||||
} else {
|
||||
buf += '|';
|
||||
}
|
||||
|
||||
// happiness
|
||||
if (set.happiness !== undefined && set.happiness !== 255) {
|
||||
buf += '|'+set.happiness;
|
||||
|
|
@ -834,12 +827,6 @@ module.exports = (function () {
|
|||
if (i !== j) set.level = parseInt(buf.substring(i, j), 10);
|
||||
i = j+1;
|
||||
|
||||
// Pokeball
|
||||
j = buf.indexOf('|', i);
|
||||
if (j < 0) return;
|
||||
if (i !== j) set.pokeball = buf.substring(i, j);
|
||||
i = j+1;
|
||||
|
||||
// happiness
|
||||
j = buf.indexOf(']', i);
|
||||
if (j < 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user