Skip to content

Commit

Permalink
Fix for canal construction and other small fixes
Browse files Browse the repository at this point in the history
* Added another condition for the Megali Idea: If Russia spheres the Ottomans.
* Made the OR and AND conditions show red in decisions, to improve readability of decisions. Remember this as this doesn't mean the decisions were not fulfilled, it's just to make reading conditions easier for the player.
* Since the game doesn't seem to handle losing a lump sum amount of more than 2 million very well (resulting in bugs where you get the money instead of losing it), the payments for the canals that cost more than 2 million will be dealt with using the debt system all times.
* Added Friuli to the "Italian Diaspora" decision.
* If Egypt refuses the "hegemony over the nile" event, Egypt's sphere-lord will get a CB to sphere them and a war will start. If they do enforce the CB, they get direct control over Egyptian Sudan/Ethiopia.
  • Loading branch information
arkhometha committed Jan 26, 2020
1 parent d84972b commit 25b5a76
Show file tree
Hide file tree
Showing 6 changed files with 123 additions and 66 deletions.
22 changes: 22 additions & 0 deletions HPM/common/cb_types.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1306,6 +1306,28 @@ add_to_sphere = {
value = 0.25
}
}

on_po_accepted = {
random_owned = {
limit = {
owner = {
has_country_flag = surrender_sudan_on_lose
}
}
owner = {
clr_country_flag = surrender_sudan_on_lose
any_owned = {
limit = {
OR = {
is_core = SUD
is_core = ETH
}
}
secede_province = THIS
}
}
}
}
}

# Unification Humiliate
Expand Down
31 changes: 31 additions & 0 deletions HPM/decisions/CleanUp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,12 @@ political_decisions = {
AND = { government = fascist_dictatorship NOT = { has_country_flag = fascist_gov } }
AND = { government = bourgeois_dictatorship NOT = { has_country_flag = anarcho_liberal_gov } }
AND = { exists = yes NOT = { has_country_flag = existing_country has_country_flag = ghost_country } }
AND = {
ai = yes
has_country_flag = surrender_sudan_on_lose
part_of_sphere = no
war = no
}
any_neighbor_country = {
ai = no
OR = {
Expand All @@ -195,6 +201,11 @@ political_decisions = {
AND = { government = fascist_dictatorship NOT = { has_country_flag = fascist_gov } }
AND = { government = bourgeois_dictatorship NOT = { has_country_flag = anarcho_liberal_gov } }
AND = { exists = yes NOT = { has_country_flag = existing_country has_country_flag = ghost_country } }
AND = {
has_country_flag = surrender_sudan_on_lose
part_of_sphere = no
war = no
}
}
}
any_greater_power = {
Expand Down Expand Up @@ -228,6 +239,26 @@ political_decisions = {
clr_country_flag = presidential_dictatorship_gov
clr_country_flag = fascist_gov
clr_country_flag = anarcho_liberal_gov
random_owned = {
limit = {
owner = {
ai = yes
has_country_flag = surrender_sudan_on_lose
part_of_sphere = no
war = no
}
}
owner = { clr_country_flag = surrender_sudan_on_lose }
}
any_neighbor_country = {
limit = {
ai = no
has_country_flag = surrender_sudan_on_lose
part_of_sphere = no
war = no
}
clr_country_flag = surrender_sudan_on_lose
}
random_owned = { limit = { owner = { government = theocracy } } owner = { set_country_flag = theocratic_government } }
random_owned = { limit = { owner = { government = proletarian_dictatorship } } owner = { set_country_flag = communist_gov } }
random_owned = { limit = { owner = { government = absolute_monarchy } } owner = { set_country_flag = absolute_monarchy_gov } }
Expand Down
3 changes: 2 additions & 1 deletion HPM/decisions/Italy.txt
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@ political_decisions = {
set_country_flag = italian_balkans
AUS_734 = { add_core = ITA } #South Tirol
AUS_736 = { add_core = ITA } #Istria
AUS_733 = { add_core = ITA } #Friuli
781 = { add_core = ITA } #Zadar
}
}
Expand All @@ -677,7 +678,7 @@ political_decisions = {
set_country_flag = conquest_adriatic_happened
AUS_780 = { add_core = ITA }
2582 = { add_core = ITA }
774 = { add_core = ITA }
#774 = { add_core = ITA }
}

ai_will_do = {
Expand Down
Loading

0 comments on commit 25b5a76

Please sign in to comment.