diff --git a/structures/pokemon/Ability.js b/structures/pokemon/Ability.js index 2e0c4786..fe588bd8 100644 --- a/structures/pokemon/Ability.js +++ b/structures/pokemon/Ability.js @@ -14,4 +14,8 @@ module.exports = class Ability { ? data.flavor_text_entries.find(entry => entry.language.name === 'en').flavor_text : null; } + + get slug() { + return this.store.makeSlug(this.name); + } }; diff --git a/structures/pokemon/Item.js b/structures/pokemon/Item.js index 69c9220e..69a371b2 100644 --- a/structures/pokemon/Item.js +++ b/structures/pokemon/Item.js @@ -16,4 +16,8 @@ module.exports = class Item { this.spriteURL = data.sprites.default || null; this.cost = data.cost || 0; } + + get slug() { + return this.store.makeSlug(this.name); + } }; diff --git a/structures/pokemon/Move.js b/structures/pokemon/Move.js index 2e21d7ad..63ef5c27 100644 --- a/structures/pokemon/Move.js +++ b/structures/pokemon/Move.js @@ -26,4 +26,8 @@ module.exports = class Move { return this.description .replace(/\$effect_chance/gi, this.effectChance); } + + get slug() { + return this.store.makeSlug(this.name); + } };