Implement stretching

This commit is contained in:
Dominic Ferrando
2025-11-08 18:52:48 -05:00
parent 9485c03f25
commit 8adb1c4566
8 changed files with 395 additions and 373 deletions
+20
View File
@@ -50,6 +50,9 @@
peakAge: String(
defaultStandards.cfg.activity[activity].peakAge,
),
stretch: String(
defaultStandards.cfg.activity[activity].stretch,
),
},
];
}),
@@ -80,6 +83,7 @@
difficultyModifier:
+input.cfg.activity[activity].difficultyModifier,
peakAge: +input.cfg.activity[activity].peakAge,
stretch: +input.cfg.activity[activity].stretch,
},
]),
),
@@ -143,6 +147,22 @@
bind:value={input.cfg.global.maxLevel}
/>
</label>
<label>
<span class="label mb-1">Stretch</span>
<input
class="input w-full"
type="number"
min="0"
max="10"
step="1"
bind:value={
input.cfg.activity[selected.activity].stretch
}
disabled={!selected.cfg.activity[selected.activity]
.enableGeneration}
/>
</label>
</div>
</fieldset>