Skip to content

Instantly share code, notes, and snippets.

@brucethemoose
Created February 26, 2018 16:56
Show Gist options
  • Select an option

  • Save brucethemoose/67ed5c9dbcedf5aae56d7f9a9ae4fa24 to your computer and use it in GitHub Desktop.

Select an option

Save brucethemoose/67ed5c9dbcedf5aae56d7f9a9ae4fa24 to your computer and use it in GitHub Desktop.
ai_allow = {
OR = {
tile = {
has_building = no
}
tile = {
has_building = building_power_plant_1
}
}
NOR = {
has_resource = {
type = sr_betharian
amount > 0
}
has_resource = {
type = sr_alien_pets
amount > 0
}
AND = {
tile = {
has_resource = {
type = minerals
amount > 0
}
}
tile = {
has_resource = {
type = energy
amount < 2
}
}
}
tile = {
has_resource = {
type = engineering_research
amount > 0
}
}
tile = {
has_resource = {
type = physics_research
amount > 0
}
}
tile = {
has_resource = {
type = society_research
amount > 0
}
}
AND = {
planet = {
count_pops = {
count > 6
limit = {
is_colony_pop = yes
}
}
}
owner = {
running_balance > 20
}
tile = {
has_resource = {
type = energy
amount = 0
}
}
OR = {
AND = {
OR = {
planet= {
has_building = building_citadel_of_faith
}
planet= {
has_building = building_temple
}
planet= {
has_building = building_holotemple
}
planet= {
has_building = building_sacred_nexus
}
planet= {
has_building = building_autocurating_vault
}
planet= {
has_building = building_hypercomms_forum
}
planet= {
has_building = building_heritage_site
}
planet= {
has_building = building_autochthon_monument
}
planet= {
has_building = building_uplink_node
}
planet= {
has_building = building_network_junction
}
planet= {
has_building = building_system_conflux
}
planet= {
has_building = building_alpha_hub
}
}
AND = {
OR = {
owner = {
has_technology = tech_frontier_health
}
owner = {
has_technology = tech_modular_components
}
}
OR = {
planet= {
has_building = building_clinic
}
planet= {
has_building = building_hospital
}
planet= {
has_building = building_spare_parts_depot
}
planet= {
has_building = building_unit_assembly_plant
}
}
}
AND = {
owner = {
has_non_swapped_tradition = tr_harmony_utopian_dream
}
planet= {
has_building = building_paradise_dome
}
}
AND = {
owner = {
has_technology = tech_power_hub_1
}
OR = {
planet= {
has_building = building_power_hub_1
}
planet= {
has_building = building_power_hub_2
}
planet= {
has_building = building_akx_worm_1
}
}
}
AND = {
owner = {
has_swapped_tradition = tr_purity_symbol_purity
}
planet= {
has_building = building_symbol_purity
}
}
}
}
}
}
}
ai_weight = {
weight = 100
modifier = {
weight = 0
AND = {
NOT = {
tile = {
has_resource = {
type = energy
amount > 0
}
}
}
OR = {
AND = {
NOT = {owner = { has_authority = auth_machine_intelligence }}
OR = {
OWNER = {
running_balance > 2
}
AND = {
tile = {
has_resource = {
type = food
amount > 0
}
}
owner = {
has_monthly_income = {
resource = food
value < 5
}
}
}
}
}
AND = {
owner = { has_authority = auth_machine_intelligence }
OWNER = {
running_balance > 35
}
}
}
}
}
}
ai_replace = no
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment