﻿# AI idea spending is split into two layers:
# - a monthly execution tick that checks one focused group;
# - a half-yearly strategy tick that chooses new groups and other programs.
# Focus IDs are numeric to keep save data compact and comparisons cheap.

ve_ai_adopt_idea_group = {
	set_variable = can_go_$GROUP$
	change_variable = {
		name = idea_group_unlocked
		add = 1
	}
	set_variable = {
		name = $GROUP$_idea
		value = 0
	}
	set_variable = {
		name = ve_ai_idea_focus
		value = $FOCUS$
	}
}

ve_ai_clear_finished_idea_focus = {
	if = {
		limit = {
			has_variable = ve_ai_idea_focus
			OR = {
				AND = { var:ve_ai_idea_focus == 1 has_variable = academic_idea_completed }
				AND = { var:ve_ai_idea_focus == 2 has_variable = agrarian_idea_completed }
				AND = { var:ve_ai_idea_focus == 3 has_variable = financial_idea_completed }
				AND = { var:ve_ai_idea_focus == 4 has_variable = infrastructure_idea_completed }
				AND = { var:ve_ai_idea_focus == 5 has_variable = extraction_idea_completed }
				AND = { var:ve_ai_idea_focus == 6 has_variable = mass_conscription_idea_completed }
				AND = { var:ve_ai_idea_focus == 7 has_variable = war_economy_idea_completed }
				AND = { var:ve_ai_idea_focus == 8 has_variable = industrialist_idea_completed }
				AND = { var:ve_ai_idea_focus == 9 has_variable = bureaucratic_idea_completed }
				AND = { var:ve_ai_idea_focus == 10 has_variable = nationalist_idea_completed }
				AND = { var:ve_ai_idea_focus == 11 has_variable = parliamentary_idea_completed }
				AND = { var:ve_ai_idea_focus == 12 has_variable = diplomatic_idea_completed }
				AND = { var:ve_ai_idea_focus == 13 has_variable = mercantile_idea_completed }
				AND = { var:ve_ai_idea_focus == 14 has_variable = welfare_idea_completed }
				AND = { var:ve_ai_idea_focus == 15 has_variable = reformist_idea_completed }
				AND = { var:ve_ai_idea_focus == 16 has_variable = labour_idea_completed }
				AND = { var:ve_ai_idea_focus == 17 has_variable = offensive_idea_completed }
				AND = { var:ve_ai_idea_focus == 18 has_variable = defensive_idea_completed }
				AND = { var:ve_ai_idea_focus == 19 has_variable = naval_idea_completed }
				AND = { var:ve_ai_idea_focus == 20 has_variable = professional_army_idea_completed }
				AND = { var:ve_ai_idea_focus == 21 has_variable = colonial_idea_completed }
				# Extraction VII requires Dynamite. Release the focus while waiting
				# so the AI can advance another adopted group.
				AND = {
					var:ve_ai_idea_focus == 5
					var:extraction_idea >= 6
					NOT = { has_technology_researched = dynamite }
				}
			}
		}
		remove_variable = ve_ai_idea_focus
	}
}

