forked from public/foundryvtt-reve-de-dragon
Gestion attaques v2 et initiative
This commit is contained in:
@@ -67,9 +67,9 @@ export class RdDResolutionTable {
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static _computeCell(niveau, percentage) {
|
||||
static _computeCell(level, percentage) {
|
||||
return {
|
||||
niveau: niveau,
|
||||
level: level,
|
||||
score: percentage,
|
||||
norm: Math.min(99, percentage),
|
||||
sign: this._reussiteSignificative(percentage),
|
||||
@@ -189,7 +189,7 @@ export class RdDResolutionTable {
|
||||
static computeReussite(chances, roll, diviseur) {
|
||||
const reussite = reussites.find(x => x.condition(chances, roll))
|
||||
if (diviseur > 1 && reussite.isSuccess) {
|
||||
if (chances > roll * diviseur) {
|
||||
if (chances.norm < roll * diviseur) {
|
||||
return reussiteInsuffisante
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user