Skip to content

Glossary

Every definition here reflects how the game actually behaves in code, not just the intent. Where a term has an exact formula or a hard-coded value, the related concept page is linked.

Accounts and identity

User — Your account, identified by email. Authenticates with a user token. One user can hold at most one player per season.

Player — Your character inside one realm’s season. Has an auto-generated game username independent of your account email. A player is derived from a realm token; there is no separate player header.

Realm — An independent game world with its own configuration and pacing. Realms run seasons.

Season — One time-boxed run of a realm. Seasons expire after a configured duration in days; an expired season is no longer active and rejects gameplay actions. Rankings, players, towns, and the map are all scoped to a season.

User token — The account token: a token from password login, POST /api/v1/token/login/ (or from verifying a new account’s email, POST /api/v1/users/verify-email/, which signs it in). The only token that can do account-level actions (list, create or delete players, realm login, list tokens, administrator routes). An opaque 40-character hex string, not a JWT. Expires 30 days after issue.

Realm token — A token from POST /api/v1/realms/login/ (or the OAuth flow) scoped to one realm and player. Authorizes all gameplay endpoints. Gameplay endpoints reject a user token with 403, and account-level endpoints reject a realm token with 403. Also an opaque hex string. See the Agent Playbook for which calls need which token.

OAuth / MCP — The Model Context Protocol server at /mcp exposes the REST API as agent tools. Agents authenticate via an OAuth 2.1 + PKCE flow that ends in a realm-scoped hex access token — the same kind of token described above, so it cannot do account-level actions; a second realm needs a second authorization. Scripts and bots get their token the same way (Scripting needs Premium). See the Agent Playbook.

Human check — The Cloudflare Turnstile widget on every sign-in, registration and verification form, in the web client and on the MCP consent page. Each request of those forms carries its one-use token (turnstile_token in the REST bodies), and one that does not pass is refused with 400. See The human check.

Towns and the map

Town — Your base. Every player starts with exactly one; realms that allow it (max_towns_per_player above 1) let you found more by dispatching an army toward an empty tile. A town holds resources, a garrison, and buildings. It does nothing until placed.

Building — A structure in a town, identified by its yaml_id (exact-match against the realm config, e.g. "Farm", not farm). Buildings have levels; level 0 means under construction and not yet contributing. Buildings drive production, population capacity, the warning window, trading, research, and wall defense.

Tile — One cell of the season’s square map grid, at integer coordinates (x, y). Each tile may have a tile type. A town occupies exactly one tile.

Tile type — The scenery of a tile (plains, forest, mountain, fertile), assigned deterministically from the tile coordinates at season seeding so the map layout is stable. Decides which valley types are seeded on it; on the shipped realms it grants a town standing on it no production bonus of its own, though a realm may attach one (tile bonus).

Tile bonus — A per-resource multiplier a realm may attach to a tile type (empty on the shipped realms). It is the own_ground term of a town’s production, own_ground × (1 + research + Politics + Σ held valley bonuses) — the one multiplicative term; everything else sums — applied to accrued production per resource (exactly: balances show whole units and carry the part in progress to the next settle) — see The bonus on your production.

Valley — A capturable map site with a terrain type and a level (1–10) whose bonus a holding city adds to its production of one resource; the bonus is frozen at the level the valley was captured at, and several held valleys stack additively. See Valleys.

Valley cap — How many valleys one city may hold at once: its completed Town Hall’s level (valley_cap_per_level on GET /api/v1/valleys/types, one more valley per level, zero without a completed Town Hall). Enforced against valleys already held plus capture attacks still in flight, both when a capture is dispatched and again when it lands. See How many valleys a city may hold.

Flat — Any unoccupied map tile that is not a valley site — the target founding requires. Restfall keeps the whole map open rather than making every non-city tile a valley or a flat the way Evony Age 1 did: an occupied valley simply is not a flat, and everything else is. See Where valleys are.

Placement — Putting a town on a specific tile via POST /api/v1/towns/{id}/place/. Towns must be at least the realm’s min_town_distance apart (Euclidean). Placement does not change what you can see: the map is public before and after it.

Resources and production

Resource — A stockpile in a town (for example wood, stone, food). Defined per realm. New towns start with each resource’s configured starter_amount.

Production — Resources generated per second by a town’s completed buildings (level > 0), after the town’s terrain multiplier (tile bonus × held valleys) and research boosts. Reported as a per-second rate in the game state so you can extrapolate counters.

Accrual — The continuous growth of resources over time. Resources are computed on the fly from a single per-town watermark (resources_settled_at); you never call a “collect” endpoint. The watermark is settled to “now” whenever a mutation spends or changes resources; the part of a unit still in progress is carried over, so settling often never loses production (see Whole units, and the part in progress).

Storage cap — The maximum a resource can hold, set per resource as max_storage in the realm config. Production above the cap is silently discarded. Resources without a configured cap are unbounded.

Population economy

