forked from public/foundryvtt-reve-de-dragon
#63 Jet d'éthylisme
This commit is contained in:
@ -86,7 +86,9 @@ 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 } }
|
||||
/* Static tables for commands /table */
|
||||
|
||||
/* -------------------------------------------- */
|
||||
/* Static tables for commands /table */
|
||||
const table2func = { "queues": {descr: "queues : Tire une queue de Dragon", func: RdDRollTables.getQueue},
|
||||
"ombre": { descr: "ombre: Tire une Ombre de Dragon", func: RdDRollTables.getOmbre },
|
||||
"tetehr": {descr: "tetehr: Tire une Tête de Dragon pour Hauts Revants", fund: RdDRollTables.getTeteHR},
|
||||
@ -101,6 +103,9 @@ const definitionsBlessures = [
|
||||
{ type: "critique", facteur : 6 }
|
||||
]
|
||||
|
||||
/* -------------------------------------------- */
|
||||
const nomEthylisme = [ "Emeché", "Gris", "Pinté", "Pas frais", "Ivre", "Bu", "Complètement fait", "Ivre mort"];
|
||||
|
||||
/* -------------------------------------------- */
|
||||
const definitionsEncaissement = {
|
||||
"mortel": [
|
||||
@ -191,10 +196,11 @@ export class RdDUtility {
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
getNomEthylisme( niveauEthylisme ) {
|
||||
|
||||
static getNomEthylisme( niveauEthylisme ) {
|
||||
let index = Math.abs(niveauEthylisme);
|
||||
return nomEthylisme[index];
|
||||
}
|
||||
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static initAfficheContenu( actorId ) { // persistent handling of conteneur show/hide
|
||||
if ( !this.afficheContenu )
|
||||
|
Reference in New Issue
Block a user