diff --git a/lang/en.json b/lang/en.json index 0290c3df..1adf4bc6 100755 --- a/lang/en.json +++ b/lang/en.json @@ -1210,6 +1210,10 @@ "dualityRoll": "Duality Roll", "enabled": "Enabled", "evasion": "Evasion", + "experience": { + "single": "Experience", + "plural": "Experiences" + }, "fear": "Fear", "features": "Features", "hitPoints": "Hit Points", @@ -1222,6 +1226,7 @@ "modifier": "Modifier", "multiclass": "Multiclass", "none": "None", + "partner": "Partner", "proficiency": "Proficiency", "quantity": "Quantity", "range": "Range", diff --git a/module/data/actor/companion.mjs b/module/data/actor/companion.mjs index e94ea73c..005d7a83 100644 --- a/module/data/actor/companion.mjs +++ b/module/data/actor/companion.mjs @@ -27,6 +27,13 @@ export default class DhCompanion extends BaseDataActor { stress: resourceField(3, 'DAGGERHEART.GENERAL.stress', true), hope: new fields.NumberField({ initial: 0, integer: true, label: 'DAGGERHEART.GENERAL.hope' }) }), + evasion: new fields.NumberField({ + required: true, + min: 1, + initial: 10, + integer: true, + label: 'DAGGERHEART.GENERAL.evasion' + }), experiences: new fields.TypedObjectField( new fields.SchemaField({ name: new fields.StringField({}), diff --git a/styles/less/sheets/actors/companion/details.less b/styles/less/sheets/actors/companion/details.less index 4edf8aa9..2e76cf44 100644 --- a/styles/less/sheets/actors/companion/details.less +++ b/styles/less/sheets/actors/companion/details.less @@ -3,7 +3,8 @@ .application.sheet.daggerheart.actor.dh-style.companion { .partner-section, - .attack-section { + .attack-section, + .experience-list { display: flex; flex-direction: column; align-items: center; @@ -12,6 +13,7 @@ display: flex; gap: 15px; align-items: center; + width: 100%; h3 { font-size: 20px; diff --git a/templates/sheets-settings/companion-settings/details.hbs b/templates/sheets-settings/companion-settings/details.hbs index 97b04b24..31be666c 100644 --- a/templates/sheets-settings/companion-settings/details.hbs +++ b/templates/sheets-settings/companion-settings/details.hbs @@ -11,13 +11,13 @@ {{formGroup systemFields.resources.fields.stress.fields.max value=document.system.resources.stress.max label='Max Stress'}}
-
- - +
+ + +
-
\ No newline at end of file diff --git a/templates/sheets/actors/companion/details.hbs b/templates/sheets/actors/companion/details.hbs index eb3665a3..0f5587f3 100644 --- a/templates/sheets/actors/companion/details.hbs +++ b/templates/sheets/actors/companion/details.hbs @@ -6,7 +6,7 @@
-

Partner

+

{{localize "DAGGERHEART.GENERAL.partner"}}

{{#if document.system.partner}} @@ -20,7 +20,7 @@
-

Attack

+

{{localize "DAGGERHEART.GENERAL.attack"}}

+
+ +

{{localize "DAGGERHEART.GENERAL.experience.plural"}}

+ +
{{#each source.system.experiences as |experience id|}}