Déplacements des effets de rencontre

classe placée dans le dossier "tmr"
This commit is contained in:
Vincent Vandemeulebrouck 2023-02-03 02:23:28 +01:00
parent 7a0132cf8d
commit dc3ceb1732
2 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
import { EffetsRencontre } from "../effets-rencontres.js"; import { EffetsRencontre } from "../tmr/effets-rencontres.js";
import { RdDItem } from "../item.js"; import { RdDItem } from "../item.js";
const tableEffets = [ const tableEffets = [

View File

@ -1,7 +1,7 @@
import { ChatUtility } from "./chat-utility.js"; import { ChatUtility } from "../chat-utility.js";
import { Poetique } from "./poetique.js"; import { Poetique } from "../poetique.js";
import { RdDDice } from "./rdd-dice.js"; import { RdDDice } from "../rdd-dice.js";
import { TMRUtility } from "./tmr-utility.js"; import { TMRUtility } from "../tmr-utility.js";
export class EffetsRencontre { export class EffetsRencontre {
@ -87,7 +87,7 @@ export class EffetsRencontre {
await EffetsRencontre.$reinsertion(dialog, context.actor, it => true); await EffetsRencontre.$reinsertion(dialog, context.actor, it => true);
} }
} }
static deplacement_aleatoire = async (dialog, context) => { static deplacement_aleatoire = async (dialog, context) => {
const oldCoord = context.actor.system.reve.tmrpos.coord; const oldCoord = context.actor.system.reve.tmrpos.coord;
const newTmr = await TMRUtility.deplaceTMRAleatoire(context.actor, oldCoord); const newTmr = await TMRUtility.deplaceTMRAleatoire(context.actor, oldCoord);
@ -113,13 +113,13 @@ export class EffetsRencontre {
if (context.rolled.isETotal) { if (context.rolled.isETotal) {
context.queues.push(await context.actor.ajouterQueue()); context.queues.push(await context.actor.ajouterQueue());
} }
ChatMessage.create({ ChatMessage.create({
whisper: ChatUtility.getWhisperRecipientsAndGMs(this.name), whisper: ChatUtility.getWhisperRecipientsAndGMs(this.name),
content: await renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/chat-resultat-reve-de-dragon.html`, context) content: await renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/chat-resultat-reve-de-dragon.html`, context)
}); });
} }
static experience_particuliere = async (dialog, context) => { static experience_particuliere = async (dialog, context) => {
await context.actor.appliquerAjoutExperience(context) await context.actor.appliquerAjoutExperience(context)
} }