Skip to content

Commit

Permalink
Merge pull request #329 from pixelaes/Chunnel
Browse files Browse the repository at this point in the history
Added chunnel event chain
  • Loading branch information
joelAVS authored Aug 4, 2024
2 parents f284d35 + 6810e81 commit ace94eb
Show file tree
Hide file tree
Showing 8 changed files with 1,306 additions and 0 deletions.
4 changes: 4 additions & 0 deletions TGC/common/event_modifiers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,10 @@ the_big_ben = {
icon = 11
}

chunnel_construction = {
icon = 11
}

small_immigration_boom_country = {
global_immigrant_attract = 0.25
icon = 31
Expand Down
91 changes: 91 additions & 0 deletions TGC/decisions/2_Canals.txt
Original file line number Diff line number Diff line change
Expand Up @@ -588,4 +588,95 @@ political_decisions = {
}
}
}

### Channel ###

#Build the Tunnel
build_channel_tunnel = {
picture = build_chunnel
news = no

potential = {
is_greater_power = yes
interchangeable_parts = 1
OR = {
AND = {
owns = 301
NOT = { owns = 401 }
}
AND = {
owns = 401
NOT = { owns = 301 }
}
}
NOT = { is_canal_enabled = 12 }
NOT = { has_global_flag = chunnel_under_construction }
NOT = { has_global_flag = chunnel_under_discussion }
NOT = { has_global_flag = chunnel_failed }
}

allow = {
invention = machine_tools
invention = nitroglycerin
iron_steamers = 1
money = 1000000
}

effect = {
set_global_flag = chunnel_under_discussion
country_event = 36988
}

ai_will_do = {
factor = 1
modifier = {
factor = 0
OR = {
war = yes
NOT = { money = 1000000 }
}
}
}
}

#Build the Tunnel - Both Sides
build_channel_tunnel_both = {
picture = build_chunnel
news = no

potential = {
owns = 301
owns = 401
is_greater_power = yes
interchangeable_parts = 1
NOT = { is_canal_enabled = 12 }
NOT = { has_global_flag = chunnel_under_construction }
NOT = { has_global_flag = chunnel_under_discussion }
NOT = { has_global_flag = chunnel_failed }
}

allow = {
invention = machine_tools
invention = nitroglycerin
iron_steamers = 1
money = 1000000
}

effect = {
set_global_flag = chunnel_under_discussion
set_country_flag = chunnel_proposer
country_event = 36999
}

ai_will_do = {
factor = 1
modifier = {
factor = 0
OR = {
war = yes
NOT = { money = 1000000 }
}
}
}
}
}
Loading

0 comments on commit ace94eb

Please sign in to comment.