GAS_CLOUDY_CAT = {
    desc = "GAS_CLOUDY_DESC"
    picture = "GFX_evt_atmospheric_flight"
    level = 1

    spawn_chance = {
        modifier = {
            add = 3
            is_planet_class = pc_gas_giant
            # Riza Fix
            has_any_strategic_resource = no
            NOR = {
                has_planet_flag = baldarak@from.owner
                has_planet_flag = new_baldarak@from.owner
                has_planet_flag = baldarak
                has_planet_flag = new_baldarak
                exists = archaeological_site
            }
        }
        # Gigastructural Engineering & More
        modifier = {
            factor = 0
            solar_system = {
                OR = {
                    merg_is_isolated_system = yes
                    inline_script = {
                        script = merger_of_rules/toggled_code
                        code = "
                            cohesive_system = yes
                            urmazin_system = yes
                            everchanging_system = yes
            			"
                        toggle = @has_gigastructures
                    }
                }
            }
        }
    }
    on_success = anomaly.240
}
corrupt_data_cat = {
    picture = "GFX_evt_ship_in_orbit_2"
    level = 4
    max_once_global = yes

    spawn_chance = {
        modifier = {
            add = 3
            has_distar = yes
            merg_is_basic_vanilla_habitable = yes
            has_anomaly = no
        }
        modifier = {
            factor = 0
            OR = {
                exists = owner
                has_moon = yes
                is_under_colonization = yes
                solar_system = {
                    OR = {
                        has_star_flag = empire_cluster
                        merg_is_isolated_system = yes
                        inline_script = {
                            script = merger_of_rules/toggled_code
                            code = "
                                cohesive_system = yes
                                urmazin_system = yes
                                everchanging_system = yes
                            "
                            toggle = @has_gigastructures
                        }
                    }
                }
                has_deposit = d_betharian_deposit
                has_deposit = d_alien_pets_deposit
                exists = archaeological_site
                has_planet_flag = has_megastructure
            }
        }
    }

    on_success = distar.1065
}
