Rework to level up once at a time

This commit is contained in:
WBHarry 2025-06-06 02:33:38 +02:00
parent 37b8c9bd37
commit 43444dfd42
16 changed files with 653 additions and 739 deletions

View file

@ -5,9 +5,9 @@
>
<div class="section-container">
<div class="tiers-container">
{{#each this.levelup.tierCheckboxGroups as |tier key|}}
<fieldset class="tier-container {{#if (not tier.tierActive)}}inactive{{/if}}">
<legend>{{tier.tierName}}</legend>
{{#each this.levelup.tiersForRendering as |tier key|}}
<fieldset class="tier-container {{#if (not tier.active)}}inactive{{/if}}">
<legend>{{tier.name}}</legend>
{{#each tier.groups}}
<div class="checkbox-group-container">
@ -19,9 +19,12 @@
type="checkbox" class="selection-checkbox{{#if (gt this.cost 1)}} multi{{/if}}" {{checked this.selected}} {{#if this.disabled}}disabled{{/if}}
data-tier="{{this.tier}}"
data-level="{{this.level}}"
data-option="{{this.optionKey}}"
data-option="{{this.type}}"
data-checkbox-nr="{{this.checkboxNr}}"
data-cost="{{this.cost}}"
data-cost="{{this.minCost}}"
data-amount="{{this.amount}}"
data-value="{{this.value}}"
data-type="{{this.type}}"
/>
{{/each}}
</div>