A House Divided A House DividedDocumentation
↵
Changelog
Game Design/Getting Started & Strategy

Relocation

Last updated 2026-10-29
Player wikiRelocation
Source files

Summary#

Players can change their character's home state (or UK region, JP prefecture). Home state controls where you run for most offices, canvass, and most eligibility checks. Relocation is an immediate API action (POST /api/character/relocate, rate limited to 10 requests per 60 seconds per user), not a turn-phase process. It never waits for a turn tick. The 72-turn cooldown is measured in turns from lastRelocatedTurn.

Player guide: Relocation

Rules#

Cooldown#

What always resets (any relocation)#

What happens whenever the party is left#

Leaving the party happens on every country change and on a confirmed same-country departure (leaveParty in performRelocation). In both cases the character becomes Independent, party influence goes to 0, and cleanupPartyPositionsOnSwitch runs:

What only resets on country change#

These cross-country cleanup steps run in (step 4b).

What is preserved#

Campaign funds, personal cash, savings (all currencies), actions, favorability, infamy, policy positions, earlier career history entries, avatars, bonds, share holdings, and line-of-credit balances/arrears. Money is never currency-converted.

Blocking conditions#

Checked in this order by the route:

There is no block for active candidacies or office-holding: those are handled automatically.

CEO and corporation rules#

Corporate move cost#

Corporate move cost is round(sharePrice x totalShares, converted to anchor currency) x 0.07 x (2 if cross-country else 1), with the rounding applied at the end to the whole product, computed by computeCorpRelocationCost in . Imperial CEOs pay 0 (paymentMethod: "imperial-free", valid only for imperial CEOs). The cost can be paid in cash (Liquid Capital) or by issuing a relocation bond with a 336 turn maturity, subject to the leverage cap and the bond cooldown.

Combined character + corporation relocation#

When you click "Relocate here" from a region page as a CEO, the dialog offers three options instead of the usual two:

Cross-country corporate relocations cost 2x the base 7% of market cap (so 14%). Imperial CEOs' corporations move along with the character at no cost; the dialog still shows the choice, with an info line that the move is free instead of the payment options.

The "Relocate & Move Corporation" button is disabled when a player-owned corp cannot afford the selected payment method (insufficient Liquid Capital, bond cooldown still active, or leverage cap reached). The other two options remain available.

The combined route () refuses the move with 409 while primary-underwriting cash is settling, while a relocation bond is waiting to be published for a different target or payment method, or while secured construction is unresolved. It refuses with 400 when the destination is a command economy and the corp is private. A cross-country move into a different currency converts the corp's treasury and sectors first.

When a HQ moves via the CEO Office (not the combined flow) and the CEO does not reside at the destination, the CEO is auto-vacated: same semantics as character relocation. The UI warns the player before submission; the action is not blocked.

Admin and moderator overrides#

PATCH /api/admin/characters/update-country, PATCH /api/admin/characters/update-state, PATCH /api/moderator/characters/update-country, and PATCH /api/moderator/characters/update-state run the same performRelocation pipeline and so never bypass the office, candidacy, CEO or cross-country cleanup. The differences from the player flow: no cooldown check, no country-availability gate, no rate limit, no party-departure confirmation and no territory guard (a same-country admin move never removes party membership, a country change always does). They still write lastRelocatedTurn, so they start the cooldown.

Constants#

Constant Value Source
RELOCATION_COOLDOWN_TURNS 72
STATE_LEADERSHIP_RELOCATION_DELAY_TURNS 24
RELOCATION_COST_FRACTION 0.07 (7% of market cap)
CROSS_COUNTRY_RELOCATION_MULTIPLIER 2 (so 14%)
RELOCATION_BOND_MATURITY_TURNS 336
TURNS_PER_DAY 24
Relocate API rate limit 10 requests per 60 s per user (same for relocate-with-corp) , relocate-with-corp/route.ts

Data#

Collection Fields Access Player-visible
characters homeState, countryId, lastRelocatedTurn, lastRelocatedAt, careerHistory, politicalInfluence, donorBaseLevel, groupFavorability, nationalInfluence, party, partyInfluence, currentOffice, partyJoinedAt, partyJoinedTurn, foundedPartyId, lastPartySwitchAt Read and written Yes (home, influence, career history, cooldown)
electedOfficials characterId, characterName, party, electedAt Vacated on resignation; party set to independent on a domestic departure Yes (seat becomes vacant)
corporations ceoId, ceoVacant, headquartersState, countryId, liquidCapital, headquartersRelocationBondFunding Written Yes
statePartyOrg chairId, viceChairId, treasurerId Cleared for the old state Yes
politicalParties memberCount Decremented on leaving Yes
centralBanks chairCharacterId and chair fields Cleared on country change Yes
campaigns, governmentFormations, parliamentaryGovernments, cabinetMembers manager, PM and cabinet links Cleared on country change Yes
caucus collections, military command chain memberships and command ids Closed or severed on country change Yes
candidacy and party-election collections the character's entries Withdrawn Yes
states _id, countryId, name Read Yes
gameConfig / country access enabledForPlayers per country Read No

The corporation move also creates a relocation bond record when paid by bond.

Configuration#

Setting Default Effect Set in
Country access enabledForPlayers Per country Blocks cross-country moves to a closed country for non-admins getCountryAccess in src/lib/countryAccess
US political region set Active apportionment preset plus admitted states Decides which US targets are valid loadUsPoliticalStateIds in src/lib/elections/usPoliticalHome
Party frontier Computed from live party presence Decides whether a same-country move keeps party membership
Forex mode (isForexEnabled) Per world Controls the currency conversion step of a cross-currency corporate move

The constants above are code constants with no gameConfig field. There are no era or scenario presets for the cooldown or cost.

Timing#

  1. The API route checks target, cooldown, country access, US territory eligibility and party departure.
  2. performRelocation () runs in order: 1 office resign, 2 withdraw candidacies, 3 CEO resign, 4 central bank chair (country change), 4b country-scoped roles, 4c military chain, 5 state party leadership, 6 party departure cleanup, 7 character update, 8 career history, 9 party presence recount.
  3. Nothing is deferred to the turn processor. The seat vacated in step 1 is picked up later by the perpetual-election spawner on its normal turn schedule.
flowchart TD
  A[POST relocate] --> B[Checks: target, US region, cooldown, country, party]
  B --> C[Optional corp payment and HQ move]
  C --> D[performRelocation steps 1 to 9]
  D --> E[lastRelocatedTurn set, cooldown starts]
  E --> F[Next turn: election spawner refills vacated seat]

In the combined flow the corporation update (cash debit, or bond issue in a database transaction) runs before performRelocation. The two are separate writes, not one transaction.

Worked trace#

A character in Ohio holds a state legislature seat, is a member of a party that operates in Michigan, has political influence 45, donor level 12, national influence 30, a primary candidacy open, and last relocated at turn 100. The current turn is 180. They move to Michigan (same country).

Check or step Result
Cooldown 100 + 72 - 180 = -8, so not on cooldown
Party reach Michigan is inside the frontier, so relocationLeavesParty is false, no confirmation needed
Step 1 State legislature seat is state-bound, so the seat is vacated
Step 2 The primary candidacy is withdrawn
Step 3 No CEO role, nothing happens
Step 5 Any Ohio state-party post held is cleared
Step 7 homeState = Michigan, politicalInfluence 45 to 0, donorBaseLevel 12 to 0, groupFavorability cleared, nationalInfluence stays 30, lastRelocatedTurn = 180
Step 8 A relocated entry with fromState Ohio and toState Michigan is appended
Step 9 Party presence is recounted for Ohio and Michigan
Next move allowed Turn 180 + 72 = 252. State party leadership allowed from turn 204

For a corporate move with the character: a corporation with 2,000,000 shares at a share price of 5.00 in a currency at rate 1 per ₳ has a market cap of 10,000,000. In-country it costs round(10,000,000 x 0.07 x 1) = 700,000; to another country round(10,000,000 x 0.07 x 2) = 1,400,000. A bond to cover the cost matures after 336 turns.

Edge cases and limits#

Invariants#

Invariant Enforced by
After any move, political influence, donor base and group favorability are 0 or empty performRelocation step 7; tested in
State-bound offices resign on every move; country-scoped ones only on country change officeResignsOnRelocation; tested in officeResignsOnRelocation.test.ts and performRelocation.test.ts
A country change always ends party membership `leaveParty = countryChanged
A relocated character is never CEO of a corporation whose HQ they do not live in Step 3 plus findActiveResidentCeoCorporation; the combined route test covers a stale CEO
A cooldown is always 72 turns for player moves getRelocationCooldownStatus; tested in relocationCooldown.test.ts
A failed party guard changes nothing The guard throws before performRelocation; tested in
All steps of performRelocation commit together Not enforced: they are separate writes without a transaction

Failure and recovery#

Connections#

Driven by:

Affects:

Related pages:

Tests#

File Covers
Resets, party handling, offices, CEO rules, caucus, military chain, career history
Turn and legacy cooldown, labels
Party departure decision
Which offices resign
Active candidacy summary
Party frontier and confirmed departure through the route
Combined move: CEO checks, cross-country cost, command economy, imperial
, Override routes

Gaps: no direct test of the player route's cooldown 429, the unplayable-territory 400, the country-access 403 or the federation 409; no test of the bond payment path in the combined route; no test that performRelocation steps stay consistent after a mid-pipeline failure.

Known issues and history#

Last checked: 2026-10-29, version 1.18.0

Ask