
BuildingChanged this version
Company Governance
The local military housing of the Trade Company, recruiting and training troops which shall enforce the interests of the company.
Modifiers
Definitionin_game/common/building_types/trade_company_buildings.txt:462
463audio_tier = 3
464is_foreign = yes
465max_levels = trade_company_building_max_level
467own_or_overlord_relation_needed = trade_access
471rural_settlement = yes
472town = yes
473city = yes
474megalopolis = yes
475build_time = trade_company_build_time
479location_potential = {
480scope:actor = {
481has_variable_list = trade_company_regions
482is_target_in_variable_list = {
483name = trade_company_regions
484target = root.region
}
}
}
488country_potential = {
489OR = {
490total_effective_building_levels:trade_company_headquarters > 0
491any_subject = {
492total_effective_building_levels:trade_company_headquarters > 0
}
}
}
496allow = {
497market = {
497in_trade_range_of = scope:actor
}
}
500custom_tags = {
trade_company_building
satellite_trade_building
}
501modifier = {
}
506on_built = {
507owner = {
508if = {
510save_temporary_scope_as = owner_scope
511random_in_list = {
512variable = trade_company_subjects
513limit = {
518scope:owner_scope = {
519is_target_in_variable_list = {
520name = trade_company_regions
521target = scope:target_region
}
}
}
525save_scope_as = trade_company_country
}
527if = {
528limit = {
528exists = scope:trade_company_country
}
529root = {
529change_building_owner = scope:trade_company_country
}
}
531else = {
532root.location = {
532destroy_building = root
}
}
}
}
}


