Sub topic 9
Costing items and units with a power budget
A power budget gives every unit or item a single power number and compares it with its price. It answers "is this unit worth its cost?" with a formula instead of a feeling. This chapter assumes you have read the earlier chapters on the workbook structure (Params, Calculations, Outputs), the armor formula, and the derived metrics expected damage, time to kill and effective health. You should also be comfortable with SUMPRODUCT and IF.
What a power budget is
A power budget has three parts:
- A power score: one number that summarizes how strong a unit or item is.
- A price: what the player pays in gold, mana, population slots or any other currency.
- A target ratio: the power a player should get per unit of price, plus a tolerance band around it.
If every option sits near the target ratio, then no option is a bargain or a trap. Differences between options then come from role (fast versus tanky, cheap versus expensive) rather than from raw value.
The power score is a modeling choice, not a measurement. Two reasonable designers can define it differently. What matters is that you define it once, in the Params sheet, and apply it to every row.
Two ways to build a power score
Additive: stat prices
The simplest method gives each stat a price in budget points. A point of health is worth 0.05 points, a point of damage per second is worth 2, and so on. Power is the weighted sum.
Put the stat prices in a row on the Params sheet, with headers in row 1 and prices in row 2 (B2:D2 for health, DPS and range). On the Units sheet, put the matching stats in B2:D2 of each unit's row. Then:
=SUMPRODUCT(B2:D2, Params!$B$2:$D$2)SUMPRODUCT multiplies matching cells and adds the results. Changing one stat price in Params reprices every unit at once.
The additive method is transparent and works well for items that grant independent bonuses, such as +10 health or +2 damage. Its weakness is that it treats stats as independent. A unit with huge damage and no health is worth the same as one with balanced stats, even though the first dies instantly.
Multiplicative: offense times defense
For combat units, offense and defense multiply. A unit that deals twice the damage and survives twice as long is four times as good in a duel. So a common power score is the geometric mean of damage per second and effective health:
=SQRT(F2 * G2)Here F2 is DPS and G2 is effective health. This is a standard way to combine two quantities that trade off against each other. The square root brings the score back to a scale comparable to the individual stats. Doubling both stats doubles the power.
This score punishes lopsided stat lines. A unit with 100 DPS and 1 effective health scores 10, the same as a balanced 10 DPS and 10 effective health. Whether that is the right outcome depends on your game, and the next sections show where to adjust it.
Why divide by cost
The geometric mean has a deeper justification when players field groups. In a group fight where both sides focus fire, the strength of an army grows roughly with the square of its size. This approximation is known as Lanchester's square law. With a budget B and unit cost c, you can afford B / c units. Army strength is then proportional to (B/c)² × DPS × EHP, which equals B² × DPS × EHP / c².
Take the square root and drop the shared B term. You get SQRT(DPS × EHP) / c, which is exactly power divided by cost. Ranking units by that ratio ranks them by how strong an army you get for a fixed budget. The formula is a modeling shortcut, not a law of your game, but it shows that "power per cost" is the right quantity to compare.
Building the sheet
The Units sheet has these columns:
| Column | Content | Source |
|---|---|---|
| A | Unit name | Input |
| B | Health | Input |
| C | Armor | Input |
| D | Expected damage per attack | Derived metrics chapter |
| E | Seconds between attacks | Input |
| F | DPS | `=D2/E2` |
| G | Effective health | `=B2*(100+C2)/100` |
| H | Power | `=SQRT(F2*G2)` |
| I | Cost | Input |
| J | Fair cost | `=H2/Params!$B$3` |
| K | Efficiency ratio | `=(H2/I2)/Params!$B$3` |
| L | Verdict | `IF` formula |
The effective health formula follows from the armor formula damage * 100 / (100 + armor). If each hit is multiplied by 100 / (100 + armor), a unit needs (100 + armor) / 100 times as much health to take the same number of hits.
The Params sheet holds B3, the target power per unit of cost, and B4, the tolerance. Here is the full set of formulas for row 2:
=D2/E2=B2*(100+C2)/100=SQRT(F2*G2)=H2/Params!$B$3=(H2/I2)/Params!$B$3=IF(K2>1+Params!$B$4,"Overpowered for cost",IF(K2<1-Params!$B$4,"Underpowered for cost","OK"))The efficiency ratio K is 1 when a unit exactly matches the target. Above 1 means the player gets more power than they pay for. Below 1 means they get less.
A worked example
Set the target power per gold to 0.65 and the tolerance to 0.15. Three units:
| Unit | Health | Armor | Damage per attack | Interval (s) | DPS | Effective health | Power | Cost | Efficiency ratio |
|---|---|---|---|---|---|---|---|---|---|
| Footman | 100 | 20 | 10 | 1.0 | 10 | 120 | 34.6 | 50 | 1.07 |
| Archer | 60 | 0 | 12 | 1.0 | 12 | 60 | 26.8 | 40 | 1.03 |
| Knight | 200 | 50 | 15 | 1.5 | 10 | 300 | 54.8 | 100 | 0.84 |
The Footman and Archer fall inside the band, from 0.85 to 1.15. The Knight's ratio of 0.84 is just below it, so the sheet flags it as underpowered for cost. The fair cost column gives the fix: 54.8 / 0.65 is about 84 gold. You can lower the Knight's price to about 84, or raise its health or damage until its power justifies 100 gold.
Both fixes change the numbers, but they change the unit differently. Lowering the price keeps the unit's feel and makes it more common. Raising its stats makes it stronger per unit and leaves its price alone. The sheet tells you the size of the gap. Your design goals decide which fix to use.
Costs that do not scale linearly
Fair cost is often not a straight line in power. Players pay a premium for concentrated power because population caps, board slots or inventory slots limit how many units they can field. A 100-power unit that takes one slot is worth more than two 50-power units that take two slots.
To model this, replace the linear fair cost with a power curve:
=ROUND(Params!$B$6 * H2 ^ Params!$B$7, 0)B6 is a scale constant and B7 is the exponent. With B7 equal to 1, cost is linear in power. With B7 slightly above 1, such as 1.15, high-power units cost proportionally more. Use the progression curve techniques from earlier chapters to choose the exponent, and keep it in Params so you can change it in one place.
Edge cases and failure modes
- Missing dimensions. Range, movement speed, area damage, healing and crowd control are not in
SQRT(DPS × EHP). Either add a multiplier per feature in Params (for example, range multiplies power by 1.1) or give the unit a separate "utility" score that adds to its power. - Defense against one damage type. Effective health based on armor assumes physical damage. If magic damage ignores armor, a high-armor unit is weaker than the sheet suggests. Compute effective health against each damage type and take a weighted average using the expected mix of enemies.
- Divide-by-zero and blanks. If a unit has zero cost, such as a free starting unit, the efficiency ratio errors. Wrap it with
IF(I2=0,"",...), or filter free units out of the table. - Tolerance too wide or too narrow. A band of ±0.15 hides small imbalances. A band of ±0.02 flags noise, because your power definition is not that precise. Start wide and tighten it as you gain confidence.
- Power is not win rate. A unit can have a fair cost and still dominate or be useless because of how it matches up against other units. The next chapter covers matchup matrices for that.
Common mistakes
- Hard-coding stat prices in formulas. Writing
*0.05inside the formula makes later tuning error-prone. Always reference a Params cell. - Mixing scales. If health is in the hundreds and damage is under 10, additive weights must absorb that difference. Check that each stat's price times its typical value gives comparable budget points.
- Using raw damage instead of expected damage. The power score should use the expected damage per attack, which accounts for hit chance and crits, so a unit with a 70% hit chance is not overvalued.
- Re-deriving the target ratio per row. The target (
Params!B3) must be one value for the whole table. If you compute it from the table's own average, a bad outlier shifts the target and hides itself.
Exercise
A new unit, the Mage, has 50 health, 0 armor, an expected damage of 20 per attack, and 2.0 seconds between attacks. It costs 28 gold. Using the sheet above (target 0.65 power per gold, tolerance 0.15), find its DPS, effective health, power, fair cost, efficiency ratio and verdict.
Show answer
DPS = 20 / 2 = 10. Effective health = 50 × (100 + 0) / 100 = 50. Power = SQRT(10 × 50) = SQRT(500) ≈ 22.4. Fair cost = 22.4 / 0.65 ≈ 34.4 gold. Efficiency ratio = (22.4 / 28) / 0.65 ≈ 1.23, which is above 1.15, so the verdict is "Overpowered for cost". Raise the price to about 34 gold, or reduce the Mage's stats until its power is near 18.2 (the power that matches a 28 gold price).
Exercise
Your sheet flags a cheap unit as "OK", but playtesters say players always build armies of it. Name one reason the power budget could miss this and one change to the workbook that would help find it.
Show answer
The power score ignores how units interact. A cheap unit can beat every other unit in group fights (the Lanchester effect), or counter the most common enemy, while still having a fair ratio. Add a matchup matrix that compares each unit against the others, or add a multiplier in Params that rewards cheap units in numbers, and check whether one row dominates.