Ajout types de fee

This commit is contained in:
2023-03-01 22:12:27 +01:00
parent 301eead11f
commit c1e9fe37dc
9 changed files with 130 additions and 23 deletions

View File

@@ -473,7 +473,20 @@ export class HeritiersActor extends Actor {
}
return rollData
}
/* -------------------------------------------- */
async rollInitiative() {
let rollData = this.getCommonRollData(undefined, "Art de la guerre")
rollData.mode = "init"
if (this.system.caracteristiques["san"].value > this.system.caracteristiques["per"].value) {
rollData.caracKey = "san"
} else {
rollData.caracKey = "per"
}
rollData.carac = this.system.caracteristiques[rollData.caracKey]
let rollDialog = await HeritiersRollDialog.create(this, rollData)
rollDialog.render(true)
}
/* -------------------------------------------- */
async rollCarac(key, isInit = false) {
let rollData = this.getCommonRollData()