mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
Style the fate message based on Hope/Fear colors.
This commit is contained in:
parent
a11a2d4e30
commit
01c1d8fa15
2 changed files with 31 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue