mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-22 07:23:37 +02:00
.
This commit is contained in:
parent
af04fb33d0
commit
62ec3fba38
10 changed files with 263 additions and 64 deletions
|
|
@ -60,7 +60,13 @@ export const getCommandTarget = (options = {}) => {
|
|||
|
||||
export const setDiceSoNiceForDualityRoll = async (rollResult, advantageState, hopeFaces, fearFaces, advantageFaces) => {
|
||||
if (!game.modules.get('dice-so-nice')?.active) return;
|
||||
const diceSoNicePresets = await getDiceSoNicePresets(hopeFaces, fearFaces, advantageFaces, advantageFaces);
|
||||
const diceSoNicePresets = await getDiceSoNicePresets(
|
||||
rollResult,
|
||||
hopeFaces,
|
||||
fearFaces,
|
||||
advantageFaces,
|
||||
advantageFaces
|
||||
);
|
||||
rollResult.dice[0].options = diceSoNicePresets.hope;
|
||||
rollResult.dice[1].options = diceSoNicePresets.fear;
|
||||
if (rollResult.dice[2] && advantageState) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue