From 254709f55b7fbb5c8c44f3f0b5b5a6e3ed75606f Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Fri, 20 Jan 2023 23:46:37 +0100 Subject: [PATCH] =?UTF-8?q?Recherche=20de=20potion=20par=20cat=C3=A9gorie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/item.js | 7 +++++++ templates/enum-categorie-potion.html | 1 + 2 files changed, 8 insertions(+) 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 @@ +