Fix glitches

This commit is contained in:
2022-01-22 21:49:34 +01:00
parent 0d144ef2a9
commit 35b78c8127
9 changed files with 181 additions and 76 deletions

View File

@ -55,6 +55,7 @@ export class PegasusActorSheet extends ActorSheet {
race: duplicate(this.actor.getRace()),
role: duplicate(this.actor.getRole()),
effects: duplicate(this.actor.getEffects()),
moneys: duplicate(this.actor.getMoneys()),
options: this.options,
owner: this.document.isOwner,
editScore: this.options.editScore,
@ -119,22 +120,22 @@ export class PegasusActorSheet extends ActorSheet {
this.actor.rollUnarmedAttack();
});
html.find('.attack-melee').click((event) => {
this.actor.rollPool( 'com', true);
this.actor.rollPool( 'com');
});
html.find('.attack-ranged').click((event) => {
this.actor.rollPool( 'agi', true);
this.actor.rollPool( 'agi');
});
html.find('.defense-roll').click((event) => {
this.actor.rollPool( 'def', true);
});
html.find('.damage-melee').click((event) => {
this.actor.rollPool( 'str', true);
this.actor.rollPool( 'str');
});
html.find('.damage-ranged').click((event) => {
this.actor.rollPool( 'per', true);
this.actor.rollPool( 'per');
});
html.find('.damage-resistance').click((event) => {
this.actor.rollPool( 'phy', true);
this.actor.rollPool( 'phy');
});
html.find('.roll-stat').click((event) => {