Fixed lethality display. Improved combat tab styling. Improved edit stats modal.

This commit is contained in:
Aaron Lutomski
2026-06-17 19:03:17 -07:00
parent 219ad971d9
commit cb5cfcfcd0
16 changed files with 330 additions and 104 deletions
+12 -1
View File
@@ -1,4 +1,5 @@
import { getDGRollToken } from "../../chat/dg-chat-card.js";
import { showDamageOrLethalityChoiceDialog } from "../../roll/roll-dialogs.js";
import { createDGRollFromDataset, processDGRoll } from "../../roll/roll.js";
/** @param {typeof foundry.applications.api.ApplicationV2} Base */
@@ -46,7 +47,17 @@ export default function RollSheetMixin(Base) {
}
const item = this.actor.items.get(target.dataset.iid);
const roll = createDGRollFromDataset(target.dataset, {
const rollDataset = { ...target.dataset };
if (rollDataset.rolltype === "damage-or-lethality") {
const choice = await showDamageOrLethalityChoiceDialog({
itemName: item?.name ?? "",
});
if (!choice) return;
rollDataset.rolltype = choice;
}
const roll = createDGRollFromDataset(rollDataset, {
actor: this.actor,
item,
element: target,