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