Corrections mineures

This commit is contained in:
2026-04-28 19:21:00 +02:00
parent eaee50511a
commit 76e651cf19
2 changed files with 6 additions and 5 deletions

View File

@@ -680,7 +680,7 @@ export class RdDUtility {
encaissement.dmg = dmg
if (ReglesOptionnelles.isUsing('localisation-aleatoire')) {
encaissement.dmg.loc = dmg.loc ?? await RdDUtility.getLocalisation(targetActor.type)
encaissement.dmg.loc.label = encaissement.dmg.loc.label ?? 'Corps;'
encaissement.dmg.loc.label = encaissement.dmg.loc.label ?? 'Corps'
}
else {
encaissement.dmg.loc = { label: '' }
@@ -689,9 +689,9 @@ export class RdDUtility {
encaissement.armure = armure
encaissement.penetration = dmg.penetration
encaissement.total = jetTotal
encaissement.vie = await RdDUtility._evaluatePerte(encaissement.vie, over20);
encaissement.endurance = await RdDUtility._evaluatePerte(encaissement.endurance, over20);
return encaissement;
encaissement.vie = await RdDUtility._evaluatePerte(encaissement.vie, over20)
encaissement.endurance = await RdDUtility._evaluatePerte(encaissement.endurance, over20)
return encaissement
}
/* -------------------------------------------- */

View File

@@ -1,4 +1,5 @@
import { Grammar } from "../grammar.js"
import { CARACS } from "../rdd-carac.js"
import { ReglesOptionnelles } from "../settings/regles-optionnelles.js"
import { ROLL_TYPE_SORT } from "./roll-constants.mjs"
import { RollPartCheckbox } from "./roll-part-checkbox.mjs"
@@ -20,7 +21,7 @@ export class RollPartAstrologique extends RollPartCheckbox {
}
isJetChance(rollData) {
return Grammar.includesLowerCaseNoAccent(rollData.current.carac.key, 'chance')
return Grammar.includesLowerCaseNoAccent(rollData.current.carac.key, CARACS.CHANCE)
}
$isUsingAstrologie() {