#########################
#    AI GOVERNMENTS
#########################
# Documentation: common\governments\99_README_GOVERNMENT.txt
#
# All governments in this file have base weight: @gov_ai_weight
#
# None of them are available to player empires.
#
# If the empire fulfills the requirements for multiple governments, it will
# select the first one listed in this file.
#
# The weight categories to select a government are (highest selected first):
# 1. AI governments
# 2. Authority swap governments
# 3. Civic governments
# 4. Ethic governments
# 5. Authority governments
# 6. Fallback government

# Stagnant Ascendancy
gov_stagnant_ascendancy = {
	ruler_title = RT_EMPEROR
	ruler_title_female = RT_EMPRESS

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_valid_civic = civic_lethargic_leadership
		has_valid_civic = civic_empire_in_decline
	}

	weight = {
		base = @gov_ai_weight
	}
}

# Awakened Ascendancy
gov_awakened_ascendancy = {
	ruler_title = RT_EMPEROR
	ruler_title_female = RT_EMPRESS

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_valid_civic = civic_revanchist_fervor
		has_valid_civic = civic_ancient_caches_of_technology
	}

	weight = {
		base = @gov_ai_weight
	}
}

# Custodian Matrix
gov_custodian_matrix = {
	ruler_title = RT_CUSTODIAN
	ruler_title_female = RT_CUSTODIAN

	use_regnal_names = yes

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_valid_civic = civic_machine_remnants
		has_valid_civic = civic_custodian_directives
	}

	weight = {
		base = @gov_ai_weight
	}
}

# Malfunctioning Custodian
gov_berserker_machine = {
	ruler_title = RT_CUSTODIAN
	ruler_title_female = RT_CUSTODIAN

	use_regnal_names = yes

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_valid_civic = civic_awakened_machine
		has_valid_civic = civic_malfunctioning_custodian
	}

	weight = {
		base = @gov_ai_weight
	}
}

# Awakened Custodian matrix
gov_galactic_defense_unit = {
	ruler_title = RT_ERROR
	ruler_title_female = RT_ERROR

	use_regnal_names = yes

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_valid_civic = civic_awakened_machine
		has_valid_civic = civic_final_defense_protocols
	}

	weight = {
		base = @gov_ai_weight
	}
}

# War Splinter
gov_war_splinter = {
	ruler_title = RT_INCOMPLETE_OVERMIND
	ruler_title_female = RT_INCOMPLETE_OVERMIND

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_valid_civic = civic_fragmented_command
		has_valid_civic = civic_hyper_aggressive_drones
	}

	weight = {
		base = @gov_ai_weight
	}
}

# Growth Splinter
gov_growth_splinter = {
	ruler_title = RT_INCOMPLETE_OVERMIND
	ruler_title_female = RT_INCOMPLETE_OVERMIND

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_valid_civic = civic_fragmented_command
		has_valid_civic = civic_unstable_drones
	}

	weight = {
		base = @gov_ai_weight
	}
}

# Control Splinter
gov_control_splinter = {
	ruler_title = RT_INCOMPLETE_OVERMIND
	ruler_title_female = RT_INCOMPLETE_OVERMIND

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_valid_civic = civic_fragmented_command
		has_valid_civic = civic_stunted_drones
	}

	weight = {
		base = @gov_ai_weight
	}
}

# Awakened Ascendancy
gov_fused_ascendancy = {
	ruler_title = RT_HIVE_MIND
	ruler_title_female = RT_HIVE_MIND

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_valid_civic = civic_restored_mind
	}

	weight = {
		base = @gov_ai_weight
	}
}


# Tribal Society
gov_tribal_society = {
	ruler_title = RT_KING
	ruler_title_female = RT_QUEEN

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_valid_civic = civic_secret_of_fire
		has_valid_civic = civic_the_wheel
	}

	weight = {
		base = @gov_ai_weight
	}
}

# Feudal Realms
gov_feudal_realms = {
	ruler_title = RT_KING
	ruler_title_female = RT_QUEEN

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_valid_civic = civic_landed_nobility
		has_valid_civic = civic_flat_world_theory
	}

	weight = {
		base = @gov_ai_weight
	}
}

# Fragmented Nation States
gov_fragmented_nation_states = {
	ruler_title = RT_SECRETARY
	ruler_title_female = RT_SECRETARY_FEMALE

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_valid_civic = civic_increasing_urbanization
		has_valid_civic = civic_atmospheric_pollution
	}

	weight = {
		base = @gov_ai_weight
	}
}

# Curator Enclave
gov_curator_enclave = {
	ruler_title = RT_HIGH_CURATOR

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_valid_civic = civic_ancient_preservers
	}

	weight = {
		base = @gov_ai_weight
	}
}

# Trader Enclave
gov_trader_enclave = {
	ruler_title = RT_HIGH_TRADER

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_valid_civic = civic_trading_conglomerate
	}

	weight = {
		base = @gov_ai_weight
	}
}

# Artist Enclave
gov_artist_enclave = {
	ruler_title = RT_HIGH_ARTIST

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_valid_civic = civic_artist_collective
	}

	weight = {
		base = @gov_ai_weight
	}
}

# Marauder Clans
gov_marauder_clans = {
	ruler_title = RT_RELUCTANT_EMISSARY

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_civic = civic_anarcho_tribalism
	}

	weight = {
		base = @gov_ai_weight
	}
}

# Marauder Khanate
gov_marauder_khanate = {
	ruler_title = RT_GREAT_KHAN

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_civic = civic_great_khans_vision
		is_country_type = awakened_marauders
	}

	weight = {
		base = @gov_ai_weight
	}
}

# Diadochi
gov_diadochi = {
	ruler_title = RT_KHAN

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_civic = civic_diadochi
	}

	weight = {
		base = @gov_ai_weight
	}
}

# Successor Khanate
gov_successor_khanate = {
	ruler_title = RT_KHAN

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_civic = civic_great_khans_legacy
	}

	weight = {
		base = @gov_ai_weight
	}
}

# Military Order (Sentinels)
gov_military_order = {
	ruler_title = RT_GRAND_MASTER

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_valid_civic = civic_military_order
	}

	weight = {
		base = @gov_ai_weight
	}
}

# AI Crisis
gov_ancient_machine_intelligence = {
	ruler_title = RT_CORE_DIRECTIVE

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_civic = civic_ancient_machine_intelligence
	}

	weight = {
		base = @gov_ai_weight
	}
}

# Mercenary Enclave
gov_mercenary_enclave = {
	ruler_title = RT_HIGH_ADMIRAL

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_valid_civic = civic_mercenary_enclave
	}
	weight = {
		base = @gov_ai_weight
	}
}

# Salvager Enclave
gov_salvager_enclave = {
	ruler_title = RT_PRINCIPAL_ENGINEER

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_valid_civic = civic_salvager_enclave
	}
	weight = {
		base = @gov_ai_weight
	}
}

# Shroudwalker Enclave
gov_shroudwalker_enclave = {
	ruler_title = RT_ELDER

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_valid_civic = civic_shroudwalker_enclave
	}
	weight = {
		base = @gov_ai_weight
	}
}

# Mindwarden Enclave
gov_mindwarden_enclave = {
	ruler_title = RT_ELDER

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_valid_civic = civic_mindwarden_enclave
	}
	weight = {
		base = @gov_ai_weight
	}
}

# Unplugged: The Machine
gov_unplugged_assimilator_empire = {
	ruler_title = RT_UNPLUGGED_ASSIMILATOR

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_country_flag = unplugged_assimilator_empire
	}
	weight = {
		base = @gov_ai_weight
	}
}

# Champions Forge Enclave
gov_champions_forge_enclave = {
	ruler_title = RT_ETERNAL_CHAMPION

	should_force_rename = yes

	possible = {
		is_ai = yes
		has_valid_civic = civic_champions_forge_enclave
	}

	weight = {
		base = @gov_ai_weight
	}
}
