Feature/132 weapon armor features (#136)

* Added effects for Weapon and Armor traits

* Fixed so @ strings can be parsed as active effect values

* Added actions
This commit is contained in:
WBHarry 2025-06-15 13:18:36 +02:00 committed by GitHub
parent 6adbb4e49b
commit 5b94675db1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 598 additions and 48 deletions

View file

@ -23,7 +23,7 @@ export class DHActionDiceData extends foundry.abstract.DataModel {
getFormula(actor) {
return this.custom.enabled
? this.custom.formula
: `${actor.system[this.multiplier] ?? 1}${this.dice}${this.bonus ? (this.bonus < 0 ? ` - ${Math.abs(this.bonus)}` : ` + ${this.bonus}`) : ''}`;
: `${actor.system[this.multiplier]?.total ?? 1}${this.dice}${this.bonus ? (this.bonus < 0 ? ` - ${Math.abs(this.bonus)}` : ` + ${this.bonus}`) : ''}`;
}
}