Module 14 · In Studio · challenge 3 of 3 in this lesson
stepCost implements 'linear', 'poly' and 'exp' curve modes for tier >= 1
A test in Studio grades it and prints a pass code.
Open
Level 3, Professional
Challenge
Implement the curve generator, pacing validator and prestige reset logic in challenges/work/progression_curves.luau. The written solution is challenges/solutions/progression-design.md. In Play on the server, run game.ServerScriptService.RunGameTests:Invoke("progression-design", "progression-design-curves") and paste the pass code here.
- Start from
- The game at milestone m14 (download)
- Grade it
- In Studio, press Play, then run
game.ServerScriptService.RunGameTests:Invoke("progression-design", "progression-design-curves")in the server command bar. Copy the pass code from Output.
Done means
- stepCost implements 'linear', 'poly' and 'exp' curve modes for tier >= 1
- cumulativeThresholds sums stepCost from 1..count and reproduces Module 7's exact 10-tier season table
- minutesToUnlock converts cost into minutes using coinsPerRound and roundSeconds
- checkPacing enforces strictly increasing costs and adjacent ratios <= maxRatio, returning (ok, firstBadTier)
- canPrestige and applyPrestige gate on requiredTier, reset soft fields only, increment prestigeCount, append 'Rebuild_<n>' to markers, and never touch speedPassOwned or recentPurchaseIds
- challenges/progression-design.luau prints TEST PASS for every check