Skip to content

Commit

Permalink
make colonial railroading optional again (#2)
Browse files Browse the repository at this point in the history
create the `disable_colonial_railroading` global flag and add conditions
which require it to be unset to many decisions which give territory away
freely.
  • Loading branch information
addonovan authored Dec 24, 2018
1 parent 0d432b8 commit e6c7356
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 25 deletions.
5 changes: 3 additions & 2 deletions HFM/decisions/BEL.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ political_decisions = {
}
NOT = { any_owned_province = { is_colonial = yes } }
raider_group_doctrine = 1
year = 1884
year = 1884
NOT = { has_global_flag = colonial_railroading_disbaled }
}
}
}
Expand Down Expand Up @@ -558,4 +559,4 @@ political_decisions = {
}
}

}
}
70 changes: 47 additions & 23 deletions HFM/decisions/FlavourMod_Africa.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ political_decisions = {
exists = yes
neighbour = THIS
}
NOT = { has_global_flag = colonial_railroading_disabled }
}

allow = {
Expand Down Expand Up @@ -83,6 +84,7 @@ political_decisions = {
government = prussian_constitutionalism
}
NOT = { invention = the_dark_continent }
NOT = { has_global_flag = colonial_railroading_disabled }
}

allow = {
Expand Down Expand Up @@ -146,7 +148,8 @@ political_decisions = {
government = absolute_monarchy
government = prussian_constitutionalism
}
NOT = { invention = the_dark_continent }
NOT = { invention = the_dark_continent }
NOT = { has_global_flag = colonial_railroading_disabled }
}

allow = {
Expand Down Expand Up @@ -232,6 +235,7 @@ political_decisions = {
government = absolute_monarchy
government = prussian_constitutionalism
}
NOT = { has_global_flag = colonial_railroading_disabled }
}

allow = {
Expand Down Expand Up @@ -282,6 +286,7 @@ political_decisions = {
civilized = no
war = no
}
NOT = { has_global_flag = colonial_railroading_disabled }
}

allow = {
Expand Down Expand Up @@ -325,7 +330,8 @@ political_decisions = {
year = 1896
is_greater_power = yes
has_country_flag = treaty_of_heligoland_success
NOT = { has_country_flag = zanzibar_protectorate }
NOT = { has_country_flag = zanzibar_protectorate }
NOT = { has_global_flag = colonial_railroading_disabled }
}

allow = {
Expand Down Expand Up @@ -359,7 +365,8 @@ political_decisions = {
owns = 2024
}
}
NOT = { has_country_flag = british_east_africa }
NOT = { has_country_flag = british_east_africa }
NOT = { has_global_flag = colonial_railroading_disabled }
}

allow = {
Expand Down Expand Up @@ -412,7 +419,8 @@ political_decisions = {
is_vassal = no
vassal_of = THIS
}
}
}
NOT = { has_global_flag = colonial_railroading_disabled }
}

allow = {
Expand Down Expand Up @@ -446,7 +454,8 @@ political_decisions = {
NOT = { government = proletarian_dictatorship }
NOT = { has_country_flag = british_sierra_leone }
owns = 1884
1885 = { empty = yes }
1885 = { empty = yes }
NOT = { has_global_flag = colonial_railroading_disabled }
}

allow = {
Expand Down Expand Up @@ -492,7 +501,8 @@ political_decisions = {
in_sphere = THIS
}
}
NOT = { has_country_flag = brazzas_expedition }
NOT = { has_country_flag = brazzas_expedition }
NOT = { has_global_flag = colonial_railroading_disabled }
}

allow = {
Expand All @@ -518,7 +528,8 @@ political_decisions = {
is_greater_power = yes
capital = 425
has_global_flag = berlin_conference
NOT = { has_global_flag = ai_french_west_africa }
NOT = { has_global_flag = ai_french_west_africa }
NOT = { has_global_flag = colonial_railroading_disabled }
}

allow = {
Expand Down Expand Up @@ -780,7 +791,8 @@ political_decisions = {
is_greater_power = yes
NOT = { owns = 1879 }
1879 = { owner = { civilized = no ai = yes } }
has_country_flag = faidherbe_ambitions
has_country_flag = faidherbe_ambitions
NOT = { has_global_flag = colonial_railroading_disabled }
}

allow = {
Expand Down Expand Up @@ -866,7 +878,8 @@ political_decisions = {
year = 1865
FRA_1783 = { owned_by = THIS }
1791 = { owner = { OR = { civilized = no tag = THIS } } }
1795 = { owner = { OR = { civilized = no tag = THIS } } }
1795 = { owner = { OR = { civilized = no tag = THIS } } }
NOT = { has_global_flag = colonial_railroading_disabled }
}

allow = {
Expand Down Expand Up @@ -944,7 +957,8 @@ political_decisions = {
capital_scope = { continent = europe }
is_greater_power = yes
1919 = { owner = { civilized = no ai = yes } }
nationalism_n_imperialism = 1
nationalism_n_imperialism = 1
NOT = { has_global_flag = colonial_railroading_disabled }
}

allow = {
Expand Down Expand Up @@ -986,7 +1000,8 @@ political_decisions = {
owns = 1784
year = 1845
NOT = { has_country_flag = faidherbe_ambitions }
WOL = { exists = yes ai = yes owns = 2573 }
WOL = { exists = yes ai = yes owns = 2573 }
NOT = { has_global_flag = colonial_railroading_disabled }
}

allow = {
Expand Down Expand Up @@ -1112,7 +1127,8 @@ political_decisions = {
any_owned_province = { continent = central_africa }
}
owns = 1894
1972 = { empty = yes }
1972 = { empty = yes }
NOT = { has_global_flag = colonial_railroading_disabled }
}

allow = {
Expand Down Expand Up @@ -1147,7 +1163,7 @@ political_decisions = {
is_greater_power = yes
capital = 425
has_country_flag = 2nd_republic
NOT = { has_country_flag = organize_algeria_1848 }
NOT = { has_country_flag = organize_algeria_1848 }
}

allow = {
Expand Down Expand Up @@ -1201,7 +1217,7 @@ political_decisions = {
ALD_1704 = { owned_by = THIS }
ALD_1708 = { owned_by = THIS }
FRA_1700 = { owned_by = THIS }
NOT = { has_country_flag = cremieux_decree }
NOT = { has_country_flag = cremieux_decree }
}

allow = {
Expand Down Expand Up @@ -1352,7 +1368,8 @@ political_decisions = {
primary_culture = french
is_greater_power = yes
capital = 425
exists = MAD
exists = MAD
NOT = { has_global_flag = colonial_railroading_disabled }
}

allow = {
Expand Down Expand Up @@ -1459,7 +1476,8 @@ political_decisions = {
vassal_of = THIS
}
}
NOT = { invention = the_dark_continent }
NOT = { invention = the_dark_continent }
NOT = { has_global_flag = colonial_railroading_disabled }
}

allow = {
Expand Down Expand Up @@ -1506,7 +1524,8 @@ political_decisions = {
owns = 2048 #Zanzibar
}
NOT = { has_country_flag = east_africa_company }
NOT = { invention = the_dark_continent }
NOT = { invention = the_dark_continent }
NOT = { has_global_flag = colonial_railroading_disabled }
}

allow = {
Expand Down Expand Up @@ -1572,7 +1591,8 @@ political_decisions = {
}
has_country_flag = east_africa_company
NOT = { has_country_flag = purchase_lindi }
NOT = { invention = the_dark_continent }
NOT = { invention = the_dark_continent }
NOT = { has_global_flag = colonial_railroading_disabled }
}

allow = {
Expand Down Expand Up @@ -1623,7 +1643,8 @@ political_decisions = {
has_global_flag = berlin_conference
NOT = { has_country_flag = german_west_africa }
1956 = { empty = yes }
NOT = { invention = the_dark_continent }
NOT = { invention = the_dark_continent }
NOT = { has_global_flag = colonial_railroading_disabled }
}

allow = {
Expand Down Expand Up @@ -1680,7 +1701,8 @@ political_decisions = {
2077 = { empty = no }
year = 1850
slavery = no_slavery
NOT = { invention = the_dark_continent }
NOT = { invention = the_dark_continent }
NOT = { has_global_flag = colonial_railroading_disabled }
}

allow = {
Expand Down Expand Up @@ -1732,7 +1754,8 @@ political_decisions = {
1915 = { empty = yes }
slavery = no_slavery
NOT = { has_global_flag = togo_organized }
has_global_flag = berlin_conference
has_global_flag = berlin_conference
NOT = { has_global_flag = colonial_railroading_disabled }
}

allow = {
Expand Down Expand Up @@ -1961,7 +1984,8 @@ political_decisions = {
}
owns = 2060
has_global_flag = berlin_conference
NOT = { has_country_flag = ai_portugal_east_africa }
NOT = { has_country_flag = ai_portugal_east_africa }
NOT = { has_global_flag = colonial_railroading_disabled }
}

allow = {
Expand Down Expand Up @@ -1993,4 +2017,4 @@ political_decisions = {
ai_will_do = { factor = 1 }
}

}
}
14 changes: 14 additions & 0 deletions HFM/decisions/Setup.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@ political_decisions = {
clr_country_flag = country_looking_through_options
}
}

option_disable_colonial_railroading = {
alert = no
potential = {
ai = no
has_country_flag = country_looking_through_options
NOT = { year = 1837 }
NOT = { has_global_flag = colonial_railroading_disabled }
}
allow = {}
effect = {
set_global_flag = colonial_railroading_disabled
}
}

option_disable_anarcho_liberals = {
alert = no
Expand Down
1 change: 1 addition & 0 deletions HFM/events/FlavourMod_GER.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ country_event = {
NOT = { war_exhaustion = 5 }
NOT = { has_country_flag = german_new_guinea_company }
NOT = { invention = the_dark_continent }
NOT = { has_global_flag = colonial_railroading_disabled }
}

mean_time_to_happen = {
Expand Down
2 changes: 2 additions & 0 deletions HFM/localisation/00_HPM_decisions.csv
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ enable_options_title;Show 'Options' Decisions;;;;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,
enable_options_desc;This decision shows all optional decisions to tweak and change the game's behavior from vanilla HFM. This, along with all decisions it enables, will disappear January 1st 1837 to reduce clutter, so you have a year in-game to pick and choose what you want. Once a tweak is chosen, you can't disable it anymore, so if you misclick you need to edit your save or start a new game.;;;;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,
disable_options_title;Hide 'Options' Decisions;;;;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,
disable_options_desc;This will hide all optional tweaks to vanilla HFM. You still have until 1837 to change your mind though.;;;;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,
option_disable_colonial_railroading_title;Option: Disable Colonial Railroading;;;;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,
option_disable_colonial_railroading_desc;This tweak will disable the colonial railroading events in Africa.;;;;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,
option_disable_anarcho_liberals_title;Option: Disable Anarcho-Liberal Ideology;;;;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,
option_disable_anarcho_liberals_desc;This tweak will stop anarcho-liberal ideology from spawning. It may help performance a bit. Some people think they are too unrealistic for them, so they might want to disable it. I didn't test any balance issues that might arise without them in the game though.;;;;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,
option_disable_starting_party_loyalty_title;Option: Remove Starting Party Loyalty;;;;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,
Expand Down

0 comments on commit e6c7356

Please sign in to comment.