Fix image's behavior on create for all items sub classes
This commit is contained in:
@@ -4,7 +4,9 @@ export class ItemL5r5e extends Item {
|
||||
* @override
|
||||
*/
|
||||
static async create(data, options = {}) {
|
||||
data.img = `${CONFIG.l5r5e.paths.assets}icons/items/${data.type}.svg`;
|
||||
if (data.img === undefined) {
|
||||
data.img = `${CONFIG.l5r5e.paths.assets}icons/items/${data.type}.svg`;
|
||||
}
|
||||
return super.create(data, options);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user