Simplify fate roll type css class

This commit is contained in:
Carlos Fernandez 2026-03-30 21:40:06 -04:00
parent 3cdea0c789
commit 980cbc7ae0

View file

@ -84,11 +84,8 @@ export default class DhpChatMessage extends foundry.documents.ChatMessage {
}
if (this.type === 'fateRoll') {
html.classList.add('fate');
if (this.system.roll?.fateDie == 'Hope') {
html.classList.add('hope');
}
if (this.system.roll?.fateDie == 'Fear') {
html.classList.add('fear');
if (this.system.roll?.fateDie) {
html.classList.add(this.system.roll.fateDie.toLowerCase());
}
}