Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
MangoFVTT committed Nov 16, 2024
1 parent 9b53846 commit 9074dc8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/system/documents/chat-message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export class CosmereChatMessage extends ChatMessage {
html.find('.collapsible').on('click', (event) =>
this.onClickCollapsible(event),
);
//await this.enrichChatCard(html);

return html;
}
Expand Down Expand Up @@ -339,6 +338,13 @@ export class CosmereChatMessage extends ChatMessage {
html.find('.chat-card').append(section);
}

/**
* Augment damage roll tooltips with some additional information and styling.
* @param {DamageRoll} roll The roll instance.
* @param {string} type The type of the damage as a string.
* @param {JQuery} html The roll tooltip markup.
* @returns
*/
protected enrichDamageTooltip(
roll: DamageRoll,
type: string,
Expand All @@ -359,7 +365,7 @@ export class CosmereChatMessage extends ChatMessage {
}

/**
* Augment roll tooltips with some additional information and styling.
* Augment d20 roll tooltips with some additional information and styling.
* @param {Roll} roll The roll instance.
* @param {HTMLElement} html The roll tooltip markup.
*/
Expand Down

0 comments on commit 9074dc8

Please sign in to comment.