diff --git a/module/item.js b/module/item.js index 810454c0..11cb6614 100644 --- a/module/item.js +++ b/module/item.js @@ -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) { diff --git a/templates/enum-categorie-potion.html b/templates/enum-categorie-potion.html index b3e65823..cf7325ef 100644 --- a/templates/enum-categorie-potion.html +++ b/templates/enum-categorie-potion.html @@ -2,6 +2,7 @@ +