Implémentation modif remarques v7
This commit is contained in:
@@ -72,7 +72,7 @@ export class VadentisUtility extends Entity {
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static async processRoll( formula ) {
|
||||
static async processRoll( formula, rollMode ) {
|
||||
let myRoll = new Roll(formula);
|
||||
myRoll.evaluate();
|
||||
if (game.modules.get("dice-so-nice") && game.modules.get("dice-so-nice").active) {
|
||||
@@ -102,6 +102,11 @@ export class VadentisUtility extends Entity {
|
||||
let degats = `normaux : ${combatData.arme.data.damage}`;
|
||||
let formula = combatData.arme.data.damage.toLowerCase();
|
||||
msgData.msg = `${attacker.name} a réussi son attaque sur ${defender.name} (${formulaFull} => ${myRoll.total} / ${defense}) !<br> Les dégâts sont ${degats}.`;
|
||||
|
||||
if ( combatData.arme.type == 'tir') {
|
||||
attacker.decrementeMunition(combatData.arme);
|
||||
msgData.msg += `<br>C'est un tir, les munitions de l'attaquant ont été décrémentées`;
|
||||
}
|
||||
|
||||
if ( myRoll.results[0] >= combatData.arme.data.valuecritical ) {
|
||||
degats = `critiques : ${combatData.arme.data.criticaldamage}`;
|
||||
|
||||
Reference in New Issue
Block a user