Ajuster réussite/échec en demi-surprise
This commit is contained in:
parent
658e4f45aa
commit
c28e8d4c9b
@ -649,6 +649,7 @@ export class RdDCombat {
|
||||
static isEchec(rollData) {
|
||||
switch (rollData.ajustements.surprise.used) {
|
||||
case 'totale': return true;
|
||||
case 'demi': return !rollData.rolled.isSign;
|
||||
}
|
||||
return rollData.rolled.isEchec;
|
||||
}
|
||||
@ -673,6 +674,7 @@ export class RdDCombat {
|
||||
static isReussite(rollData) {
|
||||
switch (rollData.ajustements.surprise.used) {
|
||||
case 'totale': return false;
|
||||
case 'demi': return rollData.rolled.isSign;
|
||||
}
|
||||
return rollData.rolled.isSuccess;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user