Add a different default image for attribute items so they stand out a bit more in the item tab
This commit is contained in:
parent
a30d68a327
commit
6723e0d25f
2 changed files with 11 additions and 1 deletions
8
module/documents/Item.mjs
Normal file
8
module/documents/Item.mjs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
export class TAFItem extends foundry.documents.Item {
|
||||
static getDefaultArtwork(itemData) {
|
||||
switch (itemData.type) {
|
||||
case `attribute`: return { img: `icons/svg/jump.svg` };
|
||||
};
|
||||
return super.getDefaultArtwork(itemData);
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue