From 26926ed344e57d9fd51864cbf80bdc40eec0bce2 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 10 Dec 2020 16:51:30 -0500 Subject: [PATCH] Pseudo Legendary Class --- package.json | 2 +- structures/pokemon/Pokemon.js | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index aca3c59f..7fbd5f5a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "123.5.1", + "version": "123.5.2", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": { diff --git a/structures/pokemon/Pokemon.js b/structures/pokemon/Pokemon.js index 0fd46fae..ff2dfe54 100644 --- a/structures/pokemon/Pokemon.js +++ b/structures/pokemon/Pokemon.js @@ -65,11 +65,20 @@ module.exports = class Pokemon { return this.stats.hp + this.stats.atk + this.stats.def + this.stats.sAtk + this.stats.sDef + this.stats.spd; } + get pseudo() { + if (!this.stats) return null; + if (this.legendary || this.mythical || this.baby || this.missingno) return false; + if (this.baseStatTotal !== 600) return false; + if (this.chain.length !== 3) return false; + return true; + } + get class() { if (this.legendary) return 'legendary'; if (this.mythical) return 'mythical'; if (this.baby) return 'baby'; if (this.missingno) return 'glitch'; + if (this.pseudo) return 'pseudo'; return 'standard'; }