Sub topic 5
Beyond linear: superlinear and diminishing returns
This chapter assumes you have read the earlier chapters on common currency, stat valuation, and the linear baseline. You should be comfortable with a power score (the weighted sum of a unit's stats) and with reading short Python functions.
Why linear is not enough
A linear cost curve says that a unit with twice the power costs twice as much. That is a good starting point, because it is easy to compute and easy to explain to a team. In many games it is also wrong.
Consider a card game where you spend mana to play cards. A card with twice the stats of another card does not feel twice as good. It may win a fight the cheaper card would lose, and it takes up one slot instead of two. Players who can afford the strong card get an advantage that the linear price does not charge for. The opposite problem also exists. If the last few points of a stat give almost no extra benefit, a linear price asks players to overpay for them.
A cost curve fixes this by changing the relationship between power and cost. This chapter covers three shapes:
- Linear: cost grows in proportion to power.
- Superlinear: cost grows faster than power, so strong content is disproportionately expensive.
- Diminishing returns: cost grows slower than power, so each extra point of power is cheaper than the last.
The power-law family
You can describe all three shapes with one function, using a scale and an exponent:
def cost_from_power(power, scale=1.0, exponent=1.3):
return scale * power ** exponent
# exponent == 1.0 gives a linear curve; above 1.0, doubling power more than doubles cost.
for power in (10, 20, 40):
print(power, round(cost_from_power(power), 1))The scale sets the overall price level. The exponent sets the shape:
| Exponent | Shape | Effect of doubling power | Typical use |
|---|---|---|---|
| 1.0 | Linear | Cost doubles | Baseline, resource-like stats |
| Above 1.0 | Superlinear | Cost more than doubles | Strong units, scarce slots, limited board space |
| Below 1.0 | Diminishing returns | Cost less than doubles | Bulk or swarm units, commodity items |
Doubling power multiplies cost by 2 raised to the exponent. With an exponent of 1.3, that factor is about 2.46. With an exponent of 0.8, it is about 1.74. This gives you a quick way to check a curve: pick two power levels and compute their cost ratio.
def doubling_factor(exponent):
return 2 ** exponent
for exponent in (0.8, 1.0, 1.3, 1.6):
print(exponent, round(doubling_factor(exponent), 2))In the chart, the top line is exponent 1.3, the middle line is linear, and the bottom line is exponent 0.8. All three use a scale of 1.0. Notice that the lines cross the linear baseline at different points once you change the scale. The curves only compare cleanly when you hold the cost of a reference unit fixed, which the next section covers.
Anchoring the curve
If you change the exponent and leave the scale alone, every price in the game shifts. A unit you had already tuned changes cost for reasons unrelated to its design. To avoid this, pick a reference unit and choose the scale so that its cost stays the same.
def anchored_scale(reference_power, reference_cost, exponent):
return reference_cost / reference_power ** exponent
def cost_anchored(power, reference_power, reference_cost, exponent):
scale = anchored_scale(reference_power, reference_cost, exponent)
return scale * power ** exponent
# A 20-power unit costs 20 under every exponent.
for exponent in (0.8, 1.0, 1.3):
row = [round(cost_anchored(p, 20, 20, exponent), 1) for p in (10, 20, 40)]
print(exponent, row)With the anchor in place, the curves all pass through the same point. Below the anchor, a superlinear curve makes units cheaper than the linear price. Above it, they cost more. A diminishing-returns curve does the reverse. This is the behavior designers usually want to reason about: where does the curve make weak units a bargain, and where does it tax strong ones?
Superlinear curves
A superlinear curve (exponent above 1.0) suits games where power concentrates. Common reasons:
- Slot or action limits. If a player can field only five units, each slot is valuable. A strong unit uses a slot more efficiently than a weak one, so it should cost more than its raw stats suggest.
- Snowballing. Strong units win fights, which earns resources, which buys more strong units. A higher price on strong units slows that loop.
- Stat interaction. Attack and health multiply in combat. A unit with 10 attack and 10 health is much stronger than two units with 5 attack and 5 health in a one-on-one fight, because it survives longer and kills faster.
The last point can be checked with a small calculation. Damage output over a fight scales with attack times survival time, and survival time scales with health, so effective strength grows roughly with the product of the two stats.
def duel_strength(attack, health):
# Damage dealt before dying, against an enemy that deals 1 damage per turn.
return attack * health
print(duel_strength(5, 5)) # 25
print(duel_strength(10, 10)) # 100Doubling both stats quadruples the duel strength, even though the additive power score only doubles. If your power score is a weighted sum, a superlinear cost curve compensates for this hidden multiplication. Some designers instead compute power as a product, such as attack times health, and keep the cost curve closer to linear. Both approaches model the same fact. Use one of them, and do not stack both without checking, or strong content becomes far too expensive.
Diminishing returns
A diminishing-returns curve (exponent below 1.0) fits stats whose value flattens out. Examples:
- Capped stats. Dodge chance cannot exceed 100%. Going from 80% to 90% dodge matters less than going from 0% to 10% in some designs, and nothing beyond the cap matters at all.
- Redundant effects. A second source of the same buff adds less than the first.
- Cheap bulk. In swarm games, a pile of weak units is easy to produce, so large armies should not be priced as steeply as elite ones.
For capped stats, a pure power law can be misleading, because a power law keeps rising forever. A curve with a ceiling does better. A simple option is to price a stat by the portion that is still useful:
def effective_value(amount, soft_cap, falloff=0.5):
# Full value up to soft_cap; each point beyond it is worth `falloff` of a point.
if amount <= soft_cap:
return amount
return soft_cap + (amount - soft_cap) * falloff
for dodge in (10, 30, 50, 70):
print(dodge, effective_value(dodge, soft_cap=30))This is a piecewise curve: linear up to the soft cap, then flatter. You can feed the result into the power score so that the cost curve sees the stat's real contribution.
Choosing a shape
The right exponent depends on how the game turns power into wins. Use these questions:
- Is there a limit on how many units a player can use? A limit favors superlinear pricing, because strong units save slots.
- Does power compound? If wins produce resources for more wins, price strong content higher.
- Does a stat saturate? If it does, use diminishing returns or a soft cap for that stat.
- Is the game cooperative or puzzle-like? Fewer snowball effects mean a linear curve may be enough.
Most games mix shapes. A typical setup uses a mildly superlinear curve for overall unit cost, such as an exponent between 1.1 and 1.4, and soft caps for individual stats. Treat these values as starting points to test, not as rules.
Common errors
- Changing the exponent without re-anchoring. All prices move, and existing content becomes mispriced.
- Reading the exponent as precise. The difference between 1.25 and 1.3 rarely matters. The difference between 1.0 and 1.3 does.
- Applying a superlinear curve to a product-style power score. The multiplication in the score and the exponent in the cost both penalize strength, so you double count.
- Using a power law for a capped stat. The curve keeps rising after the stat stops helping.
- Ignoring rounding. At low power, costs such as 2.46 round to 2 or 3, and the rounding can erase the curve's effect. Check the integer prices at the low end.
Summary of the working model
Pick an exponent that matches how power turns into wins. Anchor the scale to a trusted reference unit. Use soft caps for stats that saturate. Then check the result with the efficiency ratio from the previous chapter, which later chapters extend by fitting the exponent to data.
Exercise
A cost curve uses exponent 1.3 and is anchored so a 20-power unit costs 20. Using cost = scale power * exponent, what is the approximate cost of a 40-power unit? Is it more or less than the linear price of 40?
Show answer
The scale is 20 / 20 1.3, which is about 0.0203. The cost of the 40-power unit is 20 * 2 1.3, which is about 49.2. That is more than the linear price of 40, because doubling power multiplies cost by 2 ** 1.3, about 2.46.
Exercise
A stat has a soft cap of 30, and points above the cap are worth half a point. Using the effective_value function, what effective value does an amount of 70 have, and why would a designer choose this instead of a power law?
Show answer
The effective value is 30 + (70 - 30) * 0.5 = 50. A designer would choose it because the stat's benefit really flattens above the cap. A power law keeps rising without limit and cannot represent that change in slope at a specific point.