From 165f0afb3277c34f94d8acc37f53a744e83d42f3 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 27 Mar 2021 21:00:39 -0400 Subject: [PATCH] Remove rawMoveset property --- package.json | 2 +- structures/pokemon/Pokemon.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 1d019c3f..5b5189df 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "134.3.1", + "version": "134.3.2", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": { diff --git a/structures/pokemon/Pokemon.js b/structures/pokemon/Pokemon.js index 92a7b56c..58d38670 100644 --- a/structures/pokemon/Pokemon.js +++ b/structures/pokemon/Pokemon.js @@ -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; }