Warm-up-Ramp und Prescription snappen auf das Inkrement der Uebung (weightIncrement), nicht auf den Einheiten-Default — in session-start, Add-Exercise, Progression-Sheet und Swap
This commit is contained in:
1 parent
b5769b9c38
commit
039a280777
4 files changed
+34
-8
No files matched your search
@@ -577,7 +577,7 @@ function ActiveWorkout() {
|
||||
if (!activeEntry || activeEntry.id !== entryId) return
|
||||
const full = { ...cfg, id: activeEntry.id }
|
||||
const activeRoutine = s.routines.find(r => r.id === s.active.routineId)
|
||||
const step = defaultIncrement(activeEntry.id, s.unit)
|
||||
const step = modeOf(full) === 'reps' ? weightIncrement(full, s.unit) : defaultIncrement(activeEntry.id, s.unit)
|
||||
// A config without a set count keeps the rows the session already has.
|
||||
if (!(full.sets > 0)) full.sets = activeEntry.sets.filter(x => !isWarmupRow(x)).length || 1
|
||||
const plan = nextPrescription(s, full, activeRoutine)
|
||||
@@ -840,11 +840,11 @@ function ActiveWorkout() {
|
||||
const full = { ...cfg, id: ex.id }
|
||||
const plan = freestyle ? null : nextPrescription(s, full, s.routines.find(r => r.id === s.active.routineId))
|
||||
const sets = buildSets(s, full, {
|
||||
step: defaultIncrement(ex.id, s.unit),
|
||||
step: modeOf(full) === 'reps' ? weightIncrement(full, s.unit) : defaultIncrement(ex.id, s.unit),
|
||||
...(freestyle ? { preferLast: true } : {}),
|
||||
...(plan?.kind === 'off' ? { useTarget: true } : {})
|
||||
})
|
||||
const progressed = freestyle ? sets : applyPrescription(sets, plan, defaultIncrement(ex.id, s.unit))
|
||||
const progressed = freestyle ? sets : applyPrescription(sets, plan, modeOf(full) === 'reps' ? weightIncrement(full, s.unit) : defaultIncrement(ex.id, s.unit))
|
||||
const insertAt = insertionIndexAfterCurrentUnit(supersetUnits(s.active.entries), s.active.cur, s.active.entries.length)
|
||||
s.active.entries.splice(insertAt, 0, { id: ex.id, target: { ...cfg }, plan, sets: applyIntensifierPlan(progressed, full) })
|
||||
s.active.cur = insertAt
|
||||
|
||||
Reference in new issue
Block a user