Corrections mineures
This commit is contained in:
@@ -680,7 +680,7 @@ export class RdDUtility {
|
|||||||
encaissement.dmg = dmg
|
encaissement.dmg = dmg
|
||||||
if (ReglesOptionnelles.isUsing('localisation-aleatoire')) {
|
if (ReglesOptionnelles.isUsing('localisation-aleatoire')) {
|
||||||
encaissement.dmg.loc = dmg.loc ?? await RdDUtility.getLocalisation(targetActor.type)
|
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 {
|
else {
|
||||||
encaissement.dmg.loc = { label: '' }
|
encaissement.dmg.loc = { label: '' }
|
||||||
@@ -689,9 +689,9 @@ export class RdDUtility {
|
|||||||
encaissement.armure = armure
|
encaissement.armure = armure
|
||||||
encaissement.penetration = dmg.penetration
|
encaissement.penetration = dmg.penetration
|
||||||
encaissement.total = jetTotal
|
encaissement.total = jetTotal
|
||||||
encaissement.vie = await RdDUtility._evaluatePerte(encaissement.vie, over20);
|
encaissement.vie = await RdDUtility._evaluatePerte(encaissement.vie, over20)
|
||||||
encaissement.endurance = await RdDUtility._evaluatePerte(encaissement.endurance, over20);
|
encaissement.endurance = await RdDUtility._evaluatePerte(encaissement.endurance, over20)
|
||||||
return encaissement;
|
return encaissement
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { Grammar } from "../grammar.js"
|
import { Grammar } from "../grammar.js"
|
||||||
|
import { CARACS } from "../rdd-carac.js"
|
||||||
import { ReglesOptionnelles } from "../settings/regles-optionnelles.js"
|
import { ReglesOptionnelles } from "../settings/regles-optionnelles.js"
|
||||||
import { ROLL_TYPE_SORT } from "./roll-constants.mjs"
|
import { ROLL_TYPE_SORT } from "./roll-constants.mjs"
|
||||||
import { RollPartCheckbox } from "./roll-part-checkbox.mjs"
|
import { RollPartCheckbox } from "./roll-part-checkbox.mjs"
|
||||||
@@ -20,7 +21,7 @@ export class RollPartAstrologique extends RollPartCheckbox {
|
|||||||
}
|
}
|
||||||
|
|
||||||
isJetChance(rollData) {
|
isJetChance(rollData) {
|
||||||
return Grammar.includesLowerCaseNoAccent(rollData.current.carac.key, 'chance')
|
return Grammar.includesLowerCaseNoAccent(rollData.current.carac.key, CARACS.CHANCE)
|
||||||
}
|
}
|
||||||
|
|
||||||
$isUsingAstrologie() {
|
$isUsingAstrologie() {
|
||||||
|
|||||||
Reference in New Issue
Block a user