
BuildingChanged this version
Company Local Ventures
The ventures of the Trade Company which try to exploit the local materials for their benefit.
Modifiers
Definitionin_game/common/building_types/trade_company_buildings.txt:311
312audio_tier = 3
313is_foreign = yes
314max_levels = trade_company_building_max_level
316own_or_overlord_relation_needed = trade_access
320rural_settlement = yes
321town = yes
322city = yes
323megalopolis = yes
324build_time = trade_company_build_time
328location_potential = {
329scope:actor = {
330has_variable_list = trade_company_regions
331is_target_in_variable_list = {
332name = trade_company_regions
333target = root.region
}
}
}
337country_potential = {
338OR = {
339total_effective_building_levels:trade_company_headquarters > 0
340any_subject = {
341total_effective_building_levels:trade_company_headquarters > 0
}
}
}
345allow = {
346market = {
346in_trade_range_of = scope:actor
}
}
349custom_tags = {
trade_company_building
satellite_trade_building
}
353on_built = {
354owner = {
355if = {
357save_temporary_scope_as = owner_scope
358random_in_list = {
359variable = trade_company_subjects
360limit = {
365scope:owner_scope = {
366is_target_in_variable_list = {
367name = trade_company_regions
368target = scope:target_region
}
}
}
372save_scope_as = trade_company_country
}
374if = {
375limit = {
375exists = scope:trade_company_country
}
376root = {
376change_building_owner = scope:trade_company_country
}
}
378else = {
379root.location = {
379destroy_building = root
}
}
}
}
}
