aboutsummaryrefslogtreecommitdiff
path: root/docs/simulation
diff options
context:
space:
mode:
author wvpm <24685035+wvpm@users.noreply.github.com>2023-12-29 10:11:34 +0100
committer wvpm <24685035+wvpm@users.noreply.github.com>2023-12-29 21:00:40 +0100
commitc7796961c6522dc94aaba00fa8c9fc0391cf2664 (patch)
tree98cc2a33daca6887b1a0ea0334c30a54fa1c3e35 /docs/simulation
parent62b0e39e7cd294cab9c428d15f1be97a8c39eecc (diff)
Document RGO & social income
Corrected formula Corrected formula
Diffstat (limited to 'docs/simulation')
-rw-r--r--docs/simulation/calculations.yaml55
1 files changed, 38 insertions, 17 deletions
diff --git a/docs/simulation/calculations.yaml b/docs/simulation/calculations.yaml
index 3e0f931..8de4aba 100644
--- a/docs/simulation/calculations.yaml
+++ b/docs/simulation/calculations.yaml
@@ -13,17 +13,13 @@ Budget:
MGQ: Money good quanity = total production of goods with money = yes
GOLD_TO_CASH_RATE: defines.country.GOLD_TO_CASH_RATE
Diplomacy:
- Monthly diplomatic points gain:
- formula: defines.country.BASE_MONTHLY_DIPLOPOINTS * (1 + sum of diplomatic_points + sum of diplomatic_points_modifier)
- Total base influence gain:
- formula: defines.country.BASE_GREATPOWER_DAILY_INFLUENCE * (1 + sum of influence) * (1 + sum of influence_modifier)
- Base influence gain per country:
- if total priority bars > 0:
- formula: Total base influence gain * priority bars / total priority bars
- else:
- formula: Total base influence gain / number of countries (excluding banned)
- Colonisable life rating:
- formula: defines.country.COLONIAL_LIFERATING + sum of colonial_life_rating
+ Monthly diplomatic points gain: defines.country.BASE_MONTHLY_DIPLOPOINTS * (1 + sum of diplomatic_points + sum of diplomatic_points_modifier)
+ Influence:
+ Total base influence gain: defines.country.BASE_GREATPOWER_DAILY_INFLUENCE * (1 + sum of influence) * (1 + sum of influence_modifier)
+ Base influence gain per country:
+ if total priority bars > 0: Total base influence gain * priority bars / total priority bars
+ else: Total base influence gain / number of countries (excluding banned)
+ Colonisable life rating: defines.country.COLONIAL_LIFERATING + sum of colonial_life_rating
POPs:
Monthly pop growth:
formula: BASE_POPGROWTH + (min(40, LR * (1 + LRM)) - MIN_LIFE_RATING_FOR_GROWTH) * LIFE_RATING_GROWTH_BONUS + population_growth + pop_growth + global_population_growth/10
@@ -36,9 +32,34 @@ POPs:
population_growth: Sum of population_growth modifiers
pop_growth: Sum of pop_growth modifiers
global_population_growth/10: Sum of global_population_growth modifiers
- Consciousness from literacy:
- formula: defines.pops.CON_LITERACY * Plurality * POP literacy * (1 + literacy_con_impact)
- Life needs scalar:
- formula: (1 + Plurality) * (1 + 2 * Consciousness / defines.pops.PDEF_BASE_CON) * (1 + sum of goods_demand) * defines.pop.BASE_GOODS_DEMAND * POP size / 200000
- Everyday & luxury needs scalar:
- formula: Life needs scalar * (1 + number of inventions * defines.pops.INVENTION_IMPACT_ON_DEMAND) \ No newline at end of file
+ Attitudes:
+ Consciousness from literacy: defines.pops.CON_LITERACY * Plurality * POP literacy * (1 + literacy_con_impact)
+ Needs:
+ Life needs scalar: (1 + Plurality) * (1 + 2 * Consciousness / defines.pops.PDEF_BASE_CON) * (1 + sum of goods_demand) * defines.pop.BASE_GOODS_DEMAND * POP size / 200000
+ Everyday & luxury needs scalar: Life needs scalar * (1 + number of inventions * defines.pops.INVENTION_IMPACT_ON_DEMAND)
+ POP income:
+ Pensions: 2 * pension_level * administrative efficiency * social spending slider * base life needs price * (1 - effective tax) * POP size / 200000
+ Unemployment subsidies: 2 * unemployment_benefit * administrative efficiency * social spending slider * base life needs price * (1 - effective tax) * POP size / 200000
+ Wages:
+ Minimum (worker) wage: 2 * minimum_wage * administrative efficiency * base life needs price * (1 - effective tax) * POP size / 200000
+ RGO wages:
+ Owners:
+ if minimum worker wages > normal worker wage:
+ formula: (RGO income - total worker income) * owner POP size / owners * (1 - effective tax)
+ else:
+ formula: RGO income * min(0.5, 2 * owners / workers) * owner POP size / owners * (1 - effective tax)
+ owners: total size of owner POPs in state
+ workers: number of employed workers in RGO
+ min(0.5: Hardcoded maximum of half the RGO income.
+ 2*: Hardcoded value.
+ Workers:
+ if is_slave: 0
+ else:
+ if minimum wage > normal wage:
+ formula: min(minimum wage, RGO income * employed workers in POP / total non-slave employed workers) * (1 - effective tax)
+ else:
+ formula: RGO income * max(0.5, 1 - 2 * owners / workers) * employed workers in POP / total non-slave employed workers * (1 - effective tax)
+ owners: total size of owner POPs in state
+ workers: number of employed workers in RGO
+ max(0.5: Hardcoded minimum of half the RGO income.
+ 2*: Hardcoded value. \ No newline at end of file