Sync v9
This commit is contained in:
@ -150,41 +150,23 @@ export class PegasusActorSheet extends ActorSheet {
|
||||
const specId = li.data("item-id");
|
||||
this.actor.rollSpec(specId);
|
||||
});
|
||||
html.find('.technique-roll').click((event) => {
|
||||
const li = $(event.currentTarget).parents(".item");
|
||||
const techId = li.data("item-id");
|
||||
this.actor.rollTechnique(techId);
|
||||
});
|
||||
|
||||
html.find('.weapon-roll').click((event) => {
|
||||
const li = $(event.currentTarget).parents(".item");
|
||||
const weaponId = li.data("item-id");
|
||||
this.actor.rollWeapon(weaponId);
|
||||
});
|
||||
html.find('.river-flush').click((event) => {
|
||||
const diceIndex = $(event.currentTarget).data("dice-index");
|
||||
this.actor.flushDice(diceIndex);
|
||||
});
|
||||
html.find('.river-use').click((event) => {
|
||||
const diceIndex = $(event.currentTarget).data("dice-index");
|
||||
this.actor.addDice(diceIndex);
|
||||
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('.weapon-label a').click((event) => {
|
||||
const li = $(event.currentTarget).parents(".item");
|
||||
const armeId = li.data("item-id");
|
||||
const statId = li.data("stat-id");
|
||||
this.actor.rollWeapon(armeId, statId);
|
||||
});
|
||||
html.find('.weapon-damage').click((event) => {
|
||||
const li = $(event.currentTarget).parents(".item");
|
||||
const weapon = this.actor.getOwnedItem(li.data("item-id"));
|
||||
this.actor.rollDamage(weapon, 'damage');
|
||||
});
|
||||
html.find('.weapon-damage-critical').click((event) => {
|
||||
const li = $(event.currentTarget).parents(".item");
|
||||
const weapon = this.actor.getOwnedItem(li.data("item-id"));
|
||||
this.actor.rollDamage(weapon, 'criticaldamage');
|
||||
});
|
||||
|
||||
html.find('.lock-unlock-sheet').click((event) => {
|
||||
this.options.editScore = !this.options.editScore;
|
||||
|
Reference in New Issue
Block a user