ENH: Quick rolls
parent
b609b673e6
commit
2acc9992f5
|
@ -56,11 +56,14 @@ export class OseActor extends Actor {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let skip = options.event && options.event.ctrlKey;
|
||||||
|
|
||||||
// Roll and return
|
// Roll and return
|
||||||
return OseDice.Roll({
|
return OseDice.Roll({
|
||||||
event: options.event,
|
event: options.event,
|
||||||
parts: rollParts,
|
parts: rollParts,
|
||||||
data: data,
|
data: data,
|
||||||
|
skipDialog: skip,
|
||||||
speaker: ChatMessage.getSpeaker({ actor: this }),
|
speaker: ChatMessage.getSpeaker({ actor: this }),
|
||||||
flavor: `${label} ${game.i18n.localize("OSE.SavingThrow")}`,
|
flavor: `${label} ${game.i18n.localize("OSE.SavingThrow")}`,
|
||||||
title: `${label} ${game.i18n.localize("OSE.SavingThrow")}`,
|
title: `${label} ${game.i18n.localize("OSE.SavingThrow")}`,
|
||||||
|
@ -107,11 +110,14 @@ export class OseActor extends Actor {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let skip = options.event && options.event.ctrlKey;
|
||||||
|
|
||||||
// Roll and return
|
// Roll and return
|
||||||
return OseDice.Roll({
|
return OseDice.Roll({
|
||||||
event: options.event,
|
event: options.event,
|
||||||
parts: rollParts,
|
parts: rollParts,
|
||||||
data: data,
|
data: data,
|
||||||
|
skipDialog: skip,
|
||||||
speaker: ChatMessage.getSpeaker({ actor: this }),
|
speaker: ChatMessage.getSpeaker({ actor: this }),
|
||||||
flavor: `${label} ${game.i18n.localize("OSE.AbilityCheck")}`,
|
flavor: `${label} ${game.i18n.localize("OSE.AbilityCheck")}`,
|
||||||
title: `${label} ${game.i18n.localize("OSE.AbilityCheck")}`,
|
title: `${label} ${game.i18n.localize("OSE.AbilityCheck")}`,
|
||||||
|
@ -157,11 +163,14 @@ export class OseActor extends Actor {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let skip = options.event && options.event.ctrlKey;
|
||||||
|
|
||||||
// Roll and return
|
// Roll and return
|
||||||
return OseDice.Roll({
|
return OseDice.Roll({
|
||||||
event: options.event,
|
event: options.event,
|
||||||
parts: rollParts,
|
parts: rollParts,
|
||||||
data: data,
|
data: data,
|
||||||
|
skipDialog: skip,
|
||||||
speaker: ChatMessage.getSpeaker({ actor: this }),
|
speaker: ChatMessage.getSpeaker({ actor: this }),
|
||||||
flavor: `${label} ${game.i18n.localize("OSE.ExplorationCheck")}`,
|
flavor: `${label} ${game.i18n.localize("OSE.ExplorationCheck")}`,
|
||||||
title: `${label} ${game.i18n.localize("OSE.ExplorationCheck")}`,
|
title: `${label} ${game.i18n.localize("OSE.ExplorationCheck")}`,
|
||||||
|
@ -235,11 +244,13 @@ export class OseActor extends Actor {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
let skip = options.event && options.event.ctrlKey;
|
||||||
// Roll and return
|
// Roll and return
|
||||||
return OseDice.Roll({
|
return OseDice.Roll({
|
||||||
event: options.event,
|
event: options.event,
|
||||||
parts: rollParts,
|
parts: rollParts,
|
||||||
data: rollData,
|
data: rollData,
|
||||||
|
skipDialog: skip,
|
||||||
speaker: ChatMessage.getSpeaker({ actor: this }),
|
speaker: ChatMessage.getSpeaker({ actor: this }),
|
||||||
flavor: `${attData.label} - ${game.i18n.localize("OSE.Attack")}`,
|
flavor: `${attData.label} - ${game.i18n.localize("OSE.Attack")}`,
|
||||||
title: `${attData.label} - ${game.i18n.localize("OSE.Attack")}`,
|
title: `${attData.label} - ${game.i18n.localize("OSE.Attack")}`,
|
||||||
|
|
Loading…
Reference in New Issue