Recherche de potion par catégorie

This commit is contained in:
2023-01-20 23:46:37 +01:00
parent 064472dc11
commit 254709f55b
2 changed files with 8 additions and 0 deletions

View File

@ -260,6 +260,13 @@ export class RdDItem extends Item {
getUtilisation() {
switch (this.type) {
case 'potion':
switch (this.system.categorie) {
case 'Alchimie': case 'AlchimieEnchante': case 'AlchimieAutre': return 'alchimie'
case 'Cuisine': return 'cuisine'
case 'Remede': case 'Repos': case 'ReposEnchante': case 'Soin': case 'SoinEnchante': return 'soins'
}
return '';
case 'nourritureboisson': return 'cuisine';
case 'herbe': case 'faune': case 'ingredient': case 'plante':
switch (this.system.categorie) {