Initial release

This commit is contained in:
2023-02-01 21:30:35 +01:00
parent 04909ef841
commit 513e43f169
17 changed files with 91 additions and 69 deletions

View File

@ -268,6 +268,12 @@ export class MaleficesActor extends Actor {
return `systems/fvtt-malefices/images/icons/${attrKey}.webp`
}
/* -------------------------------------------- */
incDecDestin( value) {
let newValue = this.system.pointdestin + value
this.update( {'system.pointdestin': newValue})
}
/* -------------------------------------------- */
getCommonRollData() {
@ -277,6 +283,8 @@ export class MaleficesActor extends Actor {
rollData.actorId = this.id
rollData.img = this.img
rollData.phyMalus = this.getPhysiqueMalus()
rollData.destin = this.system.pointdestin
rollData.isReroll = false
console.log("ROLLDATA", rollData)