Gestion des status effects #327
@ -45,7 +45,7 @@ export const referenceAjustements = {
|
|||||||
},
|
},
|
||||||
attaqueDefenseurSurpris: {
|
attaqueDefenseurSurpris: {
|
||||||
isUsed: (rollData, actor) => rollData.surpriseDefenseur,
|
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,
|
getValue: (rollData, actor) => RdDBonus.find(rollData.surpriseDefenseur).attaque,
|
||||||
},
|
},
|
||||||
etat: {
|
etat: {
|
||||||
@ -98,7 +98,7 @@ export const referenceAjustements = {
|
|||||||
},
|
},
|
||||||
armeParade: {
|
armeParade: {
|
||||||
isUsed: (rollData, actor) => RdDItemArme.needParadeSignificative(rollData.attackerRoll?.arme, rollData.arme),
|
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: {
|
surprise: {
|
||||||
isUsed: (rollData, actor) => actor.getSurprise(rollData.passeArme),
|
isUsed: (rollData, actor) => actor.getSurprise(rollData.passeArme),
|
||||||
@ -106,7 +106,7 @@ export const referenceAjustements = {
|
|||||||
},
|
},
|
||||||
bonusCase: {
|
bonusCase: {
|
||||||
isUsed: (rollData, actor) => rollData.selectedSort && rollData.coord,
|
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)}%` : ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user