Fix for actor img not linked on token when change
Item class moved out of item's sheets folder
This commit is contained in:
10
system/scripts/item.js
Normal file
10
system/scripts/item.js
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user