-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
263 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# 4.0.0 | ||
|
||
- Foundry v12 compatibility. | ||
|
||
# 3.0.1 | ||
|
||
- Fix hub sheet defense rating not populating from frame. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
/** | ||
* Add a show-dice promise to the given array if Dice So Nice is available. | ||
*/ | ||
export const addShowDicePromise = (promises, roll) => { | ||
export function addShowDicePromise(promises, roll) { | ||
if (game.dice3d) { | ||
// we pass synchronize=true so DSN dice appear on all players' screens | ||
promises.push(game.dice3d.showForRoll(roll, game.user, true, null, false)); | ||
} | ||
}; | ||
} | ||
|
||
/** | ||
* Show roll in Dice So Nice if it's available. | ||
*/ | ||
export const showDice = async (roll) => { | ||
export async function showDice(roll) { | ||
if (game.dice3d) { | ||
// we pass synchronize=true so DSN dice appear on all players' screens | ||
await game.dice3d.showForRoll(roll, game.user, true, null, false); | ||
} | ||
}; | ||
} | ||
|
||
/** | ||
* Dice sound to use for ChatMessage. | ||
* False if Dice So Nice is available. | ||
*/ | ||
export const diceSound = () => { | ||
export function diceSound() { | ||
if (game.dice3d) { | ||
// let Dice So Nice do it | ||
return null; | ||
} else { | ||
return CONFIG.sounds.dice; | ||
} | ||
}; | ||
} |
Oops, something went wrong.