Modif sur gestion equipement
This commit is contained in:
@ -130,7 +130,7 @@ export class RdDActor extends Actor {
|
||||
let rolled = await RdDResolutionTable.roll(rollData.caracValue, rollData.finalLevel);
|
||||
//rolled.isPart = true; // Pour tester le particulières
|
||||
rollData.rolled = rolled; // garder le résultat
|
||||
console.log("performRoll", rollData, rolled)
|
||||
//console.log("performRoll", rollData, rolled)
|
||||
if ( !rollData.attackerRoll) // Store in the registry if not a defense roll
|
||||
game.system.rdd.rollDataHandler[this.data._id] = rollData;
|
||||
|
||||
@ -331,7 +331,9 @@ export class RdDActor extends Actor {
|
||||
}
|
||||
if (closeTMR) {
|
||||
this.currentTMR.close(); // Close TMR !
|
||||
}
|
||||
} else {
|
||||
this.currentTMR.maximize(); // Re-display TMR
|
||||
}
|
||||
return explications
|
||||
}
|
||||
|
||||
@ -1096,7 +1098,8 @@ export class RdDActor extends Actor {
|
||||
surencMalusApply: false,
|
||||
isNatation: false,
|
||||
useEncForNatation: false
|
||||
}
|
||||
}
|
||||
if ( this.currentTMR) this.currentTMR.minimize(); // Hide
|
||||
let html = await renderTemplate('systems/foundryvtt-reve-de-dragon/templates/dialog-roll-sort.html', rollData);
|
||||
new RdDRollDialog("sort", html, rollData, this ).render(true);
|
||||
}
|
||||
@ -1157,6 +1160,10 @@ export class RdDActor extends Actor {
|
||||
}
|
||||
}
|
||||
|
||||
// Notification au MJ
|
||||
ChatMessage.create( { content: game.user.name + " est monté dans les TMR en mode : " + mode, whisper: ChatMessage.getWhisperRecipients("GM") } );
|
||||
|
||||
// Ouverture TMR
|
||||
let data = {
|
||||
fatigue: {
|
||||
malus: RdDUtility.calculMalusFatigue(this.data.data.sante.fatigue.value, this.data.data.sante.endurance.max),
|
||||
|
Reference in New Issue
Block a user