Manage weapons

This commit is contained in:
2023-01-23 20:51:06 +01:00
parent 8e00d3e599
commit 108cda292e
5 changed files with 66 additions and 45 deletions

View File

@@ -242,8 +242,8 @@ export class Avd12Actor extends Actor {
}
/* -------------------------------------------- */
prepareWeapon(weapon) {
console.log(weapon)
weapon.attackBonus = this.system.bonus.weapon.attack + this.system.bonus[weapon.system.weapontype].attack
//console.log(weapon)
weapon.attackBonus = this.system.bonus.weapon.attack + weapon.system.attackbonus + 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)
bonusDamage = this.system.bonus.weapon.damage + this.system.bonus[weapon.system.weapontype].crits