From de0457a1110fcff460ec83b44d2004f18a37e524 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sun, 26 Jan 2025 15:16:51 -0700 Subject: [PATCH] Lil bit of cleanup --- module/Apps/ActorSheets/HeroSkillsCardV1.mjs | 5 ++++- module/Apps/elements/Icon.mjs | 4 ++-- module/data/Item/Protector.mjs | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/module/Apps/ActorSheets/HeroSkillsCardV1.mjs b/module/Apps/ActorSheets/HeroSkillsCardV1.mjs index c174b5d..248ab47 100644 --- a/module/Apps/ActorSheets/HeroSkillsCardV1.mjs +++ b/module/Apps/ActorSheets/HeroSkillsCardV1.mjs @@ -107,7 +107,10 @@ export class HeroSkillsCardV1 extends GenericAppMixin(HandlebarsApplicationMixin for (let i = ctx.gear.length - 1; i <= limit; i++) { ctx.gear.push({ index: ctx.gear.length, - uuid: ``, name: ``, empty: true }); + uuid: ``, + name: ``, + empty: true, + }); }; }; diff --git a/module/Apps/elements/Icon.mjs b/module/Apps/elements/Icon.mjs index 87d2c7b..3a8e961 100644 --- a/module/Apps/elements/Icon.mjs +++ b/module/Apps/elements/Icon.mjs @@ -96,7 +96,7 @@ export class RipCryptIcon extends StyledShadowElement(HTMLElement) { async #getIcon(path) { // Cache hit! if (this.constructor._cache.has(path)) { - Logger.debug(`Icon ${path} cache hit`); + Logger.debug(`Image ${path} cache hit`); return this.constructor._cache.get(path); }; @@ -110,7 +110,7 @@ export class RipCryptIcon extends StyledShadowElement(HTMLElement) { return; }; - Logger.debug(`Adding icon ${path} to the cache`); + Logger.debug(`Adding image ${path} to the cache`); const svg = this.#parseSVG(await r.text()); this.constructor._cache.set(path, svg); return svg; diff --git a/module/data/Item/Protector.mjs b/module/data/Item/Protector.mjs index f6c202f..96e04f3 100644 --- a/module/data/Item/Protector.mjs +++ b/module/data/Item/Protector.mjs @@ -53,7 +53,7 @@ export class ProtectorData extends CommonItemData { { id: `quantity`, type: `integer`, - label: `RipCrypt.Apps.quantity`, + label: `RipCrypt.common.quantity`, path: `system.quantity`, value: this.quantity, min: 0,