This commit is contained in:
2022-01-11 23:35:23 +01:00
parent 1e4b639ec6
commit 3384157580
13 changed files with 361 additions and 162 deletions

View File

@ -108,10 +108,36 @@ export class PegasusActorSheet extends ActorSheet {
this.actor.incrementeQuantite( li.data("item-id") );
} );
html.find('.unarmed-attack').click((event) => {
this.actor.rollUnarmedAttack();
});
html.find('.attack-melee').click((event) => {
this.actor.rollPool( 'com', true);
});
html.find('.attack-ranged').click((event) => {
this.actor.rollPool( 'agi', true);
});
html.find('.defense-roll').click((event) => {
this.actor.rollPool( 'def', true);
});
html.find('.damage-melee').click((event) => {
this.actor.rollPool( 'str', true);
});
html.find('.damage-ranged').click((event) => {
this.actor.rollPool( 'per', true);
});
html.find('.damage-resistance').click((event) => {
this.actor.rollPool( 'phy', true);
});
html.find('.roll-stat').click((event) => {
const statId = $(event.currentTarget).data("stat-key");
this.actor.rollStat(statId);
});
html.find('.roll-mr').click((event) => {
this.actor.rollMR();
});
html.find('.roll-spec').click((event) => {
const li = $(event.currentTarget).parents(".item");
const specId = li.data("item-id");