Fix image's behavior on create for all items sub classes

This commit is contained in:
Vlyan
2021-02-01 17:51:27 +01:00
parent 68577737fc
commit 4350506e09
3 changed files with 10 additions and 2 deletions

View File

@@ -12,7 +12,9 @@ export class ActorL5r5e extends Actor {
// }
// Replace default image
data.img = `${CONFIG.l5r5e.paths.assets}icons/actors/${data.type}.svg`;
if (data.img === undefined) {
data.img = `${CONFIG.l5r5e.paths.assets}icons/actors/${data.type}.svg`;
}
// Some tweak on actors token
data.token = data.token || {};