#27 Gestion des rencontres

This commit is contained in:
2020-11-18 23:49:05 +01:00
parent eb42eaae2c
commit 2af8ff4ce8
5 changed files with 71 additions and 10 deletions

View File

@ -7,6 +7,7 @@ import { TMRUtility } from "./tmr-utility.js";
import { RdDRollTables } from "./rdd-rolltables.js";
import { RdDResolutionTable } from "./rdd-resolution-table.js";
/* -------------------------------------------- */
const tmrConstants = {
col1_y: 30,
col2_y: 55,
@ -16,6 +17,7 @@ const tmrConstants = {
gridy: 28
}
/* -------------------------------------------- */
export class RdDTMRDialog extends Dialog {
/* -------------------------------------------- */
@ -131,9 +133,14 @@ export class RdDTMRDialog extends Dialog {
/* -------------------------------------------- */
_tellToUser(message) {
ChatMessage.create({ title: "TMR", content: message, user: game.user._id, whisper: ChatMessage.getWhisperRecipients("GM") });
ChatMessage.create({ title: "TMR", content: message, user: game.user._id });
}
/* -------------------------------------------- */
_tellToGM(message) {
ChatMessage.create({ title: "TMR", content: message, user: game.user._id, whisper: ChatMessage.getWhisperRecipients("GM") });
}
/* -------------------------------------------- */
async manageRencontre(coordTMR, cellDescr) {
if (this.viewOnly) {
@ -360,6 +367,7 @@ export class RdDTMRDialog extends Dialog {
this._addDemiReve();
this.displayPreviousRencontres();
this.displaySortReserve();
});
if (this.viewOnly) {
@ -464,5 +472,6 @@ export class RdDTMRDialog extends Dialog {
this._setTokenPosition(token);
this.pixiApp.stage.addChild(token.sprite);
}
}