renommer getReveActuel

This commit is contained in:
2020-11-16 04:01:36 +01:00
parent fd107db757
commit bddad92f5c
2 changed files with 9 additions and 8 deletions

View File

@ -103,7 +103,7 @@ export class RdDTMRDialog extends Dialog {
this.updatePreviousRencontres();
const draconic = this.actor.getBestDraconic();
const carac = this.actor.getCurrentReve();
const carac = this.actor.getReveActuel();
// TODO: ajouter l'état général?
const etatGeneral = this.actor.data.data.compteurs.etat.value
const difficulte = draconic.data.niveau - this.currentRencontre.force;
@ -149,6 +149,7 @@ export class RdDTMRDialog extends Dialog {
if (rencontre) { // Manages it
console.log("manageRencontre", rencontre)
this.currentRencontre = duplicate(rencontre);
let dialog = new Dialog({
title: "Rencontre en TMR!",
content: "Vous recontrez un " + rencontre.name + " de force " + rencontre.force + "<br>",
@ -205,7 +206,7 @@ export class RdDTMRDialog extends Dialog {
if (cellDescr.type == "lac" || cellDescr.type == "fleuve" || cellDescr.type == "marais") {
let draconic = this.actor.getBestDraconic();
let carac = this.actor.getCurrentReve();
let carac = this.actor.getReveActuel();
// TODO: ajouter l'état général?
const etatGeneral = this.actor.data.data.compteurs.etat.value
let difficulte = draconic.data.niveau - 7;