Gestion des paradigmes

This commit is contained in:
2022-10-20 23:59:31 +02:00
parent b0c59c6104
commit b6dac470e9
9 changed files with 206 additions and 119 deletions

View File

@ -143,22 +143,11 @@ export class Imperium5ActorSheet extends ActorSheet {
this.actor.incDecQuantity( li.data("item-id"), +1 );
} );
html.find('.roll-ame').click((event) => {
html.find('.roll-ame-button').click((event) => {
const ameKey = $(event.currentTarget).data("ame-key")
this.actor.rollAme(ameKey)
});
html.find('.roll-spec').click((event) => {
const li = $(event.currentTarget).parents(".item");
const specId = li.data("item-id");
this.actor.rollSpec(specId);
});
html.find('.weapon-damage-roll').click((event) => {
const li = $(event.currentTarget).parents(".item");
const weaponId = li.data("item-id");
this.actor.rollWeapon(weaponId, true);
});
html.find('.lock-unlock-sheet').click((event) => {
this.options.editScore = !this.options.editScore;