2021-01-05 18:43:13 +01:00
|
|
|
export class RdDItemMeditation {
|
|
|
|
|
|
|
|
static calculDifficulte(rollData) {
|
|
|
|
if (rollData.meditation) {
|
|
|
|
// Malus permanent éventuel
|
2022-06-12 12:23:33 +02:00
|
|
|
let diff = rollData.meditation.system.malus ?? 0;
|
2021-01-05 18:43:13 +01:00
|
|
|
if (!rollData.conditionMeditation.isHeure) diff -= 2;
|
|
|
|
if (!rollData.conditionMeditation.isVeture) diff -= 2;
|
|
|
|
if (!rollData.conditionMeditation.isComportement) diff -= 2;
|
|
|
|
if (!rollData.conditionMeditation.isPurification) diff -= 2;
|
|
|
|
return diff;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|