actor default images + template sort

This commit is contained in:
François-Xavier Guillois
2023-09-06 08:55:46 +02:00
parent 615148e4f7
commit 25b4179cd3
32 changed files with 209 additions and 59 deletions
+2 -3
View File
@@ -51,10 +51,9 @@ export const registerHooks = function () {
/* -------------------------------------------- */
Hooks.on("preCreateActor", function (actor) {
// console.log('pre create actor', actor);
console.log('pre create actor', actor.img);
if (actor.img == "icons/svg/mystery-man.svg") {
// actor.updateSource({"img": `systems/vermine2047/icons/actors/${actor.type}.webp`});
// item.updateSource({"img": `systems/vermine2047/icons/competence.webp`});
actor.updateSource({"img": `systems/vermine2047/assets/icons/actors/${actor.type}.webp`});
}
});