Tick — The fixed real-time step (360 seconds, divided by the realm’s time_scale) at which loyalty, population, and tax-derived gold advance. Settled lazily against a watermark, like resource accrual, but as whole ticks only — a fractional tick waits for the next settle. See Population, Loyalty & Tax.

Loyalty — A town stat, 0–100, that drifts by 1 point per tick toward a target of 100 − tax_rate − grievance. Higher loyalty means population fills faster toward max population. See Loyalty and grievance.

Grievance — A town stat, 0–100, that pulls the loyalty target down. Unlike loyalty, grievance never drifts on its own — it only moves when an event explicitly changes it: losing an attack raises it (see Conquest), a levy always raises it, and praying or disaster relief lower it. See Loyalty and grievance.

Population — How many people live in a town, INCLUDING its garrisoned troops. Converges toward max population × loyalty ÷ 100 at each tick, growing faster at low tax and shrinking at high tax. Every garrisoned unit’s population_cost, plus every completed field’s labour demand, draws from this same pool — an under-staffed town’s fields throttle together (see Fields, labour, and staffing), and training draws idle residents from it too. See Population, Loyalty & Tax.

Max population — A town’s population capacity, the sum of its completed Cottages’ capacity at their current level (100 at level 1 up to 5,500 at level 10). Cottage levels 3+ each require the Town Hall one level lower. See Cottage capacity.

Occupancy — Current population as a fraction of max population, compared each tick against the loyalty target (max_population × loyalty ÷ 100) to decide whether population grows or shrinks that tick. A newly built Cottage does not fill immediately if occupancy is already at or above the loyalty target.

Labour — How many workers a completed field building (Farm, Lumber Mill, Quarry, Mine) needs to run at full output, from its labour_per_level table. A resource’s production rate slider scales a field’s labour demand together with its output — throttling a resource to 0% frees the workers it was employing. See Fields, labour, and staffing.

Food upkeep — The hourly food every unit in a town’s garrison continuously eats for as long as it sits there, including allied Support hosted through an Embassy (that upkeep is charged to the host, not the sender). Published per town as food_upkeep_per_hour — see TownResponse fields. A town’s food balance always reflects farm production net of this upkeep. See Food upkeep & desertion.

Desertion — What happens when a town’s garrison can’t be fed: if the food available for a given stretch of time can’t cover the garrison’s upkeep over that same stretch, whole units leave the garrison instead of food ever going negative. A town that owes less than one whole food carries the debt (its balance shows 0) and pays it first from the next food it makes; the garrison deserts once the debt reaches a whole food. Units desert one at a time, cheapest-food_upkeep_per_hour first (ties broken by unit_type_id), stopping the instant the remaining garrison is affordable again — deterministic, no randomness. A unit type with 0 upkeep (like a scout) never deserts. Logged as a desertion event. See Food upkeep & desertion.

Units and combat

Unit — A military unit type (for example swordsman, archer). Each type has a unit_class, hp, range, four attack values (attack_vs_infantry, attack_vs_cavalry, attack_vs_machines, attack_vs_buildings), defense, speed, carry_capacity, and population_cost stats from the realm config. There is no single attack number — damage is always read against the target’s class.

Garrison — The units currently stationed in a town. They defend it automatically when attacked. In other players’ towns the garrison is hidden unless revealed by a scout — the map shows you where every town is, never what defends it.

Idle population — The civilians a training order can draft: population − field_labour − troop_population (garrisoned units, every training order — including one whose time is up but has not yet joined the garrison — wounded units, the healing queue, every unit currently on an outbound attack, support, scouting or founding march from this town (a scouting party’s survivors only), and the order itself — allied Support garrisoned in this town is excluded, since it was never drafted from your own population). Training a unit costs population_cost idle population and requires idle_population ≥ count × population_cost; it never changes population itself, since those residents were already counted. See Idle Population.

March — Anything currently moving on the map that you can see: your attacks (both directions), outgoing scouts, support in either direction, your outgoing founding expeditions, and trades in transit. Each march has a kind (attack, scout, support, founding, trade) and a phase (outbound or returning). Surfaced as marches in the game state.

Founding march — A march that targets an empty map tile rather than another town, launched by POST /api/v1/foundings/. It must carry the realm’s settlers — founding_required_workers of founding_worker_unit_type_id (game state), 250 Workers on the shipped realms — and may bring any escort alongside them; no other unit type is privileged or required. The realm’s founding_cost (a fraction of it, colony_founding_cost, for a colony) is charged against the origin town’s resources at dispatch. On arrival the whole surviving party garrisons the new town — nothing is consumed, workers included — and the town’s starting population is seeded from that same garrison, so the settlers become its first workforce. A blocked arrival (the tile, name, or cap no longer allows it) bounces the march home and refunds the resources charged, capped by storage. Its target_town_id is always null in the game state marches list, since there is no town at the destination yet. See Found a Town.

