16b92b4586
Après le travail sur les ChatMessage, centraliser les difficultés pour les dialog-roll afin d'afficher tous les ajustements sous forme de tooltips Les ajustements à améliorer: * malus armure * sur-encombrement * encombrement total + fix regression tâches + fix méditation isisPuritication
15 lines
492 B
JavaScript
15 lines
492 B
JavaScript
export class RdDItemMeditation {
|
|
|
|
static calculDifficulte(rollData) {
|
|
if (rollData.meditation) {
|
|
// Malus permanent éventuel
|
|
let diff = -rollData.meditation.data.malus ?? 0;
|
|
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;
|
|
}
|
|
} |