This commit is contained in:
Dragon Fire
2021-01-31 10:02:44 -05:00
parent 08f9a62608
commit adfea7cc56
3 changed files with 12 additions and 0 deletions
+4
View File
@@ -14,4 +14,8 @@ module.exports = class Ability {
? data.flavor_text_entries.find(entry => entry.language.name === 'en').flavor_text ? data.flavor_text_entries.find(entry => entry.language.name === 'en').flavor_text
: null; : null;
} }
get slug() {
return this.store.makeSlug(this.name);
}
}; };
+4
View File
@@ -16,4 +16,8 @@ module.exports = class Item {
this.spriteURL = data.sprites.default || null; this.spriteURL = data.sprites.default || null;
this.cost = data.cost || 0; this.cost = data.cost || 0;
} }
get slug() {
return this.store.makeSlug(this.name);
}
}; };
+4
View File
@@ -26,4 +26,8 @@ module.exports = class Move {
return this.description return this.description
.replace(/\$effect_chance/gi, this.effectChance); .replace(/\$effect_chance/gi, this.effectChance);
} }
get slug() {
return this.store.makeSlug(this.name);
}
}; };