
civic_planetmega_builder = {
    modification = no
    icon = "gfx/interface/icons/governments/civics/civic_machine_builder.dds" #temp
    cost = 1
    ai_playable = { is_difficulty > 4 }
    #potential = { ethics = { NOT = { value = ethic_gestalt_consciousness } } }
    possible = {
        origin = { value = origin_planetmega_builder }
        civics = {
            nor = {
                value = civic_planetmega_worshipper
                value = civic_planetmega_rationalist
                value = civic_machine_builder
                value = civic_void_hive
            }
        }
    }
    description = civic_planetmega_builder_effect_desc
    modifier = {
        planet_building_build_speed_mult = 0.1
        ground_megastructure_build_speed_mult = 0.15
        planet_buildings_mega_produces_mult = 0.1
        ground_megastructure_cost_mult = -0.1
        deposit_blockers_mega_cost_mult = -0.1
    }
    random_weight = { base = @civic_rare_random_weight }
    ai_weight = { base = @civic_rare_random_weight }
}

civic_planetmega_rationalist = {
    icon = gfx/interface/icons/governments/civics/civic_machine_built_to_last.dds #temp
    cost = 1
    ai_playable = { is_difficulty > 5 }
    possible = {
        is_nomadic = no
        civics = { not = { value = civic_planetmega_worshipper } }
        ethics = {
            or = {
                #text = civic_tooltip_materialist_or_gestalt
                value = ethic_gestalt_consciousness
                value = ethic_materialist
                value = ethic_fanatic_materialist
            }
        }
        origin = { not = { value = origin_wilderness } }
    }
    description = civic_planetmega_rationalist_effect_desc
    modifier = {
        planet_building_build_speed_mult = 0.15
        ground_megastructure_build_speed_mult = 0.2
        planet_buildings_produces_mult = -0.05
        planet_buildings_mega_produces_mult = -0.25
        jobs_about_planetmega_produces_mult = -0.15
        planet_buildings_cost_mult = -0.15
        ground_megastructure_cost_mult = -0.2
        deposit_blockers_mega_cost_mult = -0.2
        ###分割线###
        planet_buildings_mega_physics_research_produces_mult = 0.4
        planet_buildings_mega_society_research_produces_mult = 0.4
        planet_buildings_mega_engineering_research_produces_mult = 0.4
        planet_buildings_mega_sr_dark_matter_produces_mult = 0.5
    }
    random_weight = { base = 0 }
    ai_weight = { base = 0 }
}

civic_planetmega_worshipper = {
    modification = no
    icon = gfx/interface/icons/governments/civics/civic_philosopher_king.dds #temp
    cost = 1
    ai_playable = { is_difficulty > 4 }
    possible = {
        origin = { value = origin_planetmega_worshipper }
        civics = { not = { value = civic_planetmega_rationalist } }
        ethics = {
            or = {
                text = civic_tooltip_spiritualist
                value = ethic_spiritualist
                value = ethic_fanatic_spiritualist
            }
        }
    }
    description = civic_planetmega_worshipper_effect_desc
    modifier = {
        ground_megastructure_build_speed_mult = -0.15
        planet_clear_blocker_speed_mult = -0.1
        planet_buildings_mega_produces_mult = 0.2
        ground_megastructure_cost_mult = 0.35
        deposit_blockers_mega_cost_mult = 0.45
        ###分割线###
        planet_buildings_mega_unity_produces_mult = 0.1
        planet_buildings_mega_sr_zro_produces_mult = 0.15
    }
    random_weight = { base = @civic_rare_random_weight }
    ai_weight = { base = @civic_rare_random_weight }
}

civic_planetmega_involution = {
    icon = gfx/interface/icons/governments/civics/civic_relentless_industrialists.dds
    cost = 1
    ai_playable = {
        is_difficulty > 5
        allowed_crisis_type = all
    }
    potential = { ethics = { not = { value = ethic_gestalt_consciousness } } }
    possible = {
        ethics = {
            or = {
                text = civic_tooltip_authoritarian
                value = ethic_authoritarian
                value = ethic_fanatic_authoritarian
            }
        }
    }
    #description =
    modifier = {
        planetmega_job_amount_mult = -0.7
        #job_max_workforce_mult = -0.75
        pop_cat_civilian_happiness = -0.35
        pop_category_rulers_unity_produces_add = 1.5
        jobs_about_planetmega_produces_mult = 0.15
        bonus_automated_workforce_mult = 0.55
    }
    random_weight = { base = 0 }
    ai_weight = {
        base = @civic_rare_random_weight
        modifier = {
            factor = @ai_civic_personality_match_factor
            has_civic = civic_dystopian_society
        }
        modifier = {
            factor = 0
            has_valid_civic = civic_shared_burden
        }
    }
}

civic_planetmega_evolution = {
    icon = gfx/interface/icons/governments/civics/civic_relentless_industrialists.dds
    cost = 1
    ai_playable = {
        is_difficulty > 5
        allowed_crisis_type = all
    }
    potential = { ethics = { not = { value = ethic_gestalt_consciousness } } }
    possible = {
        ethics = {
            or = {
                text = civic_tooltip_egalitarian
                value = ethic_egalitarian
                value = ethic_fanatic_egalitarian
            }
        }
    }
    #description =
    modifier = {
        planetmega_job_amount_mult = 0.75
        pop_cat_civilian_happiness = 0.15
        pop_bonus_workforce_mult = 0.05
        jobs_about_planetmega_produces_mult = -0.1
        jobs_about_planetmega_upkeep_mult = 0.5
    }
    random_weight = { base = 0 }
    ai_weight = {
        base = @civic_rare_random_weight
        modifier = {
            factor = @ai_civic_personality_match_factor
            has_valid_civic = civic_shared_burden
        }
        modifier = {
            factor = @ai_civic_personality_mismatch_factor
            has_civic = civic_dystopian_society
        }
    }
}

civic_planetmega_crimekeeper = {
    icon = gfx/interface/icons/governments/civics/civic_criminal_heritage.dds
    cost = 1
    #ai_playable = { num_galaxy_systems > 750 }
    potential = { ethics = { not = { value = ethic_gestalt_consciousness } } }
    description = civic_planetmega_crimekeeper_tt
    modifier = {
        planet_crime_mult = 0.15
        pop_cat_criminal_bonus_workforce_mult = 0.25
        planet_criminals_unity_produces_add = 0.05
        planet_buildings_mega_produces_mult = -0.15
        jobs_about_planetmega_produces_mult = -0.15
    }
    random_weight = { base = @civic_rare_random_weight }
    ai_weight = {
        base = @civic_rare_random_weight
        modifier = {
            factor = @ai_civic_personality_match_factor
            has_civic = civic_criminal_heritage
            has_any_planetmega_in_empire = yes
        }
    }
}