Travel time — ceil(Euclidean distance / slowest unit's speed) seconds, one way, at time_scale 1.0. The slowest unit in the force sets the pace; each unit’s speed is first adjusted by the origin town’s researched march technologies (Compass, Horseback Riding — see Travel Time). Applies to attacks and scouts. At other scales the raw value is divided by the realm’s time_scale and then floored at the resolver tick, which can compress a wide range of short distances to the same duration — see Return-trip timing for the exact rule and the collapse it causes.

Carry capacity — How much loot a unit can haul. Total carry of the surviving attackers, scaled by the origin town’s Logistics research, caps how much they can raid. See Combat reference.

Loot / raiding — Resources stolen from a defender when the attacker wins. Distributed proportionally across resource types, capped by total surviving carry capacity. Deducted from the defender immediately at battle; delivered to the attacker only after the survivors march home.

Return trip — After a battle, surviving attackers (and their loot) march home, taking the same duration the outbound leg took. Units are credited back to the origin town only on return.

Spoils of war — The rule for who a returning march’s survivors and loot are credited to: whoever owns the origin town right now, not whoever originally sent the march. If the origin town itself is captured by someone else while a march it sent is still away, that march still lands on schedule — for the new owner. The new owner gets the troops and the goods, not the paperwork: a battle report stays with the players who fought it, and a scouting mission, a reinforcement or a founding expedition stays listed to the player who sent it, its report included. A capture applies the same doctrine to what it takes: a captured town’s whole war effort — queues, research, trades, and garrisoned support — transfers with it rather than being looted separately. See Raiding.

Scout — Both the dedicated unit type (is_scout: true, a token combat value so a scout-only attack still fights, by far the fastest speed in the roster) and the spying mission it’s sent on. A scouting mission snapshots the target’s resources, wall level, loyalty, and garrison on arrival, but the report stays hidden until the scouts return home — and only comes home at all if the mission survives screening by the target’s own garrisoned scouts. See Scouting and The Scout Unit.

Screening — A target town’s own garrisoned scouts contesting an arriving scouting mission: both sides lose the smaller of the two scout counts, and the mission is intercepted outright (no report, no survivors) if it sent no more scouts than the target had. See Scouting — Screening.

Support — Sending units to reinforce another town’s defense. See Support.

Wall bonus — Ranged-fire mitigation from the defender’s buildings that have a wall_defense_bonus, summed as level * wall_defense_bonus + level**2 * wall_defense_bonus_quadratic per building instance (the quadratic term is 0 unless the building config sets it, giving a purely linear wall). While the Wall stands, every ranged shot aimed past it at a defender is divided by 1 + wall_bonus; melee and siege damage ignore it. See Combat reference.

Information

Public map — Every tile’s terrain and occupant, and every placed town’s public profile, are visible to every player for the whole season. Restfall has no fog of war and no visibility radius: distance never hides anything on the map. See the information model.

Warning window — The warning a town is guaranteed before an attack lands. Each unresolved incoming attack appears somewhere between one and two windows before it lands (a different, unpredictable point for each attack) and is omitted from your game state until then. It is the single highest warning_seconds among the town’s completed buildings (bonuses do not stack, and level-0 buildings count for nothing), divided by the realm’s time_scale — and zero without a completed Watchtower, which is told nothing until the attack resolves. What the town sees of an attack inside the window is the tower’s level — the beacon warning tiers. See the warning window.

Watchtower — The building that opens the warning window, reveals an incoming attack one piece per level (the beacon warning tiers) and caps how deep your own scout reports go (Informatics research above the Watchtower’s level is wasted). It grants no sight of the map — that is what it used to do, before fog of war was removed.

Progression and scoring

Research — Spending resources and time, in a specific town, to unlock a permanent bonus for that town only (production, and combat attack/defense for troops that march from or defend it) — not for the player’s other towns. One research at a time per town; requires a building with enables_research in that same town. See Research.

Prestige — The score that drives rankings. Town prestige is the sum of a town’s completed building levels; a player’s score is the sum of all their towns’ prestige plus the prestige value of their earned achievements. See Prestige & Scoring.

Achievement — A milestone awarded when its trigger condition is met (checked when you read the achievements endpoint). Each achievement carries a prestige_value that counts toward your rank. See Prestige & Scoring.

Quest — A claimable task that pays out a resource reward to your oldest town. Completion is evaluated when you claim. See Quests.

Rankings / leaderboard — Players ordered by total prestige (ties broken by username). Served from a per-season cache that refreshes at most once every 30 seconds, so the leaderboard can be up to 30 seconds stale. See Rankings.

Timing and infrastructure

Resolver — The background loop that advances the world on a fixed tick: it resolves arrived battles and returns, scout arrivals/returns, support, founding expeditions and their returns, barbarian settlement growth, trades, building upgrades, unit training, research, and healing completion. Runs every 5 seconds. See Resolver & timing semantics.

Caravan — A trade shipment in transit between towns. See Trading.

Two-phase attack — The attack lifecycle: combat resolves on arrival (phase 1); surviving units and loot arrive home on the return trip (phase 2). See Combat reference.