This commit is contained in:
TheGiddyLimit
2024-03-26 22:43:48 +00:00
parent 12f34a38f8
commit d075252329
122 changed files with 4907 additions and 1489 deletions

View File

@@ -731,7 +731,7 @@ class BestiaryPage extends ListPageMultiSource {
// region dice rollers
const expectedPB = Parser.crToPb(mon.cr);
const pluginDc = (tag, text) => {
const pluginDc = (commonArgs, {input: {tag, text}}) => {
if (isNaN(text) || expectedPB <= 0) return null;
const withoutPB = Number(text) - expectedPB;
@@ -740,7 +740,7 @@ class BestiaryPage extends ListPageMultiSource {
return `DC <span class="rd__dc rd__dc--rollable" data-roll-prof-type="dc" data-roll-prof-dice="${profDiceString.qq()}"><span class="rd__dc--rollable-text">${text}</span><span class="rd__dc--rollable-dice">${profDiceString}</span></span>`;
};
const pluginDice = (entry, textStack, meta, options) => {
const pluginDice = (commonArgs, {input: entry}) => {
if (expectedPB <= 0 || entry.subType !== "d20" || entry.context?.type == null) return null;
const text = Renderer.getEntryDiceDisplayText(entry);