Gestion des désir lancinant/idée fixe

Ajout d'un flag pour les identifier.
This commit is contained in:
Vincent Vandemeulebrouck
2022-11-26 16:23:53 +01:00
parent 31eabbce23
commit 029bece877
9 changed files with 131 additions and 84 deletions

View File

@ -56,12 +56,12 @@ export class RdDRollTables {
static async getDesirLancinant(toChat = false) {
return await RdDRollTables.listOrRoll('queues-de-dragon', 'Item', 'queue', toChat, it => it.system.frequence,
it => Grammar.toLowerCaseNoAccent(it.name).includes('desir lancinant') /* it.system.lancinant */);
it => it.system.categorie == 'lancinant' );
}
static async getIdeeFixe(toChat = false) {
return await RdDRollTables.listOrRoll('queues-de-dragon', 'Item', 'queue', toChat, it => it.system.frequence,
it => Grammar.toLowerCaseNoAccent(it.name).includes('idee fixe') /* it.system.ideefixe */);
it => it.system.categorie == 'ideefixe' );
}
/* -------------------------------------------- */