System setting and toggle option for roll dialog

This commit is contained in:
Ender
2024-05-04 12:24:21 +02:00
parent a57aea1228
commit 258f9d5b45
4 changed files with 48 additions and 17 deletions
+2 -2
View File
@@ -314,7 +314,7 @@ export class M5Item extends Item {
return ret;
}
async roll() {
async roll(toggleAutomatedRoll = false) {
const item = this as any;
// Initialize chat data.
@@ -348,7 +348,7 @@ export class M5Item extends Item {
}
const roll = new M5Roll(rollData, this.actor, item.name, item.id);
return roll.toMessage();
return roll.toMessage(toggleAutomatedRoll);
} else {
ChatMessage.create({
speaker: speaker,