34 Jet de rêve pour entités

gestion du jet de rêve pour s'accorder aux entités de cauchemar
This commit is contained in:
2020-12-01 17:36:13 +01:00
parent 82b0ec1015
commit cd434ae5dd
6 changed files with 159 additions and 42 deletions

View File

@ -9,7 +9,7 @@ import { RdDResolutionTable } from "./rdd-resolution-table.js";
export class RdDRollDialog extends Dialog {
/* -------------------------------------------- */
constructor(mode, html, rollData, actor) {
constructor(mode, html, rollData, actor, attacker = undefined) {
let myButtons
if (mode == "sort") {
@ -47,12 +47,13 @@ export class RdDRollDialog extends Dialog {
this.mode = mode
this.rollData = rollData
this.actor = actor
this.attacker = attacker
}
/* -------------------------------------------- */
performRollSort(html, isSortReserve = false) {
this.rollData.isSortReserve = isSortReserve;
this.actor.performRoll(this.rollData);
this.actor.performRoll(this.rollData, attacker);
}
/* -------------------------------------------- */