From 35a7bbf9749239d9d10e5b23a998ff39e8c1c76d Mon Sep 17 00:00:00 2001 From: Vlyan Date: Wed, 16 Mar 2022 18:20:47 +0100 Subject: [PATCH] Fixed linked actor image compatibility with Tokenizer. --- CHANGELOG.md | 2 ++ README.md | 2 +- system/assets/icons/techs/inversion.svg | 2 +- system/assets/icons/techs/mantra.svg | 2 +- system/scripts/actor.js | 4 +++- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 99eb2ce..9d2c613 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,8 @@ - Properties sheet: - Fixed loading properties from custom compendiums. - Added a line strike on removed/unknown property and ability to remove them. +- Added Inversion and Mantra icon and tag symbols (thanks to TesserWract). +- Fixed linked actor image compatibility with Tokenizer. - Fixed svg height/width for firefox. Technique syntaxe "quick" explanation : diff --git a/README.md b/README.md index 207d404..2f3f258 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Legend of the Five Rings (5th Edition) by [Edge Studio](https://edge-studio.net/) +# Legend of the Five Rings (5th Edition) authorized by [Edge Studio](https://edge-studio.net/) ![Banner Legend of the Five Rings](./l5rBan.jpg) [![Forge Installs](https://img.shields.io/badge/dynamic/json?label=Forge%20Installs&query=package.installs&suffix=%25&url=https%3A%2F%2Fforge-vtt.com%2Fapi%2Fbazaar%2Fpackage%2Fl5r5e&colorB=4aa94a)](https://forge-vtt.com/bazaar#package=l5r5e) diff --git a/system/assets/icons/techs/inversion.svg b/system/assets/icons/techs/inversion.svg index db30d8b..280e0f3 100644 --- a/system/assets/icons/techs/inversion.svg +++ b/system/assets/icons/techs/inversion.svg @@ -1,6 +1,6 @@ - + diff --git a/system/assets/icons/techs/mantra.svg b/system/assets/icons/techs/mantra.svg index 910ae58..ec0ebd8 100644 --- a/system/assets/icons/techs/mantra.svg +++ b/system/assets/icons/techs/mantra.svg @@ -1,6 +1,6 @@ - + diff --git a/system/scripts/actor.js b/system/scripts/actor.js index 88b4ede..9fd18d9 100644 --- a/system/scripts/actor.js +++ b/system/scripts/actor.js @@ -100,10 +100,12 @@ export class ActorL5r5e extends Actor { // Only on linked Actor if (!!data["token.actorLink"] || (data["token.actorLink"] === undefined && this.data.token.actorLink)) { - // Update the token name/image if the sheet name/image changed, but only if they was previously the same + // Update the token name/image if the sheet name/image changed, but only if + // they was previously the same, and token img was not set in same time ["name", "img"].forEach((fieldName) => { if ( data[fieldName] && + !data["token." + fieldName] && this.data[fieldName] === this.data.token[fieldName] && this.data[fieldName] !== data[fieldName] ) {