diff --git a/modules/applications/sheets/base-actor-sheet.mjs b/modules/applications/sheets/base-actor-sheet.mjs index 46b25cc..dd57424 100644 --- a/modules/applications/sheets/base-actor-sheet.mjs +++ b/modules/applications/sheets/base-actor-sheet.mjs @@ -381,11 +381,13 @@ export default class HeritiersActorSheet extends HandlebarsApplicationMixin(foun * @private */ static async #onEditImage(event, target) { + const attr = target.dataset.edit || "img" + const current = foundry.utils.getProperty(this.actor, attr) ?? this.actor.img const fp = new FilePicker({ type: "image", - current: this.actor.img, + current, callback: (path) => { - this.actor.update({ img: path }) + this.actor.update({ [attr]: path }) }, }) return fp.browse() diff --git a/packs/archetypes-fees/000357.log b/packs/archetypes-fees/000362.log similarity index 100% rename from packs/archetypes-fees/000357.log rename to packs/archetypes-fees/000362.log diff --git a/packs/archetypes-fees/MANIFEST-000355 b/packs/archetypes-fees/MANIFEST-000355 deleted file mode 100644 index c83725a..0000000 Binary files a/packs/archetypes-fees/MANIFEST-000355 and /dev/null differ diff --git a/packs/armes-et-protection/000357.log b/packs/armes-et-protection/000362.log similarity index 100% rename from packs/armes-et-protection/000357.log rename to packs/armes-et-protection/000362.log diff --git a/packs/armes-et-protection/MANIFEST-000355 b/packs/armes-et-protection/MANIFEST-000355 deleted file mode 100644 index c4c6864..0000000 Binary files a/packs/armes-et-protection/MANIFEST-000355 and /dev/null differ diff --git a/packs/atouts-feeriques/000357.log b/packs/atouts-feeriques/000362.log similarity index 100% rename from packs/atouts-feeriques/000357.log rename to packs/atouts-feeriques/000362.log diff --git a/packs/atouts-feeriques/MANIFEST-000355 b/packs/atouts-feeriques/MANIFEST-000355 deleted file mode 100644 index 9e36b26..0000000 Binary files a/packs/atouts-feeriques/MANIFEST-000355 and /dev/null differ diff --git a/packs/avantages/000357.log b/packs/avantages/000362.log similarity index 100% rename from packs/avantages/000357.log rename to packs/avantages/000362.log diff --git a/packs/avantages/MANIFEST-000355 b/packs/avantages/MANIFEST-000355 deleted file mode 100644 index 7e80620..0000000 Binary files a/packs/avantages/MANIFEST-000355 and /dev/null differ diff --git a/packs/capacites/000357.log b/packs/capacites/000362.log similarity index 100% rename from packs/capacites/000357.log rename to packs/capacites/000362.log diff --git a/packs/capacites/MANIFEST-000355 b/packs/capacites/MANIFEST-000355 deleted file mode 100644 index 7ad974b..0000000 Binary files a/packs/capacites/MANIFEST-000355 and /dev/null differ diff --git a/packs/competences/000363.log b/packs/competences/000368.log similarity index 100% rename from packs/competences/000363.log rename to packs/competences/000368.log diff --git a/packs/competences/MANIFEST-000361 b/packs/competences/MANIFEST-000361 deleted file mode 100644 index ce0c485..0000000 Binary files a/packs/competences/MANIFEST-000361 and /dev/null differ diff --git a/packs/desavantages/000357.log b/packs/desavantages/000362.log similarity index 100% rename from packs/desavantages/000357.log rename to packs/desavantages/000362.log diff --git a/packs/desavantages/MANIFEST-000355 b/packs/desavantages/MANIFEST-000355 deleted file mode 100644 index e58159f..0000000 Binary files a/packs/desavantages/MANIFEST-000355 and /dev/null differ diff --git a/packs/journaux/000075.log b/packs/journaux/000080.log similarity index 100% rename from packs/journaux/000075.log rename to packs/journaux/000080.log diff --git a/packs/journaux/MANIFEST-000073 b/packs/journaux/MANIFEST-000073 deleted file mode 100644 index 28ce1c4..0000000 Binary files a/packs/journaux/MANIFEST-000073 and /dev/null differ diff --git a/packs/magie-sorts/000161.log b/packs/magie-sorts/000166.log similarity index 100% rename from packs/magie-sorts/000161.log rename to packs/magie-sorts/000166.log diff --git a/packs/magie-sorts/MANIFEST-000159 b/packs/magie-sorts/MANIFEST-000159 deleted file mode 100644 index 5d54edf..0000000 Binary files a/packs/magie-sorts/MANIFEST-000159 and /dev/null differ diff --git a/packs/pouvoirs/000358.log b/packs/pouvoirs/000363.log similarity index 100% rename from packs/pouvoirs/000358.log rename to packs/pouvoirs/000363.log diff --git a/packs/pouvoirs/MANIFEST-000356 b/packs/pouvoirs/MANIFEST-000356 deleted file mode 100644 index 9d03d41..0000000 Binary files a/packs/pouvoirs/MANIFEST-000356 and /dev/null differ diff --git a/packs/profils/000354.log b/packs/profils/000358.log similarity index 100% rename from packs/profils/000354.log rename to packs/profils/000358.log diff --git a/packs/profils/MANIFEST-000352 b/packs/profils/MANIFEST-000352 deleted file mode 100644 index 9a14348..0000000 Binary files a/packs/profils/MANIFEST-000352 and /dev/null differ diff --git a/packs/scenes/000326.log b/packs/scenes/000331.log similarity index 100% rename from packs/scenes/000326.log rename to packs/scenes/000331.log diff --git a/packs/scenes/MANIFEST-000324 b/packs/scenes/MANIFEST-000324 deleted file mode 100644 index c0f36d8..0000000 Binary files a/packs/scenes/MANIFEST-000324 and /dev/null differ diff --git a/templates/actor-pnj-sheet.hbs b/templates/actor-pnj-sheet.hbs index fde0604..6bd3183 100644 --- a/templates/actor-pnj-sheet.hbs +++ b/templates/actor-pnj-sheet.hbs @@ -4,7 +4,7 @@
- +

diff --git a/templates/actor-sheet.hbs b/templates/actor-sheet.hbs index 1589cc0..3d91cc7 100644 --- a/templates/actor-sheet.hbs +++ b/templates/actor-sheet.hbs @@ -4,7 +4,7 @@
- +