From dc3ceb173263329a73d1c5eb06ef274e94e583fd Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Fri, 3 Feb 2023 02:23:28 +0100 Subject: [PATCH] =?UTF-8?q?D=C3=A9placements=20des=20effets=20de=20rencont?= =?UTF-8?q?re?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit classe placée dans le dossier "tmr" --- module/item/rencontre.js | 2 +- module/{ => tmr}/effets-rencontres.js | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) rename module/{ => tmr}/effets-rencontres.js (97%) diff --git a/module/item/rencontre.js b/module/item/rencontre.js index bcd0ac7b..0ef89063 100644 --- a/module/item/rencontre.js +++ b/module/item/rencontre.js @@ -1,4 +1,4 @@ -import { EffetsRencontre } from "../effets-rencontres.js"; +import { EffetsRencontre } from "../tmr/effets-rencontres.js"; import { RdDItem } from "../item.js"; const tableEffets = [ diff --git a/module/effets-rencontres.js b/module/tmr/effets-rencontres.js similarity index 97% rename from module/effets-rencontres.js rename to module/tmr/effets-rencontres.js index 37599d15..e8dee148 100644 --- a/module/effets-rencontres.js +++ b/module/tmr/effets-rencontres.js @@ -1,7 +1,7 @@ -import { ChatUtility } from "./chat-utility.js"; -import { Poetique } from "./poetique.js"; -import { RdDDice } from "./rdd-dice.js"; -import { TMRUtility } from "./tmr-utility.js"; +import { ChatUtility } from "../chat-utility.js"; +import { Poetique } from "../poetique.js"; +import { RdDDice } from "../rdd-dice.js"; +import { TMRUtility } from "../tmr-utility.js"; export class EffetsRencontre { @@ -87,7 +87,7 @@ export class EffetsRencontre { await EffetsRencontre.$reinsertion(dialog, context.actor, it => true); } } - + static deplacement_aleatoire = async (dialog, context) => { const oldCoord = context.actor.system.reve.tmrpos.coord; const newTmr = await TMRUtility.deplaceTMRAleatoire(context.actor, oldCoord); @@ -113,13 +113,13 @@ export class EffetsRencontre { if (context.rolled.isETotal) { context.queues.push(await context.actor.ajouterQueue()); } - + ChatMessage.create({ whisper: ChatUtility.getWhisperRecipientsAndGMs(this.name), content: await renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/chat-resultat-reve-de-dragon.html`, context) }); } - + static experience_particuliere = async (dialog, context) => { await context.actor.appliquerAjoutExperience(context) }