Skip to content

Commit

Permalink
Fix Dice So Nice Integration
Browse files Browse the repository at this point in the history
  • Loading branch information
maqloner committed Jun 21, 2024
1 parent 65f10f2 commit 4d083d6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# v1.0.5
- Fix Dice So Nice Integration

# v1.0.4
- Support for Foundry V12
- Prevent the GM Dashboard from closing with the ESC key
Expand Down
6 changes: 1 addition & 5 deletions module/chat-message/show-chat-message.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { config } from "../config.js";
import { diceSound, showDiceWithSound } from "../utils/dice.js";
import { diceSound } from "../utils/dice.js";

const CHAT_MESSAGE_TEMPLATE = `${config.systemPath}/templates/chat-message/chat-message.hbs`;

Expand All @@ -15,10 +15,6 @@ const CHAT_MESSAGE_TEMPLATE = `${config.systemPath}/templates/chat-message/chat-
export const showChatMessage = async ({ actor, title, description, outcomes = [], buttons = [], items = [], rollMode = game.settings.get("core", "rollMode") } = {}) => {
const rolls = outcomes.map((outcome) => outcome.roll).filter((roll) => roll);

if (rolls.length) {
await showDiceWithSound(rolls, rollMode);
}

return ChatMessage.create(ChatMessage.applyRollMode({
content: await renderTemplate(CHAT_MESSAGE_TEMPLATE, {
title,
Expand Down
2 changes: 1 addition & 1 deletion system.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "mythicbastionland",
"title": "Mythic Bastionland",
"description": "FoundryVTT system for playing the Mythic Bastionland.",
"version": "1.0.4",
"version": "1.0.5",
"compatibility": {
"minimum": "12",
"verified": "12.327"
Expand Down

0 comments on commit 4d083d6

Please sign in to comment.