Ajout commande idée fixe/désir lancinant
This commit is contained in:
		| @@ -24,6 +24,8 @@ export class RdDCommands { | ||||
|       rddCommands.registerCommand({ path: ["/aide"], func: (content, msg, params) => rddCommands.help(msg), descr: "Affiche l'aide pour toutes les commandes" }); | ||||
|       rddCommands.registerCommand({ path: ["/help"], func: (content, msg, params) => rddCommands.help(msg), descr: "Affiche l'aide pour toutes les commandes" }); | ||||
|       rddCommands.registerCommand({ path: ["/table", "queues"], func: (content, msg, params) => RdDRollTables.getQueue(true), descr: "Tire une Queue de Dragon" }); | ||||
|       rddCommands.registerCommand({ path: ["/table", "ideefixe"], func: (content, msg, params) => RdDRollTables.getIdeeFixe(true), descr: "Tire une Idée fixe" }); | ||||
|       rddCommands.registerCommand({ path: ["/table", "desir"], func: (content, msg, params) => RdDRollTables.getDesirLancinant(true), descr: "Tire un Désir Lancinant" }); | ||||
|       rddCommands.registerCommand({ path: ["/table", "ombre"], func: (content, msg, params) => RdDRollTables.getOmbre(true), descr: "Tire une Ombre de Dragon" }); | ||||
|       rddCommands.registerCommand({ path: ["/table", "tetehr"], func: (content, msg, params) => RdDRollTables.getTeteHR(true), descr: "Tire une Tête de Dragon pour Hauts Revants" }); | ||||
|       rddCommands.registerCommand({ path: ["/table", "tete"], func: (content, msg, params) => RdDRollTables.getTete(true), descr: "Tire une Tête de Dragon" }); | ||||
|   | ||||
| @@ -48,14 +48,22 @@ export class RdDRollTables { | ||||
|   static async getQueue(toChat = false) { | ||||
|     let queue = await RdDRollTables.drawItemFromRollTable("Queues de dragon", toChat); | ||||
|     if (queue.name.toLowerCase().includes('lancinant') ) { | ||||
|       queue = await RdDRollTables.drawItemFromRollTable("Désirs lancinants", toChat); | ||||
|       return await RdDRollTables.getDesirLancinant(toChat); | ||||
|     } | ||||
|     if (queue.name.toLowerCase().includes('fixe') ) { | ||||
|       queue =  await RdDRollTables.drawItemFromRollTable("Idées fixes", toChat); | ||||
|       return await RdDRollTables.getIdeeFixe(toChat); | ||||
|     } | ||||
|     return queue; | ||||
|   } | ||||
|  | ||||
|   static async getDesirLancinant(toChat = false) { | ||||
|     return await RdDRollTables.drawItemFromRollTable("Désirs lancinants", toChat); | ||||
|   } | ||||
|    | ||||
|   static async getIdeeFixe(toChat = false) { | ||||
|     return await RdDRollTables.drawItemFromRollTable("Idées fixes", toChat); | ||||
|   } | ||||
|  | ||||
|   /* -------------------------------------------- */ | ||||
|   static async getTeteHR(toChat = false) { | ||||
|     return await RdDRollTables.drawItemFromRollTable("Têtes de Dragon pour haut-rêvants", toChat); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user