Style the fate message based on Hope/Fear colors.

This commit is contained in:
Chris Ryan 2025-12-08 22:06:21 +10:00
parent a11a2d4e30
commit 01c1d8fa15
2 changed files with 31 additions and 1 deletions

View file

@ -89,6 +89,12 @@ export default class DhpChatMessage extends foundry.documents.ChatMessage {
}
if (this.type === 'fateRoll') {
html.classList.add('fate');
if (this.system.roll?.fate.fateDie == 'Hope') {
html.classList.add('hope');
}
if (this.system.roll?.fate.fateDie == 'Fear') {
html.classList.add('fear');
}
}
const autoExpandRoll = game.settings.get(