From 45f097b81980e14491c26ebad49c5711059af0f7 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Thu, 17 Dec 2020 23:06:08 +0100 Subject: [PATCH] #71 : Idees fixes et Desirs lancinants ajoutes, avec table de tirage --- module/rdd-rolltables.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/module/rdd-rolltables.js b/module/rdd-rolltables.js index 480b4f13..0a55b568 100644 --- a/module/rdd-rolltables.js +++ b/module/rdd-rolltables.js @@ -41,7 +41,14 @@ export class RdDRollTables { /* -------------------------------------------- */ static async getQueue(toChat = true) { - return await RdDRollTables.drawItemFromRollTable("Queues de dragon", toChat); + let queue = await RdDRollTables.drawItemFromRollTable("Queues de dragon", toChat); + if (queue.name.toLowerCase().includes('lancinant') ) { + queue = await RdDRollTables.drawItemFromRollTable("Désirs lancinants", toChat); + } + if (queue.name.toLowerCase().includes('fixe') ) { + queue = await RdDRollTables.drawItemFromRollTable("Idées fixes", toChat); + } + return queue; } /* -------------------------------------------- */