From a873ff92d070a79e310a250d36eee969c4a5622b Mon Sep 17 00:00:00 2001 From: sladecraven Date: Tue, 21 Jul 2020 23:55:24 +0200 Subject: [PATCH] Add new Compendium --- module/actor.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/module/actor.js b/module/actor.js index 6030028e..042d17ab 100644 --- a/module/actor.js +++ b/module/actor.js @@ -470,6 +470,12 @@ export class RdDActor extends Actor { /* -------------------------------------------- */ async rollSort( sortID ) { + if (this.data.data.carac.reve.value <= 1 ) { + ChatMessage.create( { title: "Montée impossible !", content: "Vous n'avez plus assez de Points de Reve pour monter dans les Terres Médianes", + whisper: ChatMessage.getWhisperRecipients(game.user.name) } ); + return; + } + console.log("Loading TMR template!!!"); let data = { fatigueHTML:"" + RdDUtility.makeHTMLfatigueMatrix( this.data.data.sante.fatigue.value, this.data.data.sante.endurance.max ).html() + "
",