Pseudo Legendary Class

This commit is contained in:
Dragon Fire
2020-12-10 16:51:30 -05:00
parent 40557e1def
commit 26926ed344
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "123.5.1",
"version": "123.5.2",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {
+9
View File
@@ -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';
}