Skip to content

Commit

Permalink
Merge pull request #261 from Cold-War-Project/fixing-airports
Browse files Browse the repository at this point in the history
Fixed airports, but actually I didn't
  • Loading branch information
JackEPepper authored Apr 28, 2023
2 parents 87cfe0e + bf4e533 commit f2e6075
Show file tree
Hide file tree
Showing 411 changed files with 111,313 additions and 53,526 deletions.
32 changes: 16 additions & 16 deletions common/ai_strategies/00_default_strategy.txt
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ ai_strategy_default = {
# Which buildings should the AI subsidize
# Using a different value in a strategy will override this value
subsidies = {
building_infrastructure = should_have
building_railway = should_have
building_airport = should_have
}
# Specifying values here will override subsidy priorities while at war
Expand Down Expand Up @@ -2229,7 +2229,7 @@ ai_strategy_default = {
lenient_ai_behavior_trigger = yes
}
multiply = 0
}
}
min = 0
max = 200
}
Expand Down Expand Up @@ -2343,20 +2343,20 @@ ai_strategy_default = {
max = 100
}
# force_recognition = {
# value = 0
# if = {
# limit = {
# country_rank = rank_value:unrecognized_major_power
# navy_size >= 50
# army_size >= 200
# OR = {
# has_strategy = ai_strategy_nationalist_agenda
# has_strategy = ai_strategy_progressive_agenda
# has_strategy = ai_strategy_egalitarian_agenda
# }
# }
# add = 100
# }
# value = 0
# if = {
# limit = {
# country_rank = rank_value:unrecognized_major_power
# navy_size >= 50
# army_size >= 200
# OR = {
# has_strategy = ai_strategy_nationalist_agenda
# has_strategy = ai_strategy_progressive_agenda
# has_strategy = ai_strategy_egalitarian_agenda
# }
# }
# add = 100
# }
# }
independence = {
value = 100
Expand Down
10 changes: 2 additions & 8 deletions common/buildings/01_industry.txt
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,7 @@ building_shipyards = {
required_construction = construction_cost_high

possible = {
error_check = {
severity = fail
is_coastal = yes
}
is_sea_adjacent = yes
}
}

Expand All @@ -299,10 +296,7 @@ building_drydocks = {
required_construction = construction_cost_high

possible = {
error_check = {
severity = fail
is_coastal = yes
}
is_sea_adjacent = yes
}
}

Expand Down
10 changes: 5 additions & 5 deletions common/buildings/05_military.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ building_naval_base = {
}
required_construction = construction_cost_very_low
# Can only build naval bases on the coast
possible = {
error_check = {
severity = fail
is_coastal = yes
}
can_build_government = {
is_sea_adjacent = yes
}
can_build_private = {
always = no
}
}
10 changes: 5 additions & 5 deletions common/buildings/07_government.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ building_port = {
}
required_construction = construction_cost_medium
terrain_manipulator = urban_port
possible = {
error_check = {
severity = fail
is_coastal = yes
}
can_build_government = {
is_sea_adjacent = yes
}
can_build_private = {
always = no
}
}

Expand Down
5 changes: 1 addition & 4 deletions common/buildings/09_misc_resource.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ building_fishing_wharf = {
pmg_ownership_fishing_wharf
}
possible = {
error_check = {
severity = fail
is_sea_adjacent = yes
}
is_sea_adjacent = yes
}
}

Expand Down
28 changes: 10 additions & 18 deletions common/buildings/11_private_infrastructure.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@

############ PRIVATE INFRASTRUCTURE
building_infrastructure = {
############ PRIVATE INFRASTRUCTURE
building_railway = {
building_group = bg_basic_infrastructure
texture = "gfx/interface/icons/building_icons/building_railway.dds"
unlocking_technologies = {
railways
}
production_method_groups = {
pmg_base_building_infrastructure
pmg_base_building_railway
pmg_highways
pmg_infrastructure_prioritization
pmg_ownership_capital_building_infrastructure
pmg_ownership_capital_building_railway
}
required_construction = construction_cost_high

ai_value = 2000 # Railways are important
should_auto_expand = {
OR = {
Expand All @@ -28,7 +26,6 @@ building_infrastructure = {
building_trade_center = {
building_group = bg_trade
city_type = city

levels_per_mesh = 10
lens = infrastructure
texture = "gfx/interface/icons/building_icons/building_trade_center.dds"
Expand All @@ -49,7 +46,6 @@ building_spaceport = {
unmanned_space_flight
}
required_construction = construction_cost_very_high

production_method_groups = {
pmg_base_spaceport
pmg_spaceport_ownership
Expand All @@ -65,7 +61,6 @@ building_mission_control = {
unmanned_space_flight
}
required_construction = construction_cost_high

production_method_groups = {
pmg_base_mission_control
pmg_space_exploration
Expand All @@ -83,24 +78,21 @@ building_airport = {
texture = "gfx/interface/icons/building_icons/airport.dds"
has_max_level = yes
ignore_stateregion_max_level = yes
enable_air_connection = yes # HACK NOBODY KNOWS WHAT THIS DOES
enable_air_connection = yes
port = yes # Provides Market Access only if on water?
unlocking_technologies = {
early_military_aviation
}
required_construction = construction_cost_high

production_method_groups = {
pmg_base_airport
pmg_ownership_airport
}
ai_value = 2000 # Airports are important
should_auto_expand = {
OR = {
cash_reserves_ratio > 0.5
is_subsidized = yes
}
state.market_access < 1
owner.construction_queue_duration < max_autoexpand_queue_weeks
can_build_government = {
always = yes
}
can_build_private = {
always = no
}
}
22 changes: 13 additions & 9 deletions common/country_definitions/00_countries.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1161,9 +1161,9 @@ MUG = {

PER = {
color = {
255
16
240
17
153
209
}
country_type = unrecognized
tier = empire
Expand Down Expand Up @@ -3146,14 +3146,18 @@ NGF = {
capital = STATE_BRANDENBURG
}

RHI = { # Saarland
color = { 5 85 5 }

RHI = {
# Saarland
color = {
5
85
5
}
country_type = recognized

tier = principality

cultures = { north_german }
cultures = {
north_german
}
capital = STATE_RHINELAND
}

Expand Down
4 changes: 2 additions & 2 deletions common/defines/00_graphics.txt
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@ NFrontend = {
}

NCamera = {
FOV = 60 # Field-of-View
FOV = 55 # Field-of-View
ZNEAR = 1
ZFAR = 10000
ZFAR = 50000

EDGE_SCROLLING_PIXELS = 10 # how many pixels from window edge that will trigger edge scrolling

Expand Down
Loading

0 comments on commit f2e6075

Please sign in to comment.