Manage weapons

This commit is contained in:
2023-01-22 20:47:41 +01:00
parent 8f9ecff285
commit 9362d3d6bc
3 changed files with 9 additions and 2 deletions

View File

@@ -242,6 +242,7 @@ export class Avd12Actor extends Actor {
}
/* -------------------------------------------- */
prepareWeapon(weapon) {
console.log(weapon)
weapon.attackBonus = this.system.bonus.weapon.attack + this.system.bonus[weapon.system.weapontype].attack
let bonusDamage = this.system.bonus.weapon.damage + this.system.bonus[weapon.system.weapontype].damage
this.addDamages(weapon.system.damages.primary, bonusDamage)