Skip to content

Commit

Permalink
QoL - update 2024 monsters in player extras to have ability mod/save,…
Browse files Browse the repository at this point in the history
… skill check, and other missing rolls rolls
  • Loading branch information
Azmoria committed Feb 23, 2025
1 parent bb3716b commit 98991ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MonsterDice.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,14 @@ function scan_player_creature_pane(target) {
roll_button_contextmenu_handler(contextmenuEvent, displayName, creatureAvatar, "monster");
}



replace_ability_scores_with_avtt_rollers(target, ".ddbc-creature-block__ability-stat, [class*='styles_stats']>[class*='styles_stat']", ".ddbc-creature-block__ability-heading, [class*='styles_statHeading']")
replace_saves_skill_with_avtt_rollers(target, ".ddbc-creature-block__tidbit, [class*='styles_tidbit']",".ddbc-creature-block__tidbit-label, [class*='styles_tidbitLabel']", ".ddbc-creature-block__tidbit-data, p" )

if(target.closest('[class*="styles_v2024"]').length>0)
add_journal_roll_buttons(target);

// replace all "to hit" and "damage" rolls
$(target).find("p, .ddbc-creature-block__attribute-data-extra").each(function() {
let currentElement = $(this).clone()
Expand Down

0 comments on commit 98991ee

Please sign in to comment.