diff --git a/langs/en-ca.json b/langs/en-ca.json index 6d4eca9..adc0b39 100644 --- a/langs/en-ca.json +++ b/langs/en-ca.json @@ -18,6 +18,7 @@ "HeroSkillsCardV1": "Hero Skill Card" }, "common": { + "ammo": "Ammo", "quantity": "Quantity", "equipped": "Equipped", "edit": "Edit", diff --git a/module/Apps/ActorSheets/CombinedHeroSheet.mjs b/module/Apps/ActorSheets/CombinedHeroSheet.mjs index c27efcb..8ca46db 100644 --- a/module/Apps/ActorSheets/CombinedHeroSheet.mjs +++ b/module/Apps/ActorSheets/CombinedHeroSheet.mjs @@ -79,6 +79,7 @@ export class CombinedHeroSheet extends GenericAppMixin(HandlebarsApplicationMixi ctx = await HeroSummaryCardV1.prepareLevelData(ctx); ctx = await HeroSkillsCardV1.prepareGear(ctx); + ctx = await HeroSkillsCardV1.prepareAmmo(ctx); Logger.debug(`Context:`, ctx); return ctx; diff --git a/module/Apps/ActorSheets/HeroSkillsCardV1.mjs b/module/Apps/ActorSheets/HeroSkillsCardV1.mjs index 248ab47..9d406bc 100644 --- a/module/Apps/ActorSheets/HeroSkillsCardV1.mjs +++ b/module/Apps/ActorSheets/HeroSkillsCardV1.mjs @@ -80,6 +80,7 @@ export class HeroSkillsCardV1 extends GenericAppMixin(HandlebarsApplicationMixin ctx.actor = this.document; ctx = await HeroSkillsCardV1.prepareGear(ctx); + ctx = await HeroSkillsCardV1.prepareAmmo(ctx); Logger.debug(`Context:`, ctx); return ctx; @@ -116,6 +117,11 @@ export class HeroSkillsCardV1 extends GenericAppMixin(HandlebarsApplicationMixin return ctx; }; + + static async prepareAmmo(ctx) { + ctx.ammo = 0; + return ctx; + }; // #endregion // #region Actions diff --git a/templates/Apps/HeroSkillsCardV1/content.hbs b/templates/Apps/HeroSkillsCardV1/content.hbs index b2752e1..62b3c5b 100644 --- a/templates/Apps/HeroSkillsCardV1/content.hbs +++ b/templates/Apps/HeroSkillsCardV1/content.hbs @@ -60,14 +60,21 @@ {{/each}} +
+
+ {{ rc-i18n "RipCrypt.common.ammo"}} +
+
+ {{ ammo }} +
+
+ + {{!-- * Currencies --}}
- <{{{ifThen meta.editable "label" "div" }}} - for="{{meta.idp}}-gold" - class="label" - > +
- <{{{ifThen meta.editable "label" "div" }}} - for="{{meta.idp}}-silver" - class="label" - > +
- <{{{ifThen meta.editable "label" "div" }}} - for="{{meta.idp}}-copper" - class="label" - > +