The leagues, phase 4: the duel learns, tin tiers by league, level buffs, the board wears the badge

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
wuwiandClaude Fable 5 committed 2026-08-29 12:53:12 +02:00
1 parent 76d88030e5
commit 787877bce6
10 files changed
+175 -24

No files matched your search

+11
View File
@@ -88,6 +88,17 @@ export function award(kind, n = 1) {
return amt;
}
// ---------------------------------------------------------------- the level is you ----
// Phase 4's defensive buffs, through existing dials only: level 1 is the shipped game (factor 1)
// and the cap stays honest — a maxed profile survives volleys better, it does not stop dying.
// Read at the dial sites (meleeCooldown's floor, the parry's reach/arm, hurtPlayer's grace).
export function bonus() {
const f = (levelAt(prof.xp) - 1) / (LEVEL_CAP - 1);
return { melee: 1 - 0.25 * f, // the swish floor drops to 75% — panic scales with mastery
parry: 1 + 0.25 * f, // the parry reaches a quarter further
grace: 1 + 0.35 * f }; // a volley needs a third longer to land twice
}
// ---------------------------------------------------------------- the promotion ----
// A cup win that moved the league parks its ceremony here (beats.cupWon writes, main.maybeRestart
// consumes once the summary is tapped away). Module-local and consumed-on-read, the same shape as