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 = {
|
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",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue