just_researched_fe_tech = {
    OR = {
        last_increased_tech = tech_dark_matter_deflector
        last_increased_tech = tech_dark_matter_power_core
        last_increased_tech = tech_dark_matter_propulsion
        last_increased_tech = tech_cloaking_dark_matter
        last_increased_tech = tech_enigmatic_encoder
        last_increased_tech = tech_enigmatic_decoder
        last_increased_tech = tech_fe_affluence_1
        last_increased_tech = tech_fe_affluence_2
        last_increased_tech = tech_fe_nourishment_1
        last_increased_tech = tech_fe_nourishment_2
        last_increased_tech = tech_fe_fabricator_1
        last_increased_tech = tech_fe_fabricator_2
        last_increased_tech = tech_fe_singularity_1
        last_increased_tech = tech_fe_singularity_2
        last_increased_tech = tech_fe_forge_1
        last_increased_tech = tech_fe_forge_2
        last_increased_tech = tech_fe_dome_1
        last_increased_tech = tech_fe_dome_2
        last_increased_tech = tech_fe_fortress_1
        last_increased_tech = tech_fe_fortress_2
        last_increased_tech = tech_fe_administration_1
        last_increased_tech = tech_fe_administration_2
        last_increased_tech = tech_fe_assembly_1
        last_increased_tech = tech_fe_assembly_2
        last_increased_tech = tech_fe_clinic_1
        last_increased_tech = tech_fe_clinic_2
        last_increased_tech = tech_fe_security_1
        last_increased_tech = tech_fe_security_2
        last_increased_tech = tech_fe_market_1
        last_increased_tech = tech_fe_market_2
        last_increased_tech = tech_fe_silo_1
        last_increased_tech = tech_fe_silo_2
        last_increased_tech = tech_fe_entertainment_1
        last_increased_tech = tech_fe_entertainment_2
        last_increased_tech = tech_fe_lab_1
        last_increased_tech = tech_fe_lab_2
        last_increased_tech = tech_fe_mine_1
        last_increased_tech = tech_fe_mine_2
        last_increased_tech = tech_cosmogenesis_escort
        last_increased_tech = tech_cosmogenesis_battlecruiser
        last_increased_tech = tech_cosmogenesis_FE_titan
        # Gigastructural Engineeering & More
        inline_script = {
            script = merger_of_rules/toggled_code
            code = "
                giga_just_researched_fe_tech = yes
			"
            toggle = @has_gigastructures
        }
        # More Cosmogenesis Buildings
        mcb_just_researched_fe_tech = yes
    }
}

has_murderous_civic_or_origin = {
    OR = {
        has_valid_civic = civic_scavengers
        has_valid_civic = civic_shadow_council
        has_valid_civic = civic_barbaric_despoilers
        has_valid_civic = civic_sovereign_guardianship
        has_valid_civic = civic_cutthroat_politics
        has_valid_civic = civic_death_cult
        has_origin = origin_necrophage
        has_origin = origin_legendary_leader
        has_origin = origin_cybernetic_creed
        has_origin = origin_overtuned
        # Destiny: The Darkness
        has_valid_civic = civic_paracausal_darkness
        has_origin = origin_the_darkness
        # Ethics and Civics Classic
        inline_script = {
            script = merger_of_rules/toggled_code
            code = "
                has_valid_civic = civic_death_cult
			"
            toggle = @has_ecc_cog
        }
    }
}