ve_ai_select_existing_idea_focus = {
	if = {
		limit = {
			NOT = { has_variable = ve_ai_idea_focus }
			OR = {
				AND = { has_variable = can_go_academic NOT = { has_variable = academic_idea_completed } }
				AND = { has_variable = can_go_agrarian NOT = { has_variable = agrarian_idea_completed } }
				AND = { has_variable = can_go_financial NOT = { has_variable = financial_idea_completed } }
				AND = { has_variable = can_go_infrastructure NOT = { has_variable = infrastructure_idea_completed } }
				AND = {
					has_variable = can_go_extraction
					NOT = { has_variable = extraction_idea_completed }
					OR = {
						var:extraction_idea < 6
						has_technology_researched = dynamite
					}
				}
				AND = { has_variable = can_go_mass_conscription NOT = { has_variable = mass_conscription_idea_completed } }
				AND = { has_variable = can_go_war_economy NOT = { has_variable = war_economy_idea_completed } }
				AND = { has_variable = can_go_industrialist NOT = { has_variable = industrialist_idea_completed } }
				AND = { has_variable = can_go_bureaucratic NOT = { has_variable = bureaucratic_idea_completed } }
				AND = { has_variable = can_go_nationalist NOT = { has_variable = nationalist_idea_completed } }
				AND = { has_variable = can_go_parliamentary NOT = { has_variable = parliamentary_idea_completed } }
				AND = { has_variable = can_go_diplomatic NOT = { has_variable = diplomatic_idea_completed } }
				AND = { has_variable = can_go_mercantile NOT = { has_variable = mercantile_idea_completed } }
				AND = { has_variable = can_go_welfare NOT = { has_variable = welfare_idea_completed } }
				AND = { has_variable = can_go_reformist NOT = { has_variable = reformist_idea_completed } }
				AND = { has_variable = can_go_labour NOT = { has_variable = labour_idea_completed } }
				AND = { has_variable = can_go_offensive NOT = { has_variable = offensive_idea_completed } }
				AND = { has_variable = can_go_defensive NOT = { has_variable = defensive_idea_completed } }
				AND = { has_variable = can_go_naval NOT = { has_variable = naval_idea_completed } }
				AND = { has_variable = can_go_professional_army NOT = { has_variable = professional_army_idea_completed } }
				AND = { has_variable = can_go_colonial NOT = { has_variable = colonial_idea_completed } }
			}
		}
		random_list = {
			1 = {
				trigger = {
					has_variable = can_go_academic
					NOT = { has_variable = academic_idea_completed }
				}
				set_variable = { name = ve_ai_idea_focus value = 1 }
			}
			1 = {
				trigger = {
					has_variable = can_go_agrarian
					NOT = { has_variable = agrarian_idea_completed }
				}
				modifier = {
					if = {
						limit = {
							OR = {
								has_strategy = ai_strategy_agricultural_expansion
								has_strategy = ai_strategy_plantation_economy
							}
						}
						add = 3
					}
				}
				set_variable = { name = ve_ai_idea_focus value = 2 }
			}
			1 = {
				trigger = {
					has_variable = can_go_financial
					NOT = { has_variable = financial_idea_completed }
				}
				set_variable = { name = ve_ai_idea_focus value = 3 }
			}
			1 = {
				trigger = {
					has_variable = can_go_infrastructure
					NOT = { has_variable = infrastructure_idea_completed }
				}
				set_variable = { name = ve_ai_idea_focus value = 4 }
			}
			1 = {
				trigger = {
					has_variable = can_go_extraction
					NOT = { has_variable = extraction_idea_completed }
					OR = {
						var:extraction_idea < 6
						has_technology_researched = dynamite
					}
				}
				modifier = {
					if = {
						limit = { has_strategy = ai_strategy_resource_expansion }
						add = 3
					}
				}
				set_variable = { name = ve_ai_idea_focus value = 5 }
			}
			1 = {
				trigger = {
					has_variable = can_go_mass_conscription
					NOT = { has_variable = mass_conscription_idea_completed }
				}
				set_variable = { name = ve_ai_idea_focus value = 6 }
			}
			1 = {
				trigger = {
					has_variable = can_go_war_economy
					NOT = { has_variable = war_economy_idea_completed }
				}
				set_variable = { name = ve_ai_idea_focus value = 7 }
			}
			1 = {
				trigger = {
					has_variable = can_go_industrialist
					NOT = { has_variable = industrialist_idea_completed }
				}
				modifier = {
					if = {
						limit = { has_strategy = ai_strategy_industrial_expansion }
						add = 3
					}
				}
				set_variable = { name = ve_ai_idea_focus value = 8 }
			}
			1 = {
				trigger = {
					has_variable = can_go_bureaucratic
					NOT = { has_variable = bureaucratic_idea_completed }
				}
				set_variable = { name = ve_ai_idea_focus value = 9 }
			}
			1 = {
				trigger = {
					has_variable = can_go_nationalist
					NOT = { has_variable = nationalist_idea_completed }
				}
				set_variable = { name = ve_ai_idea_focus value = 10 }
			}
			1 = {
				trigger = {
					has_variable = can_go_parliamentary
					NOT = { has_variable = parliamentary_idea_completed }
				}
				set_variable = { name = ve_ai_idea_focus value = 11 }
			}
			1 = {
				trigger = {
					has_variable = can_go_diplomatic
					NOT = { has_variable = diplomatic_idea_completed }
				}
				set_variable = { name = ve_ai_idea_focus value = 12 }
			}
			1 = {
				trigger = {
					has_variable = can_go_mercantile
					NOT = { has_variable = mercantile_idea_completed }
				}
				set_variable = { name = ve_ai_idea_focus value = 13 }
			}
			1 = {
				trigger = {
					has_variable = can_go_welfare
					NOT = { has_variable = welfare_idea_completed }
				}
				set_variable = { name = ve_ai_idea_focus value = 14 }
			}
			1 = {
				trigger = {
					has_variable = can_go_reformist
					NOT = { has_variable = reformist_idea_completed }
				}
				set_variable = { name = ve_ai_idea_focus value = 15 }
			}
			1 = {
				trigger = {
					has_variable = can_go_labour
					NOT = { has_variable = labour_idea_completed }
				}
				set_variable = { name = ve_ai_idea_focus value = 16 }
			}
			1 = {
				trigger = {
					has_variable = can_go_offensive
					NOT = { has_variable = offensive_idea_completed }
				}
				set_variable = { name = ve_ai_idea_focus value = 17 }
			}
			1 = {
				trigger = {
					has_variable = can_go_defensive
					NOT = { has_variable = defensive_idea_completed }
				}
				set_variable = { name = ve_ai_idea_focus value = 18 }
			}
			1 = {
				trigger = {
					has_variable = can_go_naval
					NOT = { has_variable = naval_idea_completed }
				}
				set_variable = { name = ve_ai_idea_focus value = 19 }
			}
			1 = {
				trigger = {
					has_variable = can_go_professional_army
					NOT = { has_variable = professional_army_idea_completed }
				}
				set_variable = { name = ve_ai_idea_focus value = 20 }
			}
			1 = {
				trigger = {
					has_variable = can_go_colonial
					NOT = { has_variable = colonial_idea_completed }
				}
				set_variable = { name = ve_ai_idea_focus value = 21 }
			}
		}
	}
}

