forked from public/foundryvtt-reve-de-dragon
Gestion des maladresses
This commit is contained in:
@@ -27,6 +27,7 @@ export class RollDialogAdapter {
|
||||
RollDialogAdapter.setRollDataRolled(rollData, rolled, rollTitle)
|
||||
RollDialogAdapter.adjustRollDataForV1(rollData)
|
||||
RollDialogAdapter.adjustAttaqueParticuliere(rollData)
|
||||
RollDialogAdapter.adjustDemiSurprise(rollData)
|
||||
|
||||
return rolled
|
||||
}
|
||||
@@ -105,6 +106,12 @@ export class RollDialogAdapter {
|
||||
})
|
||||
}
|
||||
|
||||
static adjustDemiSurprise(rollData) {
|
||||
if (rollData.active.surprise == 'demi' && rollData.rolled.isPart) {
|
||||
RdDResolutionTable.replaceParticuliereDemiSurprise(rollData.rolled)
|
||||
}
|
||||
}
|
||||
|
||||
static adjustAttaqueParticuliere(rollData) {
|
||||
if (rollData.type.current != ROLL_TYPE_ATTAQUE || !rollData.rolled.isPart) {
|
||||
return
|
||||
|
Reference in New Issue
Block a user