Skip to content

Commit

Permalink
Version 1.3.4
Browse files Browse the repository at this point in the history
– Industry Banned law is now checked when a country considers to construct vanilla heavy industry buildings.
– The part of the code that adds a special priority to placing a port in the capital state now checks if the capital state is in fact coastal.
  • Loading branch information
Anbeeld committed Jun 23, 2023
1 parent 67ab291 commit f8c52c5
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/common/scripted_triggers/aroai_static_data_triggers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,9 @@ aroai_allocate_building_port = {
key = building_port
}
}
root.market_capital = {
is_coastal = no
}
NOT = {
root.market_capital.owner = root
}
Expand Down Expand Up @@ -941,6 +944,9 @@ aroai_allocate_building_port = {
key = building_port
}
}
root.market_capital = {
is_coastal = no
}
NOT = {
root.market_capital.owner = root
}
Expand Down Expand Up @@ -2285,6 +2291,9 @@ aroai_allocate_building_paper_mills = {

aroai_consider_building_chemical_plants = {
has_technology_researched = intensive_agriculture
NOT = {
has_law = law_type:law_industry_banned
}
aroai_building_is_allowed = {
critical = 0
}
Expand Down Expand Up @@ -2314,6 +2323,9 @@ aroai_allocate_building_chemical_plants = {

aroai_consider_building_synthetics_plants = {
has_technology_researched = aniline
NOT = {
has_law = law_type:law_industry_banned
}
aroai_building_is_allowed = {
critical = 0
}
Expand Down Expand Up @@ -2343,6 +2355,9 @@ aroai_allocate_building_synthetics_plants = {

aroai_consider_building_steel_mills = {
has_technology_researched = steelworking
NOT = {
has_law = law_type:law_industry_banned
}
aroai_building_is_allowed = {
critical = 0
}
Expand Down Expand Up @@ -2372,6 +2387,9 @@ aroai_allocate_building_steel_mills = {

aroai_consider_building_motor_industry = {
has_technology_researched = atmospheric_engine
NOT = {
has_law = law_type:law_industry_banned
}
aroai_building_is_allowed = {
critical = 0
}
Expand Down Expand Up @@ -2434,6 +2452,9 @@ aroai_allocate_building_shipyards = {

aroai_consider_building_power_plant = {
has_technology_researched = electrical_generation
NOT = {
has_law = law_type:law_industry_banned
}
aroai_building_is_allowed = {
critical = 0
}
Expand Down Expand Up @@ -2463,6 +2484,9 @@ aroai_allocate_building_power_plant = {

aroai_consider_building_electrics_industry = {
has_technology_researched = telephone
NOT = {
has_law = law_type:law_industry_banned
}
aroai_building_is_allowed = {
critical = 0
}
Expand Down Expand Up @@ -2521,6 +2545,9 @@ aroai_allocate_building_arms_industry = {

aroai_consider_building_munition_plants = {
has_technology_researched = percussion_cap
NOT = {
has_law = law_type:law_industry_banned
}
aroai_building_is_allowed = {
critical = 0
}
Expand Down Expand Up @@ -2550,6 +2577,9 @@ aroai_allocate_building_munition_plants = {

aroai_consider_building_war_machine_industry = {
has_technology_researched = military_aviation
NOT = {
has_law = law_type:law_industry_banned
}
aroai_building_is_allowed = {
critical = 0
}
Expand Down

0 comments on commit f8c52c5

Please sign in to comment.