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";
const tableEffets = [

View File

@ -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)
}