mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Fix generation
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user