mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 14:04:38 +02:00
Pseudo Legendary Class
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "123.5.1",
|
"version": "123.5.2",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -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;
|
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() {
|
get class() {
|
||||||
if (this.legendary) return 'legendary';
|
if (this.legendary) return 'legendary';
|
||||||
if (this.mythical) return 'mythical';
|
if (this.mythical) return 'mythical';
|
||||||
if (this.baby) return 'baby';
|
if (this.baby) return 'baby';
|
||||||
if (this.missingno) return 'glitch';
|
if (this.missingno) return 'glitch';
|
||||||
|
if (this.pseudo) return 'pseudo';
|
||||||
return 'standard';
|
return 'standard';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user