fix default icons

This commit is contained in:
CPTN Cosmo 2026-01-24 10:52:49 +01:00
parent b06d89c20e
commit bbf4ecbc87
No known key found for this signature in database

View file

@ -16,6 +16,8 @@ export class DHImporter {
const data = { const data = {
name: "Unknown Adversary", name: "Unknown Adversary",
type: "adversary", type: "adversary",
img: "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
prototypeToken: { texture: { src: "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg" } },
system: { system: {
tier: 1, tier: 1,
type: "standard", type: "standard",
@ -282,13 +284,32 @@ export class DHImporter {
// sometimes with specific actions embedded. // sometimes with specific actions embedded.
// We will put the type in the description. // We will put the type in the description.
return { const isAction = buffer.typeHint?.toLowerCase() === "action";
const item = {
name: buffer.name, name: buffer.name,
type: "feature", type: "feature",
img: "icons/svg/item-bag.svg",
system: { system: {
description: `<p><strong>${buffer.typeHint}</strong>: ${buffer.description}</p>` description: `<p><strong>${buffer.typeHint}</strong>: ${buffer.description}</p>`,
actions: {}
} }
}; };
if (isAction) {
const actionId = foundry.utils.randomID();
item.system.actions[actionId] = {
_id: actionId,
type: "attack",
name: buffer.name,
actionType: "action",
img: "icons/svg/item-bag.svg",
systemPath: "actions",
chatDisplay: true
};
}
return item;
} }
/** /**
@ -308,6 +329,7 @@ export class DHImporter {
const data = { const data = {
name: lines[0], name: lines[0],
type: "environment", type: "environment",
img: "systems/daggerheart/assets/icons/documents/actors/forest.svg",
system: { system: {
tier: 1, tier: 1,
type: "exploration", type: "exploration",