diff --git a/css/fvtt-cthulhu-eternal.css b/css/fvtt-cthulhu-eternal.css index 1a2ebf9..06973b2 100644 --- a/css/fvtt-cthulhu-eternal.css +++ b/css/fvtt-cthulhu-eternal.css @@ -382,13 +382,21 @@ i.fvtt-cthulhu-eternal { text-shadow: 0 0 8px var(--color-shadow-primary); cursor: pointer; } +.fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristics .protagonist-characteristic .rollable { + min-width: 3rem; + max-width: 3rem; +} +.fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristics .protagonist-characteristic .char-text { + margin-left: 0.5rem; +} .fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristics .protagonist-characteristic .form-group { - flex: 1; + flex: 0; padding-left: 5px; } .fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristics .protagonist-characteristic .form-group .form-fields { + font-size: 1.1rem; flex: none; - width: 70px; + width: 40px; } .fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristic-play { min-width: 225px; diff --git a/module/applications/sheets/mentaldisorder-sheet.mjs b/module/applications/sheets/mentaldisorder-sheet.mjs index 66d2a05..0e25d2e 100644 --- a/module/applications/sheets/mentaldisorder-sheet.mjs +++ b/module/applications/sheets/mentaldisorder-sheet.mjs @@ -18,4 +18,12 @@ export default class CthulhuEternalMentalDisorderSheet extends CthulhuEternalIte template: "systems/fvtt-cthulhu-eternal/templates/mentaldisorder.hbs", }, } + + /** @override */ + async _prepareContext() { + const context = await super._prepareContext() + context.enrichedDescription = await TextEditor.enrichHTML(this.document.system.description, { async: true }) + return context + } + } diff --git a/styles/protagonist.less b/styles/protagonist.less index c0bb830..2736d5a 100644 --- a/styles/protagonist.less +++ b/styles/protagonist.less @@ -164,12 +164,20 @@ text-shadow: 0 0 8px var(--color-shadow-primary); cursor: pointer; } + .rollable { + min-width: 3rem; + max-width: 3rem; + } + .char-text { + margin-left: 0.5rem; + } .form-group { - flex: 1; + flex: 0; padding-left: 5px; .form-fields { + font-size: 1.1rem; flex: none; - width: 70px; + width: 40px; } } } diff --git a/templates/protagonist-biography.hbs b/templates/protagonist-biography.hbs index d9ac0ec..88ef483 100644 --- a/templates/protagonist-biography.hbs +++ b/templates/protagonist-biography.hbs @@ -9,7 +9,7 @@ {{formField systemFields.biodata.fields.height value=system.biodata.height name="system.biodata.height" localize=true classes="field-label"}} {{formField systemFields.biodata.fields.eyes value=system.biodata.eyes name="system.biodata.eyes" localize=true classes="field-label"}} {{formField systemFields.biodata.fields.hair value=system.biodata.hair name="system.biodata.hair" localize=true classes="field-label"}} - {{formField systemFields.biodata.fields.gender value=system.biodata.gender name="system.biodata.gender" localize=true classes="field-label"}} + {{formField systemFields.biodata.fields.home value=system.biodata.home name="system.biodata.home" localize=true classes="field-label"}} {{formField systemFields.biodata.fields.birthplace value=system.biodata.birthplace name="system.biodata.birthplace" localize=true classes="field-label"}} diff --git a/templates/protagonist-main.hbs b/templates/protagonist-main.hbs index d6e5c96..2ae8453 100644 --- a/templates/protagonist-main.hbs +++ b/templates/protagonist-main.hbs @@ -81,42 +81,42 @@ "CTHULHUETERNAL.Label.strShort"}} {{formField systemFields.characteristics.fields.str.fields.value value=system.characteristics.str.value rootId=partId disabled=isPlayMode }} - {{mul system.characteristics.str.value 5}} +