diff --git a/CHANGELOG.md b/CHANGELOG.md index 77a5af90f..350f3d4da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# v 0.1.1 + +* Some monsters did not download avatar images correctly + # v 0.1.0 * Monster imports enabled for Patreon supporters diff --git a/module.json b/module.json index ac5f434ec..e47201751 100755 --- a/module.json +++ b/module.json @@ -2,8 +2,8 @@ "name": "ddb-importer", "title": "D&D Beyond Importer", "description": "Import your dndbeyond.com characters, spells and monsters at super speed!", - "version": "0.1.0", - "download": "https://github.com/mrprimate/ddb-importer/releases/download/0.1.0/ddb-importer.zip", + "version": "0.1.1", + "download": "https://github.com/mrprimate/ddb-importer/releases/download/0.1.1/ddb-importer.zip", "manifest": "https://github.com/mrprimate/ddb-importer/releases/download/latest/module.json", "url": "https://github.com/mrprimate/ddb-importer", "minimumCoreVersion": "0.7.5", diff --git a/src/muncher/monster/monster.js b/src/muncher/monster/monster.js index 8e870150d..9b0a567e0 100644 --- a/src/muncher/monster/monster.js +++ b/src/muncher/monster/monster.js @@ -40,10 +40,11 @@ export function parseMonsters(monsterData) { foundryActor.name = monster.name; // logger.info("********************"); // logger.info(monster.name); + let img = (monster.basicAvatarUrl) ? monster.basicAvatarUrl : monster.largeAvatarUrl; foundryActor.token.name = monster.name; foundryActor.flags.monsterMunch = { url: monster.url, - img: monster.basicAvatarUrl, + img: (img) ? img : monster.avatarUrl, tokenImg: monster.avatarUrl, };