RC-60 | Ammo | Layout

This commit is contained in:
Oliver-Akins 2025-01-26 15:59:58 -07:00
parent 1bdaa958ad
commit 517913f20c
5 changed files with 37 additions and 31 deletions

View file

@ -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;

View file

@ -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