Remove Pokeball from team data

This commit is contained in:
V4Victini 2014-03-28 00:54:56 -04:00
parent 9540ab62af
commit 93ad70d7dd

View File

@ -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) {