Fix generation

This commit is contained in:
Dragon Fire
2024-03-20 19:30:04 -04:00
parent 03b9aedc6f
commit 0aab5098d7
+2 -1
View File
@@ -82,7 +82,8 @@ module.exports = class Pokemon {
}
get generation() {
if (this.id > 898) return null;
if (this.id > 1025) return null;
if (this.id >= 906) return 9;
if (this.id >= 810) return 8;
if (this.id >= 722) return 7;
if (this.id >= 650) return 6;