Rival goals & difficulty
Status: Draft. Live in the sandbox campaign. Every number on this page is TEMP: they are first guesses that are still being tuned.
New and subject to change: the rivals' goals and the difficulty setting haven't been through a full playtest yet.
This page is about the ordinary rivals. The twelve OGs don't follow a curve: they sleep until hit.
A rival outfit plays by your rules: it has no extra cash, no cheaper rooms and no hidden rolls. What it has is goals. At peace it knows where it means to stand by each turn, and it spends on the thing it's furthest behind on. The difficulty setting changes only what it chooses, never what it's dealt.
Enemy AI is paused in the sandbox for now, so rivals don't spend or grow on this curve yet. The rules below are what the curve is written to do when that comes back. Specials and permits are off; rooms go in the HQ.
How you use it
- Pick a difficulty when you start a game: WORLD RULES on the TERRITORY step opens DIFFICULTY, with three tabs: EASY, NORMAL (the default), HARD. It's set before the world is dealt and kept in the save, and the page shows Difficulty: Normal beside the button.
- Read the hovers. Easy: Rivals aim lower, sit on more cash and attack only when sure. Normal: Rivals grow at the pace of a good player. Hard: Rivals aim higher, spend nearly everything and guard every border.
- Watch a neighbour. A rival that has fallen behind its goals grows fast; one that sees you out-muscle it stops growing and arms.
How it works
Three moods
An outfit is in one mood at a time.
| Mood | When | What it does |
|---|---|---|
| Peace | Nobody much stronger is next door and it isn't at war | Follows the curve (below) and spends on its biggest gap first |
| Brace | A neighbour has 1.4× its power (strong enough to declare on it), or a crew of a stronger outfit stands on its ground | Drops the curve and looks at power alone: men and the room for them, until it stands at the difficulty's share of that neighbour's power. Danger buys no Office: short of wages, it waits |
| War | It's at war | The same spending against the enemy, its crews moving as in War & conquest, and a rule for keeping crews home (below) |
Braced, a rival also sends no one hunting, and its research pick leans towards a box that gives it more crews. A brace holds until the outfit has caught up, so it doesn't flip back and forth. Power is then read as the larger of the curve's goal and the difficulty's share of the neighbour's (or the enemy's) power.
The curve
Each turn the outfit has four goals, and a gap to each: how far short it is, as a share of the goal.
| Goal | What it counts |
|---|---|
| Towns | Towns held |
| Cash a turn | Its income over a 30-day turn, counting a building going up |
| Power | Its fighting strength |
| Research | Boxes finished |
The goals rise with the turn. They run in a straight line between the rows of a table (some rows below, on Normal), with the last rows at turn 17 and turn 30:
| Turn | Towns | Cash a turn | Power | Research boxes |
|---|---|---|---|---|
| 1 | 2 | $556 | 16 | 0 |
| 5 | 5 | $1,039 | 27 | 2 |
| 10 | 9.5 | $1,962 | 36.5 | 4.5 |
| 17 | 14 | $3,278 | 56.5 | 6.5 |
| 30 | 22 | $5,722 | 94 | 10 |
The curve is bent by the boss's temper, each goal within 0.6× to 1.4× of the line. An aggressive boss wants more power and less cash; a builder more cash and research but less power; a greedy one more cash; an expansive one more towns; a cautious one a little more power and research but fewer towns. Two rivals on the same turn rarely want the same thing.
What it buys for each gap
It looks for the one purchase that closes its biggest gap, and what's standing in the way decides which.
| Gap | If something blocks it | It builds |
|---|---|---|
| Power | Hires won't fit under the soldier limit | A Hall in the HQ (see Squads & classes) |
| Short of Respect for hires | A Factory | |
| Can't pay their wages (at peace) | An Office in the HQ | |
| Nothing blocks it | A Social Club while it has fewer than one for every 12 men plus one, then hires, gear and the shop upgrades | |
| Towns | Free land its crews can beat | Takes it over (they walk and fight) |
| Free land too hard for its crews | Treats it as a power gap | |
| Cash a turn | An Office in the HQ | |
| Research | A Library in the HQ, one going up at a time |
Hires are capped at 2 a turn (4 braced or at war), and at peace only while its cash a turn can still pay the wages; braced or at war it may run at a loss, as long as its spare cash covers it for 6 turns.
Its research pick leans too: a box that serves a goal is worth more to a boss whose temper leans that way, and more again while that goal is behind.
The hold
An outfit never spends all its cash. It keeps back a hold of a few turns of its bills (never less than $500), up to half as much again for a cautious boss. Everything above the hold is what it may spend.
Difficulty
| What changes | Easy | Normal | Hard |
|---|---|---|---|
| Height of the curve | 70% | 100% | 130% |
| The hold, in turns of its bills | 4 | 2 | 1 |
| Power it arms to when braced, against that neighbour | 80% | 100% | 120% |
| Odds it attacks at in a war (its chance to win) | 75% | 60% | 50% |
| Which towns an enemy crew beside it puts a crew of its own on | Only its seat | A town whose DEFENSE that crew outguns | Every town the crew stands beside |
The odds are read as a power ratio: on Normal it attacks at about 1.2× the defender's power, on Hard at even power, on Easy at about 1.7×. Easy rivals aim lower, sit on more cash and attack only when sure; Hard ones aim higher, spend nearly everything and guard every border.
Guarding the border
New and subject to change. At war, an enemy crew standing next to one of an outfit's towns puts a crew of its own on that town, by the difficulty's rule above. The worst-threatened town comes first, one crew a town: one already there stays, otherwise the nearest free crew walks in. Crews not needed at home go to strike.
Numbers (all TEMP)
| Number | Value | Where |
|---|---|---|
| The curve | Rows as above, a line between them | frontier_ai.peace_curve |
| Temper bends | Within 0.6×–1.4× | frontier_ai.curve_temper |
| Brace at | 1.4× a neighbour's power | frontier_ai.brace_ratio |
| Hold | 4 / 2 / 1 turns of bills, at least $500, up to ×1.5 for caution | frontier_ai.difficulty.*.hold_turns, reserve_min |
| Curve height | 70% / 100% / 130% | frontier_ai.difficulty.*.curve |
| Brace to | 80% / 100% / 120% | frontier_ai.difficulty.*.brace_want |
| Attack odds | 75% / 60% / 50% | frontier_ai.difficulty.*.attack_odds |
| Border guard | Seat / threatened / always | frontier_ai.difficulty.*.defend |
| Loss it may run braced | Spare cash for 6 turns | frontier_ai.brace_loss_turns |
| One Social Club per | 12 men | frontier_ai.club_men |
| Hires a turn | 2 (4 braced or at war) | squads.ai_hire_per_turn |
See also
- The HQ: the rooms a rival would build
- Orgs: how a rival plays its turn
- War & conquest: declaring, DEFENSE and peace
- Character creator: WORLD RULES
- Mechanics
Locked vs leftover
| Locked (document this) | Leftover / do not claim |
|---|---|
| A rival follows a line of towns, cash a turn, power and research, and buys for its biggest gap. Free land it can beat, it takes over | A fixed build order, or the same box picked every turn; buying free land out for cash |
| Three moods: peace, brace, war | A rival that never changes its mind about danger |
| Difficulty changes only what the rival chooses | A difficulty that hands rivals cash, discounts or free men |
| A hold of unspent cash that shrinks as difficulty rises | A rival that spends every dollar |
| The curve as written | Enemy AI is paused in the sandbox, so rivals don't spend on this curve yet; spending a permit on a special |
Sources
src/systems/frontier_brain.gd, src/ui/creator.gd, data/config.json