From 9c461f29a5525014ac430577963e1851746dd78a Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Wed, 13 Jan 2021 04:01:39 +0100 Subject: [PATCH] =?UTF-8?q?Indicasion=20demi-surprise=20d=C3=A9fenseurs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/rolldata-ajustements.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/rolldata-ajustements.js b/module/rolldata-ajustements.js index f3bf16b2..5eff690d 100644 --- a/module/rolldata-ajustements.js +++ b/module/rolldata-ajustements.js @@ -45,7 +45,7 @@ export const referenceAjustements = { }, attaqueDefenseurSurpris: { isUsed: (rollData, actor) => rollData.surpriseDefenseur, - getLabel: (rollData, actor) => RdDBonus.find(rollData.surpriseDefenseur).descr, + getLabel: (rollData, actor) => RdDBonus.find(rollData.surpriseDefenseur).descr + (rollData.attackerRoll ? '' : ' défenseur'), getValue: (rollData, actor) => RdDBonus.find(rollData.surpriseDefenseur).attaque, }, etat: { @@ -98,7 +98,7 @@ export const referenceAjustements = { }, armeParade: { isUsed: (rollData, actor) => RdDItemArme.needParadeSignificative(rollData.attackerRoll?.arme, rollData.arme), - getDescr: (rollData, actor) => rollData.attackerRoll && rollData.arme? `${RdDItemArme.getNomCategorieParade(rollData.attackerRoll?.arme)} vs ${RdDItemArme.getNomCategorieParade(rollData.arme)}`: '' + getDescr: (rollData, actor) => rollData.attackerRoll && rollData.arme ? `${RdDItemArme.getNomCategorieParade(rollData.attackerRoll?.arme)} vs ${RdDItemArme.getNomCategorieParade(rollData.arme)}` : '' }, surprise: { isUsed: (rollData, actor) => actor.getSurprise(rollData.passeArme), @@ -106,7 +106,7 @@ export const referenceAjustements = { }, bonusCase: { isUsed: (rollData, actor) => rollData.selectedSort && rollData.coord, - getDescr: (rollData, actor) => rollData.selectedSort && rollData.coord ? `Bonus de case: ${RdDItemSort.getCaseBonus(rollData.selectedSort, rollData.coord)}%`: '' + getDescr: (rollData, actor) => rollData.selectedSort && rollData.coord ? `Bonus de case: ${RdDItemSort.getCaseBonus(rollData.selectedSort, rollData.coord)}%` : '' } }