mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-21 23:13:39 +02:00
Simplify fate roll type css class
This commit is contained in:
parent
3cdea0c789
commit
980cbc7ae0
1 changed files with 2 additions and 5 deletions
|
|
@ -84,11 +84,8 @@ export default class DhpChatMessage extends foundry.documents.ChatMessage {
|
||||||
}
|
}
|
||||||
if (this.type === 'fateRoll') {
|
if (this.type === 'fateRoll') {
|
||||||
html.classList.add('fate');
|
html.classList.add('fate');
|
||||||
if (this.system.roll?.fateDie == 'Hope') {
|
if (this.system.roll?.fateDie) {
|
||||||
html.classList.add('hope');
|
html.classList.add(this.system.roll.fateDie.toLowerCase());
|
||||||
}
|
|
||||||
if (this.system.roll?.fateDie == 'Fear') {
|
|
||||||
html.classList.add('fear');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue