Add Weapon rolls

This commit is contained in:
2023-01-22 10:23:05 +01:00
parent 2566fac378
commit 17e8fb4aa6
9 changed files with 143 additions and 148 deletions

View File

@@ -132,8 +132,14 @@ export class Avd12ActorSheet extends ActorSheet {
html.find('.roll-weapon').click((event) => {
const li = $(event.currentTarget).parents(".item");
const skillId = li.data("item-id")
this.actor.rollWeapon(skillId)
const weponId = li.data("item-id")
this.actor.rollWeapon(weponId)
});
html.find('.roll-weapon-damage').click((event) => {
const li = $(event.currentTarget).parents(".item");
const dmg = $(event.currentTarget).data("damage")
const weaponId = li.data("item-id")
this.actor.rollWeaponDamage(weaponId, dmg)
});