Correct my 2 off-by-one errors so that the gear list only spans 12 rows instead of 14

This commit is contained in:
Oliver-Akins 2025-04-11 23:52:34 -06:00
parent dc4411a2b3
commit 1bf1b2cd91

View file

@ -122,7 +122,7 @@ export class HeroSkillsCardV1 extends GenericAppMixin(HandlebarsApplicationMixin
}; };
if (ctx.gear.length < limit) { if (ctx.gear.length < limit) {
for (let i = ctx.gear.length - 1; i <= limit; i++) { for (let i = ctx.gear.length; i < limit; i++) {
ctx.gear.push({ ctx.gear.push({
index: ctx.gear.length, index: ctx.gear.length,
uuid: ``, uuid: ``,