Sub topic 10
Synergies and breakpoints
This chapter assumes you can already compute a weighted power score for a unit, price an ability as effect × chance × uptime − drawback, and compare power-to-cost ratios across content. It covers two ways that a smooth cost curve misprices content: stats that multiply instead of adding, and thresholds where value jumps.
Why additive pricing breaks
The earlier chapters priced a unit as a weighted sum of its stats. That model assumes each stat's contribution does not depend on the others. Many real games break this assumption in two ways:
- Synergy: the value of one piece of content depends on what it is combined with. Examples are attack times attack speed, or a "fire" spell and a "burn damage" item.
- Breakpoint: the value of a stat changes in steps. Examples are "hits to kill" and "armor above 20 blocks the weak attack".
A cost curve prices power smoothly. Synergies and breakpoints make the real value lumpy. Cost is charged smoothly while value arrives in lumps, so some content becomes a bargain and some becomes a trap.
Multiplicative synergies
Damage per second is a product of two stats:
def dps(attack, attacks_per_second):
return attack * attacks_per_second
for attack, rate in [(10, 1.0), (15, 1.0), (10, 1.5), (15, 1.5)]:
print(attack, rate, dps(attack, rate))This prints 10.0, 15.0, 15.0 and 22.5. Adding +5 attack gains 5 damage per second. Adding +0.5 attack speed also gains 5. A purely additive model predicts that doing both gains 10, so it predicts 20. The real result is 22.5. The extra 2.5 is the synergy, and it grows as both stats rise.
This has a pricing consequence. If you price attack and speed independently with a linear curve, a unit that is strong in both is undercharged. The usual fix is to price the product, not the parts:
- Decide which stats combine multiplicatively. Common cases are damage with rate, health with damage reduction, and crit chance with crit multiplier.
- Compute the combined quantity, such as DPS or effective health.
- Run that quantity through the cost curve.
Because a product of two stats grows faster than either stat, the cost curve for the combined quantity usually needs a higher exponent than the curve for each stat alone. Check this by fitting the exponent separately, as described in the fitting chapter.
Pairwise and group synergies
Cross-item synergies are harder, because the partner is a different piece of content. A simple model keeps a table of pair bonuses and adds them when both pieces are present:
BASE_POWER = {"Archer": 16, "Knight": 30, "Mage": 40}
COST = {"Archer": 10, "Knight": 20, "Mage": 20}
SYNERGIES = {frozenset({"Mage", "Archer"}): 8.0}
def team_power(units):
present = set(units)
total = sum(BASE_POWER[name] for name in units)
for pair, bonus in SYNERGIES.items():
if pair <= present:
total += bonus
return total
def team_cost(units):
return sum(COST[name] for name in units)
for team in (["Mage", "Archer"], ["Knight", "Archer"]):
power, cost = team_power(team), team_cost(team)
print(team, power, cost, round(power / cost, 2))The Mage and Archer team has a raw power of 56 and a cost of 30, a ratio of about 1.87. With the synergy its power is 64, so the ratio is 2.13. The Knight and Archer team has no synergy and stays at 46 power for a ratio of about 1.53. The same units give different efficiency depending on the team.
You have three options for pricing this:
| Approach | How it works | Main risk |
|---|---|---|
| Price the combination | Charge extra when both pieces are present (a bundle discount or surcharge). | Needs a rule for every pair, which does not scale. |
| Price the expected bonus into one piece | Add `bonus × P(partner present)` to the enabling unit's power. | The probability is a guess, and it changes as players learn the game. |
| Cap the synergy | Limit the stacking (one bonus per tag, copy limits, a maximum multiplier). | Players may feel the cap is arbitrary. |
The second approach reuses the expected-value formula from the ability chapter. If the partner is on the board half the time, an 8-point synergy is worth ability_power(8, chance=0.5), which is 4.0. Treat that number as a starting estimate. Players seek out strong combinations, so the real partner probability is almost always higher than your first guess.
Breakpoints
A breakpoint is a stat value where the outcome changes discontinuously. The classic example is hits to kill: the number of hits needed is the health divided by damage, rounded up.
def hits_to_kill(health, damage):
return -(-health // damage) # integer ceiling division
for damage in (20, 24, 25, 33, 34, 50, 99, 100):
print(damage, hits_to_kill(100, damage))Against 100 health, 24 damage needs 5 hits and 25 damage needs 4. Damage 25 up to 33 all need 4 hits, and the next change comes at 34. A hit-count chart looks like a staircase:
A linear cost curve charges the same for each extra point of damage. The value is not the same for each point:
- Going from 24 to 25 damage removes a whole hit from every fight. This is a large gain for a one-point cost.
- Going from 25 to 33 damage costs eight points and changes nothing against this enemy.
- Going from 99 to 100 damage is a large gain again, because the enemy now dies in one hit.
So a unit sitting just above a breakpoint is a bargain, and a unit sitting just below one is a trap. A power-to-cost audit on raw stats will miss this entirely, because the raw ratios look similar.
Where breakpoints come from
- Rounding: hits to kill, turns to kill, and any "ceil" or "floor" in the combat rules.
- Thresholds: armor that blocks damage below a value, a speed that lets a unit act twice before another.
- Counts: a unit's range that reaches a certain number of tiles, or squad sizes that fill a formation.
- Caps: a mechanic that stops at a maximum, such as cooldown reduction capped at 40%.
Pricing around breakpoints
You have these options when a stat has important breakpoints:
- Price effective value. Convert the stat to its outcome (hits to kill, turns to survive) against the enemies that matter, and cost that. This is the most accurate method, but it ties your prices to the current enemy set.
- Move the stats, not the prices. Choose stat values so no common unit sits just below or just above a breakpoint. Spreading damage values away from the thresholds removes the need for special prices.
- Add a surcharge at the threshold. Charge a step cost when a stat crosses an important breakpoint. This is simple but needs maintenance whenever enemy health changes.
- Make the breakpoint softer. Replace hard rounding with a continuous mechanic, such as carrying overkill damage into the next target, so that value changes smoothly.
Option 2 is the cheapest to maintain, which is why many games use round enemy health values and scale damage in chunks.
Common errors
- Auditing raw stats only. The outlier check from the efficiency chapter reports nothing wrong while a unit that crosses a breakpoint dominates play. Run the audit on effective values too.
- Pricing synergies at the average. Players choose the best combination, so the average partner probability understates the real value.
- Fixing one synergy by buffing the partner. This moves the problem. The combination is the thing that is overpowered, so change or cap the combination.
- Ignoring change over time. Raising enemy health by 10% can shift every breakpoint at once. Re-run the effective-value audit after any change to enemy stats.
- Pricing every pair by hand. With n pieces there are about n²/2 pairs. Use tags and group rules (such as "any two units with the same tag") rather than a table of pairs once content grows.
What to carry forward
Cost curves handle content that is separable and smooth. Synergies make value depend on the whole set, and breakpoints make it depend on thresholds. A practical workflow is:
- Price each item with the curve.
- List the stats that multiply and the thresholds that matter.
- Re-audit using combined and effective values.
- Cap the worst combinations.
- Confirm with simulation, which the later chapters cover.
The final chapter returns to the situations where even this extended approach cannot predict balance.
Exercise
An enemy has 120 health, and your unit deals 30 damage per hit. How many hits does it need, what is the smallest damage that removes one hit, and what percentage increase in damage is that?
Show answer
120 / 30 = 4 hits. For 3 hits you need damage of at least 120 / 3 = 40, so the smallest change is +10 damage. That is a 10 / 30, or about 33%, increase. Any value from 31 to 39 damage still needs 4 hits, so those points buy nothing against this enemy.
Exercise
A Mage gives a +8 power bonus to an Archer when both are on the board. Players field the Mage with an Archer only about half the time. Using ability_power from the ability chapter, what expected bonus should you add to the Archer's price, and why might the real value be higher?
Show answer
ability_power(8, chance=0.5) returns 8 × 0.5 × 1.0 − 0 = 4.0, so you add 4 points of power to the estimate. The real value is probably higher because players learn the combination and choose it deliberately, which raises the partner probability above the starting guess of 0.5. You should re-measure the actual pairing rate after release.