forked from public/foundryvtt-reve-de-dragon
Update rules
This commit is contained in:
@ -60,17 +60,11 @@ const fatigueMatrix = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, //
|
||||
const fatigueMalus = [ 0, 0, 0, -1, -1, -1, -2, -3, -4, -5, -6, -7 ]; // Provides the malus for each segment of fatigue
|
||||
const fatigueLineSize = [ 3, 6, 7, 8, 9, 10, 11, 12];
|
||||
const fatigueLineMalus = [ 0, -1, -2, -3, -4, -5, -6, -7 ];
|
||||
const fatigueTemplate = "<table>\
|
||||
<th><tdid=1><td/><td/><td/><td/> <td/> <td/><td/><td/><td/><td/> <td/> <td/><td/><td/><td/><td/></tr>\
|
||||
<th><td/><td/><td/><td/><td/> <td/> <td/><td/><td/><td/><td/> <td/> <td/><td/><td/><td/><td/></tr>\
|
||||
<th><td/><td/><td/><td/><td/></tr>\
|
||||
<th><td/><td/><td/><td/><td/></tr>\
|
||||
<th><td/><td/><td/><td/><td/></tr>\
|
||||
<th><td/><td/><td/><td/><td/></tr>\
|
||||
<th><td/><td/><td/><td/><td/></tr>\
|
||||
<th><td/><td/><td/><td/><td/></tr>\
|
||||
</table>"
|
||||
|
||||
const fatigueMarche = { "aise": { "4":1, "6":2, "8":3, "10":4, "12":6 },
|
||||
"malaise": { "4":2, "6":3, "8":4, "10":6 },
|
||||
"difficile": { "4":3, "6":4, "8":6 },
|
||||
"tresdifficile": { "4":4, "6":6 } }
|
||||
|
||||
export class RdDUtility {
|
||||
|
||||
/* -------------------------------------------- */
|
||||
@ -289,6 +283,22 @@ export class RdDUtility {
|
||||
return table;
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static getLocalisation( )
|
||||
{
|
||||
let myroll = new Roll("d20");
|
||||
myroll.roll();
|
||||
let result = myroll.total;
|
||||
if ( result <= 3 ) return "Jambe, genou, pied, jarret";
|
||||
if ( result <= 7 ) return "Hanche, cuisse, fesse";
|
||||
if ( result <= 9 ) return "Ventre, reins";
|
||||
if ( result <= 12 ) return "Poitrine, dos";
|
||||
if ( result <= 14 ) return "Avant-bras, main, coude";
|
||||
if ( result <= 18 ) return "Epaule, bras, omoplate";
|
||||
if ( result == 19) return "Tête autre";
|
||||
if ( result == 20) return "Tête visage";
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static currentFatigueMalus( value, max)
|
||||
{
|
||||
|
Reference in New Issue
Block a user