From 55dfef8932e1cd804d8c47e9c4de636241976d71 Mon Sep 17 00:00:00 2001 From: Nikhil Nagarajan Date: Sat, 15 Nov 2025 14:08:16 -0500 Subject: [PATCH] Handlebar setup for chat levelup summary. --- lang/en.json | 12 ++- templates/ui/chat/levelupSummary.hbs | 115 +++++++++++++++++++++++++++ 2 files changed, 126 insertions(+), 1 deletion(-) create mode 100644 templates/ui/chat/levelupSummary.hbs diff --git a/lang/en.json b/lang/en.json index d6b19a45..4b4d6fa3 100755 --- a/lang/en.json +++ b/lang/en.json @@ -506,25 +506,35 @@ }, "summary": { "levelAchievements": "Level Achievements", + "levelAchievementsChat":"Achievements", "levelAdvancements": "Level Advancements", + "levelAdvancementsChat":"Advancememts", "proficiencyIncrease": "Proficiency Increased: {proficiency}", + "proficiencyIncreaseChat": "Proficiency Increased", "hpIncrease": "Hit Points Increased: {hitPoints}", + "hpIncreaseChat": "Hit Points Increased", "stressIncrease": "Stress Increased: {stress}", + "stressIncreaseChat": "Stress Increased", "evasionIncrease": "Evasion Increased: {evasion}", + "evasionIncreaseChat": "Evasion Increased", "damageThresholdMajorIncrease": "Major: {threshold}", "damageThresholdSevereIncrease": "Severe: {threshold}", "newExperiences": "New Experiences", "experiencePlaceholder": "A new experience..", "domainCards": "Domain Cards", + "domainCardsChat": "New Domain Cards", "subclass": "Subclass", + "subclassChat": "Subclass Advanced", "multiclass": "Multiclass", "traits": "Increased Traits", "experienceIncreases": "Experience Increases", "damageThresholds": "Damage Thresholds", + "damageThresholdsChat": "Thresholds Increased", "vicious": "Vicious", "damageIncreased": "Damage Increased: {damage}", "rangeIncreased": "Range Increased: {range}", - "simpleFeature": "Feature: {feature}" + "simpleFeature": "Feature: {feature}", + "simpleFeatureChat": "Feature Added" }, "takeLevelUp": "Finish Level Up", "tier2": { diff --git a/templates/ui/chat/levelupSummary.hbs b/templates/ui/chat/levelupSummary.hbs new file mode 100644 index 00000000..0e4c8475 --- /dev/null +++ b/templates/ui/chat/levelupSummary.hbs @@ -0,0 +1,115 @@ +
+ {{!--Achievements--}} + {{#if this.achievements}} +
+
+ {{localize "DAGGERHEART.APPLICATIONS.Levelup.summary.levelAchievementsChat"}} +
+
    + {{!--Achievements Profieciency--}} + {{#if this.achievements.proficiency.shown}} +
  • + {{localize "DAGGERHEART.APPLICATIONS.Levelup.summary.proficiencyIncreaseChat"}} +
  • + {{/if}} + {{!--Achievements Damage Thresholds--}} + {{#if this.achievements.damageThresholds}} +
  • + {{localize "DAGGERHEART.APPLICATIONS.Levelup.summary.damageThresholdsChat"}} +
  • + {{/if}} + {{!--Achievements Domain Cards--}} + {{#if this.achievements.domainCards.shown}} +
  • + {{localize "DAGGERHEART.APPLICATIONS.Levelup.summary.domainCardsChat"}} +
  • + {{/if}} + {{!--Achievements Experiences--}} + {{#if this.achievements.experiences.shown}} +
  • + {{localize "DAGGERHEART.APPLICATIONS.Levelup.summary.newExperiences"}} +
  • + {{/if}} +
+
+ {{/if}} + {{!--Advancements--}} +
+
+ {{localize "DAGGERHEART.APPLICATIONS.Levelup.summary.levelAdvancementsChat"}} +
+
    + {{!--Advancements Statistics--}} + {{#if this.advancements.statistics.shown}} + {{!--Advancements Statistics Proficiency--}} + {{#if this.advancements.statistics.proficiency.shown}} +
  • + {{localize "DAGGERHEART.APPLICATIONS.Levelup.summary.proficiencyIncreaseChat"}} +
  • + {{/if}} + {{!--Advancements Statistics Hitpoints--}} + {{#if this.advancements.statistics.hitPoints.shown}} +
  • + {{localize "DAGGERHEART.APPLICATIONS.Levelup.summary.hpIncreaseChat"}} +
  • + {{/if}} + {{!--Advancements Statistics Stress--}} + {{#if this.advancements.statistics.stress.shown}} +
  • + {{localize "DAGGERHEART.APPLICATIONS.Levelup.summary.stressIncreaseChat"}} +
  • + {{/if}} + {{!--Advancements Statistics Evasion--}} + {{#if this.advancements.statistics.evasion.shown}} +
  • + {{localize "DAGGERHEART.APPLICATIONS.Levelup.summary.evasionIncreaseChat"}} +
  • + {{/if}} + {{/if}} + {{!--Advancements Traits--}} + {{#if this.advancements.traits}} +
  • + {{localize "DAGGERHEART.APPLICATIONS.Levelup.summary.traits"}} +
  • + {{/if}} + {{!--Advancements Domain Cards--}} + {{#if this.advancements.domainCards}} +
  • + {{localize "DAGGERHEART.APPLICATIONS.Levelup.summary.domainCardsChat"}} +
  • + {{/if}} + {{!--Advancements Experiences--}} + {{#if this.advancements.experiences}} +
  • + {{localize "DAGGERHEART.APPLICATIONS.Levelup.summary.newExperiences"}} +
  • + {{/if}} + {{!--Advancements Subclass--}} + {{#if this.advancements.subclass}} +
  • + {{localize "DAGGERHEART.APPLICATIONS.Levelup.summary.subclassChat"}} +
  • + {{/if}} + {{!--Advancements Multiclass (Added or Advanced tag to be figured out later)--}} + {{#if this.advancements.multiclass}} +
  • + {{localize "DAGGERHEART.APPLICATIONS.Levelup.summary.multiclass"}} +
  • + {{/if}} + {{!--Advancements Vicious--}} + {{#if this.advancements.vicious.damage}} + {{#if this.advancements.vicious.range}} +
  • + {{localize "DAGGERHEART.APPLICATIONS.Levelup.summary.vicious"}} +
  • + {{/if}} + {{/if}} + {{!--Advancements Features--}} + {{#if this.advancements.simple}} +
  • + {{localize "DAGGERHEART.APPLICATIONS.Levelup.summary.simpleFeatureChat"}} +
  • + {{/if}} +
+
+
\ No newline at end of file