forked from public/foundryvtt-reve-de-dragon
Fix initiative pour les creatures/entites
This commit is contained in:
@ -142,6 +142,7 @@ export class RdDResolutionTable {
|
||||
return reussite;
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static _computeRow(carac) {
|
||||
let dataRow = [
|
||||
this._computeCell(-10, Math.max(Math.floor(carac / 4), 1)),
|
||||
@ -153,6 +154,7 @@ export class RdDResolutionTable {
|
||||
return dataRow;
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static _computeCell(niveau, percentage) {
|
||||
return {
|
||||
niveau: niveau,
|
||||
@ -164,18 +166,22 @@ export class RdDResolutionTable {
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static _reussiteSignificative(score) {
|
||||
return Math.floor(score / 2);
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static _reussitePart(score) {
|
||||
return Math.ceil(score / 5);
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static _echecParticulier(score) {
|
||||
return Math.ceil(score / 5) + 80;
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static _echecTotal(score) {
|
||||
return Math.ceil(score / 10) + 91;
|
||||
}
|
||||
|
Reference in New Issue
Block a user