ve_ai_refresh_idea_focus = {
	ve_ai_clear_finished_idea_focus = yes
	ve_ai_select_existing_idea_focus = yes
}

ve_ai_choose_idea = {
	if = {
		limit = {
			NOT = { has_variable = ve_ai_idea_focus }
			var:idea_group_unlocked < var:idea_group_cap
		}
		random_list = {
			20 = {
				trigger = { NOT = { has_variable = can_go_academic } }
				modifier = {
					if = {
						limit = {
							OR = {
								has_strategy = ai_strategy_progressive_agenda
								has_strategy = ai_strategy_egalitarian_agenda
							}
						}
						add = 30
					}
				}
				ve_ai_adopt_idea_group = { GROUP = academic FOCUS = 1 }
			}
			20 = {
				trigger = {
					NOT = { has_variable = can_go_agrarian }
					NOT = { has_variable = can_go_extraction }
				}
				modifier = {
					if = {
						limit = {
							OR = {
								has_strategy = ai_strategy_agricultural_expansion
								has_strategy = ai_strategy_plantation_economy
							}
						}
						add = 80
					}
					if = {
						limit = {
							OR = {
								has_law_or_variant = law_type:law_agrarianism
								has_law_or_variant = law_type:law_traditionalism
							}
						}
						add = 30
					}
				}
				ve_ai_adopt_idea_group = { GROUP = agrarian FOCUS = 2 }
			}
			20 = {
				trigger = { NOT = { has_variable = can_go_financial } }
				modifier = {
					if = {
						limit = { has_strategy = ai_strategy_economic_imperialism }
						add = 45
					}
					if = {
						limit = { has_law_or_variant = law_type:law_laissez_faire }
						add = 25
					}
				}
				ve_ai_adopt_idea_group = { GROUP = financial FOCUS = 3 }
			}
			25 = {
				trigger = { NOT = { has_variable = can_go_infrastructure } }
				modifier = {
					if = {
						limit = { has_strategy = ai_strategy_industrial_expansion }
						add = 40
					}
				}
				ve_ai_adopt_idea_group = { GROUP = infrastructure FOCUS = 4 }
			}
			20 = {
				trigger = {
					NOT = { has_variable = can_go_extraction }
					NOT = { has_variable = can_go_agrarian }
				}
				modifier = {
					if = {
						limit = { has_strategy = ai_strategy_resource_expansion }
						add = 85
					}
				}
				ve_ai_adopt_idea_group = { GROUP = extraction FOCUS = 5 }
			}
			15 = {
				trigger = {
					has_technology_researched = enlistment_offices
					NOT = { has_variable = can_go_mass_conscription }
					NOT = { has_variable = can_go_professional_army }
				}
				modifier = {
					if = {
						limit = {
							OR = {
								has_law_or_variant = law_type:law_peasant_levies
								has_law_or_variant = law_type:law_mass_conscription
							}
						}
						add = 45
					}
				}
				ve_ai_adopt_idea_group = { GROUP = mass_conscription FOCUS = 6 }
			}
			20 = {
				trigger = {
					has_technology_researched = war_propaganda
					NOT = { has_variable = can_go_war_economy }
				}
				modifier = {
					if = {
						limit = {
							OR = {
								is_at_war = yes
								has_strategy = ai_strategy_territorial_expansion
							}
						}
						add = 70
					}
				}
				ve_ai_adopt_idea_group = { GROUP = war_economy FOCUS = 7 }
			}
			25 = {
				trigger = { NOT = { has_variable = can_go_industrialist } }
				modifier = {
					if = {
						limit = { has_strategy = ai_strategy_industrial_expansion }
						add = 85
					}
				}
				ve_ai_adopt_idea_group = { GROUP = industrialist FOCUS = 8 }
			}
			25 = {
				trigger = { NOT = { has_variable = can_go_bureaucratic } }
				modifier = {
					if = {
						limit = { bureaucracy < 0 }
						add = 60
					}
				}
				ve_ai_adopt_idea_group = { GROUP = bureaucratic FOCUS = 9 }
			}
			15 = {
				trigger = {
					has_technology_researched = nationalism
					NOT = { has_variable = can_go_nationalist }
					NOT = { has_variable = can_go_reformist }
				}
				modifier = {
					if = {
						limit = {
							OR = {
								has_strategy = ai_strategy_nationalist_agenda
								has_strategy = ai_strategy_territorial_expansion
							}
						}
						add = 75
					}
				}
				ve_ai_adopt_idea_group = { GROUP = nationalist FOCUS = 10 }
			}
			20 = {
				trigger = { NOT = { has_variable = can_go_parliamentary } }
				modifier = {
					if = {
						limit = {
							OR = {
								has_strategy = ai_strategy_progressive_agenda
								has_strategy = ai_strategy_egalitarian_agenda
							}
						}
						add = 50
					}
				}
				ve_ai_adopt_idea_group = { GROUP = parliamentary FOCUS = 11 }
			}
			20 = {
				trigger = { NOT = { has_variable = can_go_diplomatic } }
				modifier = {
					if = {
						limit = {
							OR = {
								has_strategy = ai_strategy_economic_imperialism
								has_strategy = ai_strategy_maintain_power_balance
							}
						}
						add = 50
					}
				}
				ve_ai_adopt_idea_group = { GROUP = diplomatic FOCUS = 12 }
			}
			20 = {
				trigger = { NOT = { has_variable = can_go_mercantile } }
				modifier = {
					if = {
						limit = { has_strategy = ai_strategy_economic_imperialism }
						add = 55
					}
				}
				ve_ai_adopt_idea_group = { GROUP = mercantile FOCUS = 13 }
			}
			20 = {
				trigger = {
					has_technology_researched = human_rights
					NOT = { has_variable = can_go_welfare }
				}
				modifier = {
					if = {
						limit = { has_strategy = ai_strategy_egalitarian_agenda }
						add = 65
					}
				}
				ve_ai_adopt_idea_group = { GROUP = welfare FOCUS = 14 }
			}
			20 = {
				trigger = {
					has_technology_researched = egalitarianism
					NOT = { has_variable = can_go_reformist }
					NOT = { has_variable = can_go_nationalist }
				}
				modifier = {
					if = {
						limit = {
							OR = {
								has_strategy = ai_strategy_progressive_agenda
								has_strategy = ai_strategy_egalitarian_agenda
							}
						}
						add = 70
					}
				}
				ve_ai_adopt_idea_group = { GROUP = reformist FOCUS = 15 }
			}
			20 = {
				trigger = {
					has_technology_researched = labor_movement
					NOT = { has_variable = can_go_labour }
				}
				modifier = {
					if = {
						limit = { has_strategy = ai_strategy_progressive_agenda }
						add = 55
					}
				}
				ve_ai_adopt_idea_group = { GROUP = labour FOCUS = 16 }
			}
			20 = {
				trigger = { NOT = { has_variable = can_go_offensive } }
				modifier = {
					if = {
						limit = {
							OR = {
								is_at_war = yes
								has_strategy = ai_strategy_territorial_expansion
							}
						}
						add = 70
					}
				}
				ve_ai_adopt_idea_group = { GROUP = offensive FOCUS = 17 }
			}
			20 = {
				trigger = { NOT = { has_variable = can_go_defensive } }
				modifier = {
					if = {
						limit = { has_strategy = ai_strategy_armed_isolationism }
						add = 60
					}
				}
				ve_ai_adopt_idea_group = { GROUP = defensive FOCUS = 18 }
			}
			15 = {
				trigger = {
					NOT = { has_variable = can_go_naval }
					any_scope_state = { is_coastal = yes }
				}
				modifier = {
					if = {
						limit = {
							OR = {
								has_strategy = ai_strategy_colonial_expansion
								has_strategy = ai_strategy_economic_imperialism
							}
						}
						add = 65
					}
				}
				ve_ai_adopt_idea_group = { GROUP = naval FOCUS = 19 }
			}
			20 = {
				trigger = {
					NOT = { has_variable = can_go_professional_army }
					NOT = { has_variable = can_go_mass_conscription }
				}
				modifier = {
					if = {
						limit = { has_law_or_variant = law_type:law_professional_army }
						add = 55
					}
				}
				ve_ai_adopt_idea_group = { GROUP = professional_army FOCUS = 20 }
			}
			15 = {
				trigger = {
					has_technology_researched = quinine
					NOT = { has_variable = can_go_colonial }
					any_scope_state = { is_coastal = yes }
				}
				modifier = {
					if = {
						limit = { has_strategy = ai_strategy_colonial_expansion }
						add = 90
					}
					if = {
						limit = {
							OR = {
								has_law_or_variant = law_type:law_colonial_resettlement
								has_law_or_variant = law_type:law_colonial_exploitation
							}
						}
						add = 35
					}
				}
				ve_ai_adopt_idea_group = { GROUP = colonial FOCUS = 21 }
			}
		}
	}
}

