diff --git a/system/assets/hovers.json b/system/assets/hovers.json index 6ff68c7..47c26b3 100644 --- a/system/assets/hovers.json +++ b/system/assets/hovers.json @@ -28,5 +28,14 @@ "reliable": "pg.100", "subtle": "pg.100", "unreliable": "pg.100" + }, + "vehiclesqualities": { + "cargo": "pg.124", + "cumbersome": "pg.124", + "enclosed": "pg.124", + "exposed": "pg.124", + "highPerformance": "pg.124", + "singleSeat": "pg.124", + "tough": "pg.124" } } \ No newline at end of file diff --git a/system/src/hooks/readyHook.mjs b/system/src/hooks/readyHook.mjs index b7d9ce7..9d9a1f1 100644 --- a/system/src/hooks/readyHook.mjs +++ b/system/src/hooks/readyHook.mjs @@ -46,6 +46,7 @@ async function prepareTooltips() { CONFIG.AC2D20.WEAPONS.effects = content.effects; CONFIG.AC2D20.WEAPONS.qualities = content.qualities; + CONFIG.AC2D20.WEAPONS.vehiclesqualities = content.vehiclesqualities; for await (const key of Object.keys(content.effects)) { let qEnriched = await TextEditor.enrichHTML(content.effects[key], {async: true}); @@ -56,4 +57,9 @@ async function prepareTooltips() { let qEnriched = await TextEditor.enrichHTML(content.qualities[key], {async: true}); content.qualities[key] = qEnriched.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """).replaceAll("'", "'"); } + + for await (const key of Object.keys(content.vehiclesqualities)) { + let qEnriched = await TextEditor.enrichHTML(content.vehiclesqualities[key], {async: true}); + content.vehiclesqualities[key] = qEnriched.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """).replaceAll("'", "'"); + } } diff --git a/system/templates/actor/parts/vehicle-abilities.hbs b/system/templates/actor/parts/vehicle-abilities.hbs index e6c0737..95b6c27 100644 --- a/system/templates/actor/parts/vehicle-abilities.hbs +++ b/system/templates/actor/parts/vehicle-abilities.hbs @@ -86,7 +86,7 @@
{{#each system.qualities as |item key|}}
-