Manage weapons

This commit is contained in:
LeRatierBretonnien 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) { prepareWeapon(weapon) {
console.log(weapon)
weapon.attackBonus = this.system.bonus.weapon.attack + this.system.bonus[weapon.system.weapontype].attack 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 let bonusDamage = this.system.bonus.weapon.damage + this.system.bonus[weapon.system.weapontype].damage
this.addDamages(weapon.system.damages.primary, bonusDamage) this.addDamages(weapon.system.damages.primary, bonusDamage)

View File

@ -64,7 +64,7 @@
], ],
"title": "AnyVenture D12 RPG", "title": "AnyVenture D12 RPG",
"url": "https://www.uberwald.me/gitea/public/fvtt-avd12", "url": "https://www.uberwald.me/gitea/public/fvtt-avd12",
"version": "10.0.18", "version": "10.0.20",
"download": "https://www.uberwald.me/gitea/public/fvtt-avd12/archive/fvtt-avd12-v10.0.18.zip", "download": "https://www.uberwald.me/gitea/public/fvtt-avd12/archive/fvtt-avd12-v10.0.20.zip",
"background": "systems/fvtt-avd12/images/ui/avd12_welcome_page.webp" "background": "systems/fvtt-avd12/images/ui/avd12_welcome_page.webp"
} }

View File

@ -259,6 +259,12 @@
"crits": 0, "crits": 0,
"brutals": 0 "brutals": 0
}, },
"crush": {
"attack": 0,
"damage": 0,
"crits": 0,
"brutals": 0
},
"slash": { "slash": {
"attack": 0, "attack": 0,
"damage": 0, "damage": 0,