ve_ai_boost_idea = {
	if = {
		limit = {
			var:ve_ai_idea_focus == 1
			ve_idea_affordable = { GROUP = academic }
			NOT = { has_variable = academic_idea_completed }
		}
		boost_academic_idea_effect = yes
		national_idea_mdf = yes
	}
	else_if = {
		limit = {
			var:ve_ai_idea_focus == 2
			ve_idea_affordable = { GROUP = agrarian }
			NOT = { has_variable = agrarian_idea_completed }
		}
		boost_agrarian_idea_effect = yes
		national_idea_mdf = yes
	}
	else_if = {
		limit = {
			var:ve_ai_idea_focus == 3
			ve_idea_affordable = { GROUP = financial }
			NOT = { has_variable = financial_idea_completed }
		}
		boost_financial_idea_effect = yes
		national_idea_mdf = yes
	}
	else_if = {
		limit = {
			var:ve_ai_idea_focus == 4
			ve_idea_affordable = { GROUP = infrastructure }
			NOT = { has_variable = infrastructure_idea_completed }
		}
		boost_infrastructure_idea_effect = yes
		national_idea_mdf = yes
	}
	else_if = {
		limit = {
			var:ve_ai_idea_focus == 5
			ve_idea_affordable = { GROUP = extraction }
			NOT = { has_variable = extraction_idea_completed }
			OR = {
				var:extraction_idea < 6
				has_technology_researched = dynamite
			}
		}
		boost_extraction_idea_effect = yes
		national_idea_mdf = yes
	}
	else_if = {
		limit = {
			var:ve_ai_idea_focus == 6
			ve_idea_affordable = { GROUP = mass_conscription }
			NOT = { has_variable = mass_conscription_idea_completed }
		}
		boost_mass_conscription_idea_effect = yes
		national_idea_mdf = yes
	}
	else_if = {
		limit = {
			var:ve_ai_idea_focus == 7
			ve_idea_affordable = { GROUP = war_economy }
			NOT = { has_variable = war_economy_idea_completed }
		}
		boost_war_economy_idea_effect = yes
		national_idea_mdf = yes
	}
	else_if = {
		limit = {
			var:ve_ai_idea_focus == 8
			ve_idea_affordable = { GROUP = industrialist }
			NOT = { has_variable = industrialist_idea_completed }
		}
		boost_industrialist_idea_effect = yes
		national_idea_mdf = yes
	}
	else_if = {
		limit = {
			var:ve_ai_idea_focus == 9
			ve_idea_affordable = { GROUP = bureaucratic }
			NOT = { has_variable = bureaucratic_idea_completed }
		}
		boost_bureaucratic_idea_effect = yes
		national_idea_mdf = yes
	}
	else_if = {
		limit = {
			var:ve_ai_idea_focus == 10
			ve_idea_affordable = { GROUP = nationalist }
			NOT = { has_variable = nationalist_idea_completed }
		}
		boost_nationalist_idea_effect = yes
		national_idea_mdf = yes
	}
	else_if = {
		limit = {
			var:ve_ai_idea_focus == 11
			ve_idea_affordable = { GROUP = parliamentary }
			NOT = { has_variable = parliamentary_idea_completed }
		}
		boost_parliamentary_idea_effect = yes
		national_idea_mdf = yes
	}
	else_if = {
		limit = {
			var:ve_ai_idea_focus == 12
			ve_idea_affordable = { GROUP = diplomatic }
			NOT = { has_variable = diplomatic_idea_completed }
		}
		boost_diplomatic_idea_effect = yes
		national_idea_mdf = yes
	}
	else_if = {
		limit = {
			var:ve_ai_idea_focus == 13
			ve_idea_affordable = { GROUP = mercantile }
			NOT = { has_variable = mercantile_idea_completed }
		}
		boost_mercantile_idea_effect = yes
		national_idea_mdf = yes
	}
	else_if = {
		limit = {
			var:ve_ai_idea_focus == 14
			ve_idea_affordable = { GROUP = welfare }
			NOT = { has_variable = welfare_idea_completed }
		}
		boost_welfare_idea_effect = yes
		national_idea_mdf = yes
	}
	else_if = {
		limit = {
			var:ve_ai_idea_focus == 15
			ve_idea_affordable = { GROUP = reformist }
			NOT = { has_variable = reformist_idea_completed }
		}
		boost_reformist_idea_effect = yes
		national_idea_mdf = yes
	}
	else_if = {
		limit = {
			var:ve_ai_idea_focus == 16
			ve_idea_affordable = { GROUP = labour }
			NOT = { has_variable = labour_idea_completed }
		}
		boost_labour_idea_effect = yes
		national_idea_mdf = yes
	}
	else_if = {
		limit = {
			var:ve_ai_idea_focus == 17
			ve_idea_affordable = { GROUP = offensive }
			NOT = { has_variable = offensive_idea_completed }
		}
		boost_offensive_idea_effect = yes
		national_idea_mdf = yes
	}
	else_if = {
		limit = {
			var:ve_ai_idea_focus == 18
			ve_idea_affordable = { GROUP = defensive }
			NOT = { has_variable = defensive_idea_completed }
		}
		boost_defensive_idea_effect = yes
		national_idea_mdf = yes
	}
	else_if = {
		limit = {
			var:ve_ai_idea_focus == 19
			ve_idea_affordable = { GROUP = naval }
			NOT = { has_variable = naval_idea_completed }
		}
		boost_naval_idea_effect = yes
		national_idea_mdf = yes
	}
	else_if = {
		limit = {
			var:ve_ai_idea_focus == 20
			ve_idea_affordable = { GROUP = professional_army }
			NOT = { has_variable = professional_army_idea_completed }
		}
		boost_professional_army_idea_effect = yes
		national_idea_mdf = yes
	}
	else_if = {
		limit = {
			var:ve_ai_idea_focus == 21
			ve_idea_affordable = { GROUP = colonial }
			NOT = { has_variable = colonial_idea_completed }
		}
		boost_colonial_idea_effect = yes
		national_idea_mdf = yes
	}
}

ve_ai_monthly_idea_tick = {
	ve_ai_refresh_idea_focus = yes
	if = {
		limit = { has_variable = ve_ai_idea_focus }
		ve_ai_boost_idea = yes
	}
	ve_ai_clear_finished_idea_focus = yes
}

ve_ai_half_yearly_strategy_tick = {
	ve_ai_refresh_idea_focus = yes
	ve_ai_choose_idea = yes
	ve_ai_uses_religion = yes
	ve_ai_uses_culture = yes
	ve_ai_uses_age_bonuses = yes
}
