Sub topic 11
Cost Curves Across Tiers and Progression
This chapter assumes you have read the earlier chapters on power-law curves and the power-to-cost ratio. You should be comfortable with a cost function such as scale * power ** exponent and with short Python examples.
A single curve prices content well inside one band of power. Real games usually have more than one band. Units come in tiers, and players climb a progression ladder of levels, upgrades, and unlocks. This chapter covers how to build a curve that spans tiers and how to price the steps of a progression.
Why one curve is rarely enough
A fitted power law works over the range of data it was fitted on. Stretch it across a whole game and three problems appear.
- Early content is tiny and late content is huge, so a single exponent either makes early items nearly free or makes late items unaffordable.
- Tiers often have different jobs. Tier 1 units fill out an army cheaply. Tier 3 units are rare finishers that should feel expensive.
- Players do not buy everything at once. Their budget grows over time, so the curve must stay in step with their income.
The usual fix is to keep the curve idea but make it piecewise: one rule per tier, joined so there are no jumps at the boundaries.
Tier brackets
The simplest piecewise curve works like income tax brackets. Each power point is priced at the rate of the bracket it falls in. Power below 20 costs 1.0 per point, power from 20 to 60 costs 1.5 per point, and power above 60 costs 2.5 per point.
import math
BRACKETS = [(0, 1.0), (20, 1.5), (60, 2.5)] # (start of bracket, price per power point)
def tiered_cost(power, brackets=BRACKETS):
cost = 0.0
for i, (start, price) in enumerate(brackets):
end = brackets[i + 1][0] if i + 1 < len(brackets) else math.inf
if power > start:
cost += (min(power, end) - start) * price
return cost
for power in (10, 20, 40, 60, 80):
cost = tiered_cost(power)
print(power, cost, round(power / cost, 2))The output is below. The three columns are power, cost, and power per cost.
| Power | Cost | Power per cost |
|---|---|---|
| 10 | 10.0 | 1.0 |
| 20 | 20.0 | 1.0 |
| 40 | 50.0 | 0.8 |
| 60 | 80.0 | 0.75 |
| 80 | 130.0 | 0.62 |
Only the extra power above a threshold is charged the higher price. A unit with power 61 therefore costs only slightly more than one with power 60. A design that charged the whole unit at the higher rate would create a cliff, and the cliff would push every designer to put units just below the threshold.
Choosing bracket prices
The prices are the slope of the cost curve in each tier, so they are where the design intent goes.
- A flat price (all brackets equal) is a linear curve. Power per cost stays constant, and a player can swap any amount of cheap power for the same amount of expensive power.
- Rising prices (as above) are superlinear. They make top-tier content a premium purchase.
- Falling prices model diminishing returns on the buyer's side, such as bulk discounts. They push players toward concentrating budget in a few large items.
Pick the bracket prices from the answer to this question: how many low-tier units should a player be willing to give up for one high-tier unit? Set the price ratio to match that exchange rate.
Boundaries and rounding
- Keep the curve continuous at each boundary. The bracket method does this automatically. A method that picks a different exponent per tier and does not rescale the scale constant does not, and the resulting jumps are a common bug.
- Boundaries should fall where the game's content actually changes, such as a new unlock or a new rarity. Boundaries placed at round numbers for convenience tend to land in the middle of a tier.
- If costs are shown to players as integers, round the final cost, not the intermediate sums. Rounding every bracket separately accumulates error.
The swarm problem
A superlinear curve punishes concentrated power. Whenever it does, a player can avoid the penalty by buying many small units instead of one large one. At power 80, the curve above charges 130. Four power-20 units give the same total power for 80.
Whether this is a flaw depends on the rest of the design. Several things can hold the swarm in check.
- A cap on the number of units, slots, or population.
- Per-unit limits such as action economy, where each extra unit also needs its own turn or attention.
- Area effects or splash damage that favor swarms' opponents.
- Fixed costs per unit, such as a deployment fee, that make tiny units less efficient.
If none of these exists, a superlinear curve tells players to buy only Tier 1. In that case use a linear or even sublinear curve for the high brackets, or add the fixed cost.
Pricing progression steps
Progression is the same problem seen over time. A player pays a sequence of costs and receives a sequence of power gains. The curve now describes the cost of each step.
Two shapes are common.
- Exponential cost, linear gain. Each level costs a fixed multiple of the previous one and adds the same power. This is typical of upgrade ladders and idle games. The price per power point rises geometrically.
- Exponential cost, shrinking gain. Later levels add less. This gives strong diminishing returns and makes players stop upgrading and spend elsewhere.
def upgrade_table(levels, base_cost=8.0, cost_growth=1.5, gain=2.0):
total_cost = 0.0
total_power = 0.0
rows = []
for level in range(1, levels + 1):
step_cost = base_cost * cost_growth ** (level - 1)
total_cost += step_cost
total_power += gain
rows.append((level, step_cost, total_cost, total_power, step_cost / gain))
return rows
for level, step, total, power, price in upgrade_table(5):
print(f"level {level}: step {step:.1f}, total {total:.1f}, power {power:.0f}, price/point {price:.2f}")The five levels give these figures.
| Level | Step cost | Total cost | Total power | Price per point |
|---|---|---|---|---|
| 1 | 8.0 | 8.0 | 2 | 4.00 |
| 2 | 12.0 | 20.0 | 4 | 6.00 |
| 3 | 18.0 | 38.0 | 6 | 9.00 |
| 4 | 27.0 | 65.0 | 8 | 13.50 |
| 5 | 40.5 | 105.5 | 10 | 20.25 |
The marginal price (the last column) is the number to compare with the rest of your economy. At level 5 a power point costs five times what it did at level 1. If a new unit offers power at 1.0 to 2.0 per point, no one will upgrade past level 2 or 3. Whether that is intended is a design decision, but it should be a decision and not an accident.
Upgrade or buy new?
The upgrade ladder and the unit cost curve compete for the same budget. Compare them at the margin. For a given budget, ask which gives more power: the next upgrade level, or a new unit priced by tiered_cost. If upgrades are always cheaper per point, players never buy new units. If upgrades are always more expensive, players ignore upgrades. A healthy design has the two prices cross, so the best choice changes as the player progresses.
Keeping pace with income
Step costs only mean something relative to what the player earns. If income grows by a factor of g per level and cost grows by c, the time to afford each step scales as (c / g) per level.
- When
c < g, each level arrives faster than the last and the game accelerates. - When
c == g, the pacing is steady. - When
c > g, each level takes longer than the last, and eventually players stall.
Tune c and g together. Setting growth to 1.15 because another game used 1.15 ignores the fact that your income may grow at a different rate.
Edge cases and common errors
| Problem | Symptom | Fix |
|---|---|---|
| Jump at a tier boundary | Many units sit just below a threshold | Use brackets so cost is continuous |
| One exponent for the whole game | Early items nearly free, late items out of reach | Use per-tier brackets or refit per tier |
| Superlinear curve with no unit cap | Players buy only the cheapest tier | Add a cap, a fixed cost, or flatten high brackets |
| Upgrades cheaper than new units everywhere | New content is never bought | Make the price per point of the two paths cross |
| Cost growth outpaces income growth | Progression stalls | Compare `c` with `g` and adjust one of them |
| Top tier priced from sparse data | Wild fitted exponent | Fit tiers separately only with enough points, or set the price by design |
> Treat content in a tier as pricing constraints, not just data. Tier 3 usually has few units, so a fit on tier 3 alone is unreliable.
Summary of the working model
- Divide the game into power bands that match real content tiers.
- Choose a price per power point for each band to express how expensive top-tier power should feel.
- Compute cost with brackets so the curve is continuous.
- Check the swarm problem: can players avoid the high-tier premium by buying many small units?
- Price the progression ladder with a table of marginal prices and compare it with the unit curve and with income growth.
Exercise
Using BRACKETS = [(0, 1.0), (20, 1.5), (60, 2.5)] from this chapter, what does tieredcost(70) return? Then, using upgradetable with basecost=8.0, costgrowth=1.5 and gain=2.0, what is the price per power point at level 6?
Show answer
For power 70, the first 20 points cost 20 (20 1.0), the next 40 points cost 60 (40 1.5), and the last 10 points cost 25 (10 2.5), so tiered_cost(70) is 105.0. At level 6 the step cost is 8.0 1.5 ** 5 = 60.75, and dividing by the gain of 2.0 gives 30.375 per power point.
Exercise
A designer fits one power law to all units in a game and finds that Tier 3 units are consistently flagged as underpriced, while Tier 1 units are flagged as overpriced. Name one likely cause and one fix.
Show answer
A single exponent cannot match the different slopes of each tier, so it overshoots at one end and undershoots at the other. The fix is to use per-tier brackets, or to fit each tier separately and rescale so the curves meet at the boundaries.