diff --git a/module/actor.js b/module/actor.js index 26d371b1..0364d399 100644 --- a/module/actor.js +++ b/module/actor.js @@ -3142,7 +3142,12 @@ export class RdDActor extends Actor { case 'chance-actuelle': case 'chance actuelle': return carac.chance; } - let entry = Misc.findFirstLike(name, Object.entries(carac), { mapper: it => it[1].label, description: 'caractéristique' }); + + const caracList = Object.entries(carac); + let entry = Misc.findFirstLike(name, caracList, { mapper: it => it[0], description: 'caractéristique' }); + if (!entry || entry.length ==0) { + entry = Misc.findFirstLike(name, caracList, { mapper: it => it[1].label, description: 'caractéristique' }); + } return entry && entry.length > 0 ? carac[entry[0]] : undefined; } diff --git a/styles/img/reve-de-dragon-cover.webp b/styles/img/reve-de-dragon-cover.webp new file mode 100644 index 00000000..508c3dc4 Binary files /dev/null and b/styles/img/reve-de-dragon-cover.webp differ diff --git a/styles/img/reve-de-dragon-icon.webp b/styles/img/reve-de-dragon-icon.webp new file mode 100644 index 00000000..97638d5e Binary files /dev/null and b/styles/img/reve-de-dragon-icon.webp differ diff --git a/system.json b/system.json index 263f1b7d..e85c0711 100644 --- a/system.json +++ b/system.json @@ -338,5 +338,23 @@ "gridDistance": 1, "gridUnits": "m", "primaryTokenAttribute": "sante.vie", - "secondaryTokenAttribute": "sante.endurance" + "secondaryTokenAttribute": "sante.endurance", + "manifestPlusVersion": "1.2.0", + "media": [ + { + "type": "icon", + "url": "systems/foundryvtt-reve-de-dragon/styles/img/reve-de-dragon-icon.webp", + "caption": "Logo Rêve de Dragon" + }, + { + "type": "cover", + "url": "systems/foundryvtt-reve-de-dragon/styles/img/reve-de-dragon-cover.webp", + "caption": "Logo Rêve de Dragon" + }, + { + "type": "screenshot", + "url": "http://www.lahiette.com/leratierbretonnien/wp-content/uploads/2020/11/Screenshot_20201128_181102.webp", + "caption": "Capture d'écran de Rêve de Dragon sur Foundry" + } + ] } \ No newline at end of file