Files
l5rx-chiaroscuro/system/scripts/item.js
Vlyan 4350ea25ee Working on 0.8.x
- some fix for 0.8.3, and working on titles
2021-05-13 13:07:27 +02:00

13 lines
353 B
JavaScript

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