Fix for actor img not linked on token when change

Item class moved out of item's sheets folder
This commit is contained in:
Vlyan
2020-12-21 12:13:21 +01:00
parent f0d2f440e4
commit 3b33dd0c9c
4 changed files with 14 additions and 2 deletions

10
system/scripts/item.js Normal file
View File

@@ -0,0 +1,10 @@
export class ItemL5r5e extends Item {
/**
* Create a new entity using provided input data
* @override
*/
static async create(data, options = {}) {
data.img = `${CONFIG.l5r5e.paths.assets}icons/items/${data.type}.svg`;
return super.create(data, options);
}
}