fix default icons
This commit is contained in:
parent
b06d89c20e
commit
bbf4ecbc87
1 changed files with 24 additions and 2 deletions
|
|
@ -16,6 +16,8 @@ export class DHImporter {
|
|||
const data = {
|
||||
name: "Unknown 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: {
|
||||
tier: 1,
|
||||
type: "standard",
|
||||
|
|
@ -282,13 +284,32 @@ export class DHImporter {
|
|||
// sometimes with specific actions embedded.
|
||||
// We will put the type in the description.
|
||||
|
||||
return {
|
||||
const isAction = buffer.typeHint?.toLowerCase() === "action";
|
||||
|
||||
const item = {
|
||||
name: buffer.name,
|
||||
type: "feature",
|
||||
img: "icons/svg/item-bag.svg",
|
||||
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 = {
|
||||
name: lines[0],
|
||||
type: "environment",
|
||||
img: "systems/daggerheart/assets/icons/documents/actors/forest.svg",
|
||||
system: {
|
||||
tier: 1,
|
||||
type: "exploration",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue