########################################################################## # Empire Policies # # ##### # # AI: # Base AI-weight is 100, if unchanged # AI will grab whatever policy-option has the highest weight # # ##### # ########################################################################## war_philosophy = { potential = { always = yes # only normal Empires should have this policy } allow = { is_at_war = no # Not allowed to change policies in this group while at war } option = { name = "unrestricted_wars" policy_flags = { unrestricted_wars } valid = { NOR = { has_ethic = "ethic_pacifist" has_ethic = "ethic_fanatic_pacifist" } } AI_weight = { modifier = { factor = 10 OR = { has_valid_ai_personality = no is_ai = no } NOT = { has_ethic = "ethic_pacifist" has_ethic = "ethic_fanatic_pacifist" } } modifier = { factor = 10 has_valid_ai_personality = yes is_ai = yes OR = { has_ai_personality_behaviour = conqueror has_ai_personality_behaviour = subjugator has_ai_personality_behaviour = purger } } modifier = { factor = 0 OR = { has_ethic = "ethic_pacifist" has_ethic = "ethic_fanatic_pacifist" } } } } option = { name = "liberation_wars" policy_flags = { liberation_wars } valid = { NOT = { has_ethic = "ethic_fanatic_pacifist" } } AI_weight = { modifier = { factor = 2 OR = { has_valid_ai_personality = no is_ai = no } has_ethic = "ethic_pacifist" } modifier = { factor = 2 has_valid_ai_personality = yes is_ai = yes OR = { has_ai_personality_behaviour = conqueror has_ai_personality_behaviour = subjugator has_ai_personality_behaviour = liberator } } } } option = { name = "no_wars" policy_flags = { no_wars } valid = { NOT = { has_ethic = "ethic_fanatic_militarist" } } AI_weight = { modifier = { factor = 5 has_ethic = "ethic_fanatic_pacifist" } modifier = { factor = 0 NOT = { has_ethic = "ethic_fanatic_pacifist" } } } } } food_stockpiling = { potential = { always = yes } option = { name = "food_stockpiling_1" policy_flags = {} modifier = { max_food = 200 } valid = { always = yes } AI_weight = { factor = 10 modifier = { factor = 0 num_pops > 20 } } } option = { name = "food_stockpiling_2" policy_flags = {} modifier = { max_food = 1000 } valid = { always = yes } AI_weight = { factor = 5 modifier = { factor = 0 num_pops > 100 } } } option = { name = "food_stockpiling_3" policy_flags = {} modifier = { max_food = 5000 } valid = { always = yes } AI_weight = { factor = 1 } } } orbital_bombardment = { potential = { always = yes } option = { name = "orbital_bombardment_light" policy_flags = { allow_orbital_bombardment_light } on_enabled = { # custom_tooltip = "policy_allow_slavery_effect_disable" } AI_weight = { modifier = { factor = 4 OR = { has_ethic = "ethic_pacifist" has_ethic = "ethic_fanatic_pacifist" } } } } option = { name = "orbital_bombardment_limited" policy_flags = { allow_orbital_bombardment_light allow_orbital_bombardment_limited } modifier = {} valid = { NOT = { has_ethic = "ethic_fanatic_pacifist" } } AI_weight = { modifier = { factor = 2 NOT = { has_ethic = "ethic_pacifist" has_ethic = "ethic_fanatic_pacifist" } } } } option = { name = "orbital_bombardment_full" potential = { } valid = { OR = { has_ethic = "ethic_militarist" has_ethic = "ethic_fanatic_militarist" } } policy_flags = { allow_orbital_bombardment_light allow_orbital_bombardment_limited allow_orbital_bombardment_full } modifier = {} AI_weight = { modifier = { factor = 4 OR = { has_ethic = "ethic_fanatic_militarist" has_ethic = "ethic_fanatic_xenophobe" } } } } option = { name = "orbital_bombardment_armageddon" potential = { has_civic = civic_fanatic_purifiers } valid = { always = yes } policy_flags = { allow_orbital_bombardment_light allow_orbital_bombardment_limited allow_orbital_bombardment_full allow_orbital_bombardment_armageddon } modifier = {} AI_weight = { modifier = { factor = 10 has_civic = civic_fanatic_purifiers } } } } interference = { potential = { OR = { has_country_flag = encountered_first_primitive any_relation = { has_communications = root is_country_type = primitive } } } option = { name = "interference_passive" policy_flags = { interference_passive } on_enabled = { # custom_tooltip = "policy_allow_slavery_effect_disable" } valid = { OR = { is_subject_type = signatory NOT = { has_ethic = "ethic_fanatic_xenophobe" } } } } option = { name = "interference_active" policy_flags = { interference_active } modifier = {} valid = { NOT = { is_subject_type = signatory } } AI_weight = { modifier = { factor = 2 has_valid_ai_personality = yes OR = { has_ai_personality_behaviour = infiltrator has_ai_personality_behaviour = dominator } } modifier = { factor = 0 has_valid_ai_personality = yes NOR = { has_ai_personality_behaviour = infiltrator has_ai_personality_behaviour = dominator } } } } option = { name = "interference_full" potential = { } valid = { NOT = { is_subject_type = signatory } NOR = { has_ethic = "ethic_pacifist" has_ethic = "ethic_fanatic_pacifist" has_ethic = "ethic_xenophile" has_ethic = "ethic_fanatic_xenophile" } } policy_flags = { interference_full } modifier = {} AI_weight = { modifier = { factor = 3 has_valid_ai_personality = yes OR = { has_ai_personality_behaviour = infiltrator has_ai_personality_behaviour = dominator } } modifier = { factor = 0 has_valid_ai_personality = yes NOR = { has_ai_personality_behaviour = infiltrator has_ai_personality_behaviour = dominator } } modifier = { factor = 0 OR = { has_ethic = "ethic_pacifist" has_ethic = "ethic_fanatic_pacifist" has_ethic = "ethic_xenophile" has_ethic = "ethic_fanatic_xenophile" } } } } } enlightenment = { potential = { OR = { has_country_flag = encountered_first_primitive any_relation = { has_communications = root is_country_type = primitive } } } option = { name = "enlightenment_not_allowed" policy_flags = { enlightenment_not_allowed } on_enabled = { # custom_tooltip = "policy_allow_slavery_effect_disable" } AI_weight = { weight = 1 } } option = { name = "enlightenment_allowed" policy_flags = { enlightenment_allowed } modifier = {} valid = { NOT = { has_ethic = "ethic_fanatic_xenophobe" } } AI_weight = { modifier = { factor = 2 has_valid_ai_personality = yes has_ai_personality_behaviour = uplifter } modifier = { factor = 0 has_valid_ai_personality = yes NOT = { has_ai_personality_behaviour = uplifter } } modifier = { factor = 0 OR = { has_ethic = "ethic_xenophobe" has_ethic = "ethic_fanatic_xenophobe" } } } } } resettlement = { potential = { NOT = { has_ethic = "ethic_hive_mind" } } option = { name = "resettlement_not_allowed" policy_flags = { resettlement_not_allowed } AI_weight = { modifier = { factor = 0 OR = { has_ethic = "ethic_xenophobe" has_ethic = "ethic_fanatic_xenophobe" has_ethic = "ethic_authoritarian" has_ethic = "ethic_fanatic_authoritarian" has_government = gov_theocratic_oligarchy has_government = gov_holy_tribunal } } } } option = { name = "resettlement_allowed" policy_flags = { resettlement_allowed } modifier = {} AI_weight = { modifier = { factor = 0 NOR = { has_ethic = "ethic_xenophobe" has_ethic = "ethic_fanatic_xenophobe" has_ethic = "ethic_authoritarian" has_ethic = "ethic_fanatic_authoritarian" has_government = gov_theocratic_oligarchy has_government = gov_holy_tribunal } } modifier = { factor = 10 OR = { has_ethic = "ethic_xenophobe" has_ethic = "ethic_fanatic_xenophobe" has_ethic = "ethic_authoritarian" has_ethic = "ethic_fanatic_authoritarian" has_government = gov_theocratic_oligarchy has_government = gov_holy_tribunal } } } } } leader_enhancement = { potential = { has_technology = tech_selected_lineages } option = { name = "leader_enhancement_natural_selection" policy_flags = { leader_enhancement_natural_selection } on_enabled = { # custom_tooltip = "policy_allow_slavery_effect_disable" } modifier = {} } option = { name = "leader_enhancement_selected_lineages" policy_flags = { leader_enhancement_selected_lineages } modifier = { species_leader_exp_gain = 0.25 leader_age = 25 leader_influence_cost = 0.5 } valid = { NOT = { has_ethic = "ethic_fanatic_egalitarian" } } AI_weight = { factor = 2 } prerequisites = { tech_selected_lineages } } option = { name = "leader_enhancement_capacity_boosters" policy_flags = { leader_enhancement_capacity_boosters } modifier = { species_leader_exp_gain = 0.5 leader_age = 50 leader_influence_cost = 1 } valid = { NOR = { has_ethic = "ethic_egalitarian" has_ethic = "ethic_fanatic_egalitarian" } } prerequisites = { tech_capacity_boosters } AI_weight = { factor = 3 } } } first_contact_protocol = { potential = { always = yes } option = { name = "first_contact_attack_not_allowed" policy_flags = { first_contact_attack_not_allowed } on_enabled = { # custom_tooltip = "policy_allow_slavery_effect_disable" } } option = { name = "first_contact_attack_allowed" policy_flags = { first_contact_attack_allowed } modifier = {} valid = { OR = { has_ethic = ethic_xenophobe has_ethic = ethic_fanatic_xenophobe has_ethic = ethic_militarist has_ethic = ethic_fanatic_militarist NOR = { has_ethic = ethic_fanatic_xenophile has_ethic = ethic_fanatic_pacifist } } } AI_weight = { modifier = { factor = 2 OR = { has_ethic = "ethic_militarist" has_ethic = "ethic_fanatic_militarist" } } modifier = { factor = 2 OR = { has_ethic = "ethic_xenophobe" has_ethic = "ethic_fanatic_xenophobe" } } } } } artificial_intelligence_policy = { potential = { has_technology = tech_robotic_workers } option = { name = "ai_outlawed" potential = { NOT = { is_country_type = ai_empire } NOT = { has_country_flag = synthetic_empire } } valid = { NOT = { is_country_type = ai_empire } NOT = { has_country_flag = synthetic_empire } custom_tooltip = { text = ai_accord_servitude_disallowed OR = { NOT = { has_country_flag = ai_accord } is_subject_type = satellite } } } policy_flags = { ai_outlawed } on_enabled = { custom_tooltip = "ALL_ROBOTS_DISASSEMBLED" } AI_weight = { modifier = { factor = 0 OR = { has_ai_personality_behaviour = robot_exploiter has_ai_personality_behaviour = robot_liberator has_ethic = "ethic_materialist" has_ethic = "ethic_fanatic_materialist" } } modifier = { factor = 2 OR = { has_ethic = "ethic_spiritualist" has_ethic = "ethic_fanatic_spiritualist" has_ethic = "ethic_hive_mind" } } modifier = { factor = 0 is_country_type = ai_empire } } } option = { name = "ai_servitude" potential = { NOT = { is_country_type = ai_empire } NOT = { has_country_flag = synthetic_empire } } valid = { NOT = { is_country_type = ai_empire } NOT = { has_country_flag = synthetic_empire } NOT = { is_subject_type = satellite } custom_tooltip = { text = ai_accord_servitude_disallowed NOT = { has_country_flag = ai_accord } } NOR = { has_ethic = ethic_spiritualist has_ethic = ethic_fanatic_spiritualist has_authority = auth_hive_mind } } policy_flags = { ai_servitude } AI_weight = { modifier = { factor = 0 has_valid_ai_personality = yes NOR = { has_ai_personality_behaviour = robot_exploiter has_ai_personality_behaviour = robot_liberator has_ethic = "ethic_materialist" has_ethic = "ethic_fanatic_materialist" } } modifier = { factor = 2 has_valid_ai_personality = yes has_ai_personality_behaviour = robot_exploiter } modifier = { factor = 0 OR = { has_ethic = "ethic_spiritualist" has_ethic = "ethic_fanatic_spiritualist" has_ethic = "ethic_hive_mind" } } modifier = { factor = 0 is_country_type = ai_empire } } } option = { name = "ai_full_rights" prerequisites = { "tech_synthetic_workers" } valid = { NOT = { is_subject_type = satellite } custom_tooltip = { text = ai_perfect_servants_rights_disallowed NOT = { has_country_flag = ai_perfect_servants } } OR = { has_ethic = ethic_materialist has_ethic = ethic_fanatic_materialist has_country_flag = synthetic_empire } } policy_flags = { ai_full_rights } modifier = {} AI_weight = { modifier = { factor = 0 has_valid_ai_personality = yes NOT = { has_ai_personality_behaviour = robot_liberator } } modifier = { factor = 2 has_valid_ai_personality = yes has_ai_personality_behaviour = robot_liberator } modifier = { factor = 0 OR = { has_ethic = "ethic_spiritualist" has_ethic = "ethic_fanatic_spiritualist" } } modifier = { factor = 0 OR = { has_ethic = "ethic_xenophobe" has_ethic = "ethic_fanatic_xenophobe" } } modifier = { factor = 10 is_country_type = ai_empire } } } } pre_sentients = { potential = { any_planet_within_border = { any_pop = { is_sentient = no } } } option = { name = "pre_sentients_allow" valid = { NOT = { has_ethic = "ethic_hive_mind" } } policy_flags = { pre_sentients_allow } AI_weight = { factor = 1 } } option = { name = "pre_sentients_purge" valid = { NOR = { has_ethic = "ethic_xenophile" has_ethic = "ethic_fanatic_xenophile" } } policy_flags = { pre_sentients_purge } modifier = {} AI_weight = { factor = 5 modifier = { factor = 0 NOR = { has_ethic = "ethic_xenophobe" has_ethic = "ethic_fanatic_xenophobe" } } } } } core_worlds = { potential = { has_encountered_other_species = yes NOT = { has_ethic = "ethic_hive_mind" } } option = { name = "core_worlds_all" policy_flags = { core_worlds_all } valid = { always = yes } } option = { name = "core_worlds_citizens_and_slaves" policy_flags = { core_worlds_citizens_and_slaves } valid = { allows_slavery = yes NOR = { has_ethic = ethic_xenophile has_ethic = ethic_fanatic_xenophile } } AI_weight = { factor = 10 modifier = { factor = 0 NOR = { has_ethic = "ethic_xenophobe" has_ethic = "ethic_fanatic_xenophobe" AND = { NOT = { has_ai_personality_behaviour = multispecies } num_owned_planets > 10 } } } } } option = { name = "core_worlds_citizens_only" policy_flags = { core_worlds_citizens_only } valid = { NOR = { has_ethic = ethic_xenophile has_ethic = ethic_fanatic_xenophile } } AI_weight = { factor = 5 modifier = { factor = 0 NOR = { has_ethic = "ethic_xenophobe" has_ethic = "ethic_fanatic_xenophobe" AND = { NOT = { has_ai_personality_behaviour = multispecies } num_owned_planets > 10 } } } } } } refugees = { potential = { has_encountered_other_species = yes is_country_type = default NOT = { has_ethic = "ethic_hive_mind" } } option = { name = "refugees_not_allowed" valid = { NOR = { has_ethic = "ethic_xenophile" has_ethic = "ethic_fanatic_xenophile" } } policy_flags = { refugees_not_allowed } } option = { name = "refugees_only_citizens" policy_flags = { refugees_only_citizens } valid = { NOT = { has_authority = auth_hive_mind } } AI_weight = { factor = 5 modifier = { factor = 0 NOR = { has_ethic = "ethic_xenophobe" has_ethic = "ethic_fanatic_xenophobe" } } } } option = { name = "refugees_allowed" policy_flags = { refugees_allowed } valid = { NOR = { has_ethic = "ethic_xenophobe" has_ethic = "ethic_fanatic_xenophobe" } NOT = { has_authority = auth_hive_mind } } AI_weight = { factor = 10 modifier = { factor = 0 has_valid_ai_personality = yes NOT = { has_ai_personality_behaviour = multispecies } } modifier = { factor = 0 has_valid_ai_personality = no NOR = { has_ethic = ethic_xenophile has_ethic = ethic_fanatic_xenophile } } } } } slavery = { potential = { NOT = { has_ethic = "ethic_hive_mind" } } option = { name = "slavery_not_allowed" policy_flags = { slavery_not_allowed } } option = { name = "slavery_allowed" valid = { NOT = { is_subject_type = signatory } OR = { has_ethic = ethic_authoritarian has_ethic = ethic_fanatic_authoritarian has_ethic = ethic_xenophobe has_ethic = ethic_fanatic_xenophobe } } policy_flags = { slavery_allowed } modifier = {} AI_weight = { factor = 10 modifier = { factor = 0 has_valid_ai_personality = yes NOT = { has_ai_personality_behaviour = slaver } } modifier = { factor = 0 has_valid_ai_personality = no NOR = { has_ethic = ethic_authoritarian has_ethic = ethic_fanatic_authoritarian has_ethic = ethic_xenophobe has_ethic = ethic_fanatic_xenophobe } } } } } purge = { potential = { NOT = { has_ethic = "ethic_hive_mind" } NOT = { has_civic = civic_fanatic_purifiers } } option = { name = "purge_not_allowed" valid = { NOT = { has_authority = auth_hive_mind } } policy_flags = { purge_not_allowed } } option = { name = "purge_displacement_only" policy_flags = { purge_displacement_only } modifier = {} valid = { NOT = { is_subject_type = signatory has_authority = auth_hive_mind } OR = { has_ethic = ethic_xenophobe has_ethic = ethic_fanatic_xenophobe has_ethic = ethic_authoritarian has_ethic = ethic_fanatic_authoritarian } } AI_weight = { factor = 5 modifier = { factor = 0 has_valid_ai_personality = yes has_ai_personality_behaviour = multispecies } } } option = { name = "purge_allowed" policy_flags = { purge_allowed } modifier = {} valid = { NOT = { is_subject_type = signatory } OR = { has_authority = auth_hive_mind has_ethic = ethic_xenophobe has_ethic = ethic_fanatic_xenophobe } } AI_weight = { factor = 10 modifier = { factor = 0 has_valid_ai_personality = yes NOT = { has_ai_personality_behaviour = purger } } } } }