Lil bit of cleanup
This commit is contained in:
parent
dd8ba4df83
commit
de0457a111
3 changed files with 7 additions and 4 deletions
|
|
@ -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,
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue