Remove rawMoveset property

This commit is contained in:
Dragon Fire
2021-03-27 21:00:39 -04:00
parent 632308c6c1
commit 165f0afb32
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -55,7 +55,6 @@ module.exports = class Pokemon {
this.encounters = data.missingno ? data.encounters : null;
this.height = data.missingno ? data.height : null;
this.weight = data.missingno ? data.weight : null;
this.rawMoveSet = null;
this.moveSet = data.missingno ? data.moveSet : [];
this.moveSetVersion = data.missingno ? data.moveSetVersion : null;
this.trainerCardID = null;
@@ -190,7 +189,6 @@ module.exports = class Pokemon {
}
this.gameDataFetching = true;
await this.fetchDefaultVariety();
await this.fetchMoves(this.rawMoveSet);
await this.fetchHeldItemNames();
await this.fetchOtherVarieties();
await this.fetchChain();
@@ -224,7 +222,7 @@ module.exports = class Pokemon {
this.height = defaultBody.height * 3.94;
this.weight = defaultBody.weight * 0.2205;
this.encountersURL = defaultBody.location_area_encounters;
this.rawMoveSet = defaultBody.moves;
await this.fetchMoves(defaultBody.moves);
await this.fetchHeldItems(defaultBody.held_items);
return this;
}