
LawChanged this version
Free Cities
The Free Cities of the Holy Roman Empire are self-ruling cities with autonomy. They are usually where Imperial Diet meetings are held.
Holy Roman EmpireInternational OrganizationpotentialPolicies 5
Definitionin_game/common/laws/20_hre.txt:1698
1699law_category = free_city
1700type = international_organization
1701potential = {
}
1708locked = {
}
1710has_levels = yes
1711custom_tags = {
forbids_no_policy
}
1712no_free_cities_policy = {
1713level = 1
1714allow = {
1715international_organization_has_law = law:free_city_law
1716hre_can_select_adjacent_reform_level = {
1716law = law:free_city_law
1716policy = policy:no_free_cities_policy
}
1717has_currency_to_vote_for_law = {
1717value = imperial_authority_prince_very_friendly_law
}
}
1719on_activate = {
1720hre_on_reform_level_passed_effect = {
1720law_imperial_authority_cost = imperial_authority_prince_very_friendly_law
}
1721hre_on_reform_level_passed_opinion_effect_all_members = {
1721strength = prince_very_friendly
}
1722hre_disable_free_cities = yes
}
1724on_deactivate = {
1725hre_enable_free_cities = yes
}
1728wants_propose_policy = {
1729add = {
1730desc = "POLICY_BIAS_LEADER_OPPOSES"
1731value = -250
}
1733add = {
1734desc = "BIAS_FROM_RULER_TRAITS"
1735value = modifier:bias_for_militarist_policies
}
}
1739wants_this_policy_bias = {
1740add = {
1741desc = "POLICY_BIAS_PRINCE_SUPPORTS"
1742value = 50
}
1744add = hre_default_policy_opinion
1745if = {
1746limit = {
1746has_special_status_in_international_organization = {
1746type = special_status:free_city
1746international_organization = scope:recipient
}
}
1747subtract = {
1748desc = "DOES_NOT_BENEFITS_US"
1749value = 1000
}
}
1752else = {
1753add = {
1754value = hre_free_city_opinion_value
1755multiply = -1
}
}
1758add = {
1759desc = "BIAS_FROM_RULER_TRAITS"
1760value = modifier:bias_for_militarist_policies
}
}
1763wants_keep_policy = {
1764add = hre_default_keep_policy_opinion
}
}
1767no_emperor_allegiance_policy = {
1768level = 2
1769allow = {
1770international_organization_has_law = law:free_city_law
1771hre_can_select_adjacent_reform_level = {
1771law = law:free_city_law
1771policy = policy:no_emperor_allegiance_policy
}
1772has_currency_to_vote_for_law = {
1772value = imperial_authority_prince_friendly_law
}
}
1774on_activate = {
1775hre_on_reform_level_passed_effect = {
1775law_imperial_authority_cost = imperial_authority_prince_friendly_law
}
1776hre_on_reform_level_passed_opinion_effect_all_members = {
1776strength = prince_friendly
}
1777hre_disable_free_cities_protection = yes
}
1779on_deactivate = {
1780hre_enable_free_cities_protection = yes
}
1783wants_propose_policy = {
1784add = {
1785desc = "POLICY_BIAS_LEADER_OPPOSES"
1786value = -250
}
1788add = {
1789desc = "BIAS_FROM_RULER_TRAITS"
1790value = modifier:bias_for_militarist_policies
}
}
1794wants_this_policy_bias = {
1795add = {
1796desc = "POLICY_BIAS_PRINCE_SUPPORTS"
1797value = 50
}
1799add = hre_default_policy_opinion
1800if = {
1801limit = {
1801has_special_status_in_international_organization = {
1801type = special_status:free_city
1801international_organization = scope:recipient
}
}
1802add = {
1803desc = "DOES_NOT_BENEFITS_US"
1804value = -1000
}
}
1807else = {
1808add = {
1809value = hre_free_city_opinion_value
1810multiply = -1
}
}
1813add = {
1814desc = "BIAS_FROM_RULER_TRAITS"
1815value = modifier:bias_for_militarist_policies
}
}
1818wants_keep_policy = {
1819add = hre_default_keep_policy_opinion
}
}
1822free_cities_policy = {
1823level = 3
1824allow = {
1825hre_can_select_adjacent_reform_level = {
1825law = law:free_city_law
1825policy = policy:free_cities_policy
}
1826has_currency_to_vote_for_law = {
1826value = imperial_authority_standard_law
}
}
1828on_activate = {
1829hre_on_reform_level_passed_effect = {
1829law_imperial_authority_cost = imperial_authority_standard_law
}
}
1831country_modifier = {
1833potential_trigger = {
1834custom_tooltip = {
1835text = hre_free_city_bonus_tt
1836international_organization:hre = {
1837country_has_special_status = {
1838type = special_status:free_city
1839country = root
}
}
}
}
1844global_merchant_capacity_modifier = 0.2
}
1847wants_propose_policy = {
1848if = {
1849limit = {
1850scope:recipient = {
1851NOT = {
1851international_organization_has_policy = policy:cities_of_the_emperor_policy
}
}
}
1854add = {
1855desc = "POLICY_BIAS_LEADER_SUPPORTS"
1856value = 25
}
1858add = {
1859desc = "BIAS_FROM_RULER_TRAITS"
1860value = modifier:bias_for_diplomat_policies
}
}
1863else = {
1864subtract = {
1865desc = "WE_ALREADY_HAVE_A_BETTER_POLICY"
1866value = 1000
}
}
1869add = hre_default_emperor_policy_desire
}
1872wants_this_policy_bias = {
1873add = {
1874desc = "POLICY_ANCIENT_TRADITION"
1875value = 25
}
1877add = hre_default_policy_opinion
1878if = {
1879limit = {
1879has_special_status_in_international_organization = {
1879type = special_status:free_city
1879international_organization = scope:recipient
}
}
1880add = {
1881desc = "BENEFITS_US"
1882value = 25
}
}
1885else = {
1886add = hre_free_city_opinion_value
}
1888add = {
1889desc = "OPPOSES_RULER_TRAITS"
1890value = modifier:bias_for_militarist_policies
1891multiply = -1
}
}
1894wants_keep_policy = {
1895add = hre_default_keep_policy_opinion
}
}
1898cities_of_the_emperor_policy = {
1899level = 4
1900allow = {
1901international_organization_has_law = law:free_city_law
1902hre_can_select_adjacent_reform_level = {
1902law = law:free_city_law
1902policy = policy:cities_of_the_emperor_policy
}
1903hre_num_of_emperor_comfort_policies_active = {
1903value = 1
}
1904has_currency_to_vote_for_law = {
1904value = imperial_authority_controversial_law
}
}
1906on_activate = {
1907hre_on_reform_level_passed_effect = {
1907law_imperial_authority_cost = imperial_authority_controversial_law
}
1908hre_enable_free_city_subjects = yes
1909if = {
1910limit = {
1910exists = leader_country
}
1911hidden_effect = {
1912save_temporary_scope_value_as = {
1912name = average_free_city_antagonism
1912value = 0
}
1913save_temporary_scope_value_as = {
1913name = antagonism_bomb_members
1913value = 0
}
1914every_country_with_special_status_of_type = {
1915type = free_city
1916root.leader_country = {
1917save_temporary_scope_value_as = {
1918name = average_free_city_antagonism
1919value = {
1920value = scope:average_free_city_antagonism
1921add = {
1922value = "bias_value(antagonism_broke_subject_union)"
1923multiply = {
1924value = prev.country_economical_base
1925divide = 2000
}
}
}
}
1930save_temporary_scope_value_as = {
1931name = antagonism_bomb_members
1932value = {
1933value = scope:antagonism_bomb_members
1934add = 1
}
}
}
}
1939save_temporary_scope_value_as = {
1940name = average_free_city_antagonism
1941value = {
1942value = scope:average_free_city_antagonism
1943if = {
1944limit = {
1944scope:antagonism_bomb_members > 0
}
1945divide = scope:antagonism_bomb_members
}
}
}
}
1950if = {
1951limit = {
1951exists = scope:average_free_city_antagonism
}
1952custom_tooltip = free_city_subjugation_antagonism_tt
}
}
}
1956on_deactivate = {
1957hre_disable_free_city_subjects = yes
}
1960wants_propose_policy = {
1961if = {
1962limit = {
1963scope:recipient = {
1964NOT = {
1964international_organization_has_policy = policy:direct_imperial_cities_policy
}
}
}
1967add = {
1968desc = "POLICY_BIAS_LEADER_SUPPORTS"
1969value = 75
}
1971add = {
1972desc = "BIAS_FROM_RULER_TRAITS"
1973value = modifier:bias_for_administrative_policies
}
1975add = {
1976desc = "BIAS_FROM_RULER_TRAITS"
1977value = modifier:bias_for_diplomat_policies
}
}
1980else = {
1981subtract = {
1982desc = "WE_ALREADY_HAVE_A_BETTER_POLICY"
1983value = 1000
}
}
1986add = hre_default_emperor_policy_desire
}
1989wants_this_policy_bias = {
1990add = {
1991desc = "POLICY_BIAS_PRINCE_OPPOSES"
1992value = -75
}
1994add = hre_default_policy_opinion
1995if = {
1996limit = {
1996has_special_status_in_international_organization = {
1996type = special_status:free_city
1996international_organization = scope:recipient
}
}
1997add = {
1998desc = "POLICY_RESTRICTS_SOVEREIGNTY"
1999value = -150
}
}
}
2003wants_keep_policy = {
2004add = hre_default_keep_policy_opinion
}
}
2007direct_imperial_cities_policy = {
2008level = 5
2009allow = {
2010international_organization_has_law = law:free_city_law
2011hre_can_select_adjacent_reform_level = {
2011law = law:free_city_law
2011policy = policy:direct_imperial_cities_policy
}
2012hre_num_of_emperor_comfort_policies_active = {
2012value = 2
}
2013has_currency_to_vote_for_law = {
2013value = imperial_authority_opposed_law
}
}
2015on_activate = {
2016hre_on_reform_level_passed_effect = {
2016law_imperial_authority_cost = imperial_authority_opposed_law
}
2017hre_enable_direct_free_city_subjects = yes
2018if = {
2019limit = {
2019exists = leader_country
}
2020hidden_effect = {
2021save_temporary_scope_value_as = {
2021name = average_free_city_antagonism
2021value = 0
}
2022save_temporary_scope_value_as = {
2022name = antagonism_bomb_members
2022value = 0
}
2023every_country_with_special_status_of_type = {
2024type = free_city
2025root.leader_country = {
2026save_temporary_scope_value_as = {
2027name = average_free_city_antagonism
2028value = {
2029value = scope:average_free_city_antagonism
2030add = {
2031value = "bias_value(antagonism_broke_subject_union)"
2032multiply = {
2033value = prev.country_economical_base
2034divide = 2000
}
}
}
}
2039save_temporary_scope_value_as = {
2040name = antagonism_bomb_members
2041value = {
2042value = scope:antagonism_bomb_members
2043add = 1
}
}
}
}
2048save_temporary_scope_value_as = {
2049name = average_free_city_antagonism
2050value = {
2051value = scope:average_free_city_antagonism
2052if = {
2053limit = {
2053scope:antagonism_bomb_members > 0
}
2054divide = scope:antagonism_bomb_members
}
}
}
}
2059if = {
2060limit = {
2060exists = scope:average_free_city_antagonism
}
2061custom_tooltip = free_city_subjugation_antagonism_tt
}
}
}
2065on_deactivate = {
2066hre_disable_direct_free_city_subjects = yes
}
2068international_organization_modifier = {
2069hre_emperor_comfort_policies_counter = 1
}
2072wants_propose_policy = {
2073add = {
2074desc = "POLICY_BIAS_LEADER_SUPPORTS"
2075value = 150
}
2077add = {
2078desc = "BIAS_FROM_RULER_TRAITS"
2079value = modifier:bias_for_administrative_policies
}
2081add = {
2082desc = "BIAS_FROM_RULER_TRAITS"
2083value = modifier:bias_for_diplomat_policies
}
2085add = hre_default_emperor_policy_desire
}
2088wants_this_policy_bias = {
2089add = {
2090desc = "POLICY_BIAS_PRINCE_OPPOSES"
2091value = -75
}
2093add = hre_default_policy_opinion
2094if = {
2095limit = {
2095has_special_status_in_international_organization = {
2095type = special_status:free_city
2095international_organization = scope:recipient
}
}
2096add = {
2097desc = "POLICY_RESTRICTS_SOVEREIGNTY"
2098value = -250
}
}
2101add = {
2102desc = "LEVEL_OF_EMPEROR_COMFORT_REFORMS"
2103value = 10
2104multiply = scope:recipient.modifier:hre_emperor_comfort_policies_counter
2105multiply = -1
}
}
2108wants_keep_policy = {
2109add = hre_default_keep_policy_opinion
}
}