Déplacements des effets de rencontre
classe placée dans le dossier "tmr"
This commit is contained in:
parent
7a0132cf8d
commit
dc3ceb1732
@ -1,4 +1,4 @@
|
||||
import { EffetsRencontre } from "../effets-rencontres.js";
|
||||
import { EffetsRencontre } from "../tmr/effets-rencontres.js";
|
||||
import { RdDItem } from "../item.js";
|
||||
|
||||
const tableEffets = [
|
||||
|
@ -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)
|
||||
}
|
Loading…
Reference in New Issue
Block a user