Add new Compendium

This commit is contained in:
sladecraven 2020-07-21 23:55:24 +02:00
parent e17e01f7e8
commit a873ff92d0

View File

@ -470,6 +470,12 @@ export class RdDActor extends Actor {
/* -------------------------------------------- */ /* -------------------------------------------- */
async rollSort( sortID ) 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!!!"); console.log("Loading TMR template!!!");
let data = { let data = {
fatigueHTML:"<table class='table-fatigue'>" + RdDUtility.makeHTMLfatigueMatrix( this.data.data.sante.fatigue.value, this.data.data.sante.endurance.max ).html() + "</table>", fatigueHTML:"<table class='table-fatigue'>" + RdDUtility.makeHTMLfatigueMatrix( this.data.data.sante.fatigue.value, this.data.data.sante.endurance.max ).html() + "</table>",