mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
Merge pull request #16 from Foundryborne/irk/sheet-rolling
Fix Attribute rolling. Updated some depreciated values based on warni…
This commit is contained in:
commit
76e261680c
5 changed files with 15 additions and 14 deletions
|
|
@ -331,11 +331,11 @@ export default class PCSheet extends DaggerheartSheet(ActorSheetV2) {
|
|||
this.render();
|
||||
}
|
||||
|
||||
static async rollAttribute(_, event){
|
||||
const { roll, hope, fear, advantage, disadvantage, modifiers } = await this.document.dualityRoll({ title: 'Attribute Bonus', value: event.currentTarget.dataset.value }, event.shiftKey);
|
||||
static async rollAttribute(event, target) {
|
||||
const { roll, hope, fear, advantage, disadvantage, modifiers } = await this.document.dualityRoll({ title: 'Attribute Bonus', value: event.target.dataset.value }, event.shiftKey);
|
||||
|
||||
const cls = getDocumentClass("ChatMessage");
|
||||
const msg = new cls({
|
||||
const msgData = {
|
||||
type: 'dualityRoll',
|
||||
system: {
|
||||
roll: roll._formula,
|
||||
|
|
@ -348,9 +348,9 @@ export default class PCSheet extends DaggerheartSheet(ActorSheetV2) {
|
|||
user: game.user.id,
|
||||
content: "systems/daggerheart/templates/chat/duality-roll.hbs",
|
||||
rolls: [roll]
|
||||
});
|
||||
};
|
||||
|
||||
await cls.create(msg.toObject());
|
||||
await cls.create(msgData);
|
||||
}
|
||||
|
||||
static async toggleMarks(_, button){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue