A House Divided A House DividedDocumentation
↵
Changelog
Game Design/Elections & Campaigns

Fundraising & Ads

Last updated 2026-10-29
Player wikiFundraising & Ads
Source files

Summary#

Campaign funds pay for advertising, campaigning, donor building and party operations. This page is the exact rules for earning funds (per-turn generation, the Fundraise action, the campaign page income) and spending them on ads and related actions.

Player guide: Fundraising & Ads

There are two related but separate income systems: personal character campaign funds (, run by ) and candidate campaign funds (src/lib/campaigns/). Money constants below are in anchor currency (₳) and converted to the player's local campaign currency at the write boundary. Starting campaign funds are 250,000 (gameConfig.startingFunds, ); the one-time onboarding reward is 20% of that, 50,000 (ONBOARDING_REWARD_FRACTION, ).

Rules#

Per-turn fund generation (personal funds)#

Gross generation per turn, before party tax (getTotalFundGeneration, ):

gross = round((baseRate + donorBonus) x gdpScalar x priceLevel) + round(officeBonus x priceLevel)
donorBonus = DONOR_BASE_BONUS_PER_LEVEL[tier] x donorBaseLevel x influenceMultiplier
influenceMultiplier = 1 + clamp(stateInfluence, 0, 100) / 100      // 1.0 at 0%, 2.0 at 100%
gdpScalar = clamp(statGdpPerCapita / countryBaseline, 0.9, 1.5)

stateInfluence is the character's politicalInfluence field, passed in by the turn (projectCharacterGeneration).

Tier State population Base rate per turn Donor bonus per level per turn
Small under 2,000,000 5,000 100
Medium 2,000,000 to under 8,000,000 10,000 200
Large 8,000,000 to under 20,000,000 20,000 400
Mega 20,000,000 and over 40,000 800

priceLevel is the era deflator (1 in the modern era), from resolveCampaignPriceLevel (). The office bonus is flat and ignores state wealth.

Office Bonus per turn Constant key
US House, UK Commons, Bundestag 5,000 house, commons, bundestag
US State Senate, Landtag 3,000 stateSenate, landtag
US Senate, Governor, Minister-President 15,000 senate, governor, ministerPresident
Vice President 25,000 vicePresident
President, Prime Minister, Chancellor 50,000 president, primeMinister, chancellor
Parliamentary cabinet, UK cabinet minister 5,000 parliamentaryCabinet, ukCabinet

All in OFFICE_FUND_BONUS, .

Party tax#

Both the state party tax and the national party tax are taken from gross generation: floor(gross x rate / 100) each, and the character receives gross - stateTax - nationalTax (). MAX_TAX_RATE = 33; a rate above 33 yields no tax (calculateTaxAmount). Independents pay no tax. Each tax credits the matching party treasury. The Fundraise action credits its full yield and is not routed through this tax.

Fundraise action#

Build Donor Network (BuildDonorBase)#

Campaign action#

Personal Campaign Donation (ConvertCash)#

Campaign page income#

Candidate campaigns have their own per-turn passive income (, ):

Fundraising level 0 1 2 3 4 5 6 7 8 9 10
Base income per turn 20,000 35,000 60,000 100,000 150,000 200,000 350,000 600,000 1,000,000 2,500,000 5,000,000

(FUNDRAISING_INCOME.) Income is multiplied by a race-family scalar (CAMPAIGN_FAMILY_SCALAR_BY_ELECTION_TYPE): president 1.0; senate, governor, commons, shugiin, sangiin, bundestag and NPC delegate 0.5; ministerPresident and landtag 0.4; house, regional council and people's congress 0.3; special commons 0.3; state senate 0.2; unknown types 1.0. A started Strategic Operations fundraising tree replaces the legacy level table. Upgrade costs and maintenance are in campaign strategy.

Data#

Collection Fields read Fields written Player-visible
characters donorBaseLevel, politicalInfluence, favorability, infamy, stats.fundraising, stats.charisma, currentOffice, homeState, party, funds or currencyBalances.campaign, personal cash funds or currencyBalances.campaign (income, action costs, ConvertCash credit), donorBaseLevel, favorability, politicalInfluence, infamy, personal cash, action points Yes: own stats, funds and actions
states population, gdp, countryId none Yes (state pages)
politicalParties nationalTaxRate treasury (national tax credit) Treasury yes, on party pages
statePartyOrg stateTaxRate treasury (state tax credit) Treasury yes, on party pages
campaigns fundraisingTree, fundraisingLevel, election type campaign funds (income per turn) Yes (campaign page)
gameConfig campaignEraPriceLevelEnabled, mediaEditorialEnabled none No
gameState preset, forexEnabled none No
Financial and treasury ledgers none office_income and party_dues_received entries, treasury fund_generation credits Own entries only

Money constants are in anchor currency and converted to the player's local campaign currency when written (campaignAnchorToLocal, ). Taxes are computed after that conversion, in local units.

Configuration#

Setting Default Where set Effect
gameConfig.campaignEraPriceLevelEnabled true on fresh worlds (absent or false means price level 1) Applies the era price level to income, costs and Fundraise yield
gameConfig.startingFunds 250,000 Opening campaign funds; also sizes the onboarding reward
gameConfig.mediaEditorialEnabled true on fresh worlds Enables the newsroom slant discount on Advertise
gameState.preset world preset (2019-default fallback) World reset; fallback in Picks the GDP baseline era and the price level
gameState.forexEnabled world-specific World config Chooses currencyBalances.campaign over legacy funds as the credited field
Party tax rates 0 Party (nationalTaxRate) and state party (stateTaxRate) settings, capped at 33 Share of gross income sent to treasuries
Era price level table 2019 is 1 ERA_PRICE_LEVEL, See table below
politicalMediaMarketEnabled false, hard-coded Corporation-backed ad orders are off

ERA_PRICE_LEVEL ():

Era 1953 1979 1991 1999 2007 2019 2023 2027
Price level 0.03673 0.16688 0.35808 0.49707 0.6562 1 1.14996 1.28579

An unknown preset resolves to 1. The level multiplies income, the flat office bonus, Fundraise yield and the money cost of Campaign, Advertise and Build Donor Network. It is applied after the GDP scalar and rounding to the nearest 1,000.

Timing#

Order of operations#

  1. Player acts: Fundraise, Build Donor Network, Advertise, Campaign or ConvertCash (spends action points and funds, applies effect).
  2. Each turn: processFundGeneration computes gross, splits state and national tax, credits the player and party treasuries.
  3. Each turn: action refresh applies PI decay; campaign turn adds candidate campaign income.
actions (immediate, executeAction)   Fundraise, Build Donor Network, Advertise, Campaign, ConvertCash
turn group 1 (resourceAndFinanceStart)   actionRefresh (PI decay) and fundGeneration run in parallel
turn group 6 (billsCampaignsAndActivity)   campaign turn adds candidate campaign income

Worked trace#

A medium-tier state (population 5,000,000), donor level 5, state influence 50%, US House seat, gdpScalar 1.0, modern era.

Extended with the other actions, same state and character:

Action Calculation Result
Build Donor Network at level 5 AP: round(4 + (5/75)^1.4 x 16) = round(4.36) = 4. Funds: round((3,000 + 7,500) x 1.0 / 1,000) x 1,000 = 11,000, divided by statMultiplier(5.5) = 1.0 4 AP, 11,000 funds, level 5 becomes 6
Campaign at state PI 45 Tier 3, so 3 AP. Multiplier 1 + 2 x 0.2 = 1.4. Funds 20,000 x 3 x 1.4 = 84,000. PI gain max(0.1, 1 - 0) x 1.0 3 AP, 84,000 funds, PI +1.0
ConvertCash 100,000 Credit floor(100,000 x 0.5) = 50,000. Infamy round(15 x 0.1^0.564) = round(4.09) = 4 2 AP, 100,000 cash spent, 50,000 funds, infamy +4

The same income in a 1953 world (price level 0.03673, flag on): base plus donor round(11,500 x 0.03673) = 422, office round(5,000 x 0.03673) = 184, gross 606. Taxes floor(60.6) = 60 and floor(121.2) = 121, so the player receives 425.

Edge cases and limits#

Invariants#

Invariant Enforced by
Character income plus state tax plus national tax equals gross Arithmetic in ; (party member and independent cases)
A tax rate outside 1 to 33 yields no tax calculateTaxAmount;
A quoted cost or yield equals what execution debits or credits (effect matches quote for Fundraise, Advertise, Campaign, Build Donor Network);
Infamy stays within 0 to 100 clampAddExpression in executeAction.ts, plus the cap in calculateConvertCashInfamy
Income GDP scalar within 0.9 to 1.5, cost scalar within 0.85 to 2.0 Clamps in getIncomeGdpScalar and getFundMultiplier
Donor base level within 0 to 75 Not enforced on write
Era price level reproduces today's arithmetic when off or modern (table matches the GDP baseline table) and

Failure and recovery#

Connections#

Driven by:

Affects:

Tests#

Area Test files
Fund generation, tax, era scaling , ,
Turn income and treasury credits
Action quotes and costs ,
Era price level
Newsroom slant
Campaign page income
Boost and attack premiums

Gaps: no test covers the donor level 75 design range, and the two income paths are not compared against each other.

Known issues and history#

Last checked: 2026-10-29, version 1.18.0

Ask