# For use in Planetary Shield Building script
on_built = {
	if = {
		limit = { has_cosmic_storms_dlc = yes }
		solar_system = {
			set_star_flag = storm_no_negative_effects
			remove_modifier = storm_base_modifier
		}
	}
}

on_destroy = {
	if = {
		limit = { has_cosmic_storms_dlc = yes }
		owner = { set_country_flag = shield_on_destroy } #an action when destroyed
		solar_system = {
			remove_star_flag = storm_no_negative_effects
		}
	}
}
