Fix sur armes et affichage

This commit is contained in:
2023-03-09 00:26:52 +01:00
parent 2f3a8e91bd
commit b0a3cb08cb
5 changed files with 65 additions and 44 deletions

View File

@@ -141,6 +141,11 @@ export class HeritiersActorSheet extends ActorSheet {
let compId = li.data("item-id")
this.actor.rollCompetence(compId)
})
html.find('.roll-attaque-arme').click((event) => {
const li = $(event.currentTarget).parents(".item")
let armeId = li.data("item-id")
this.actor.rollAttaqueArme(armeId)
})
html.find('.item-add').click((event) => {
const itemType = $(event.currentTarget).data("type")