plnmg_defender_nanite = {
	# inherited from synth_queen_storm
	textures = {
		opacity_texture = "gfx/map/synth_queen/synth_queen_galaxy_map_alpha.dds"
		diffuse_texture = "gfx/map/synth_queen/synth_queen_galaxy_map.dds"
		lightning_texture_atlas = "gfx/map/synth_queen/noalpha.dds"
		lightning_horisontal_tiles = 2
		lightning_vertical_tiles = 2
	}

	parameters = {
		min_size = 30.0
		max_size = 40.0
		size_change_speed = 0.3
		rotation_speed = 0.1
		counter_rotation_speed = 0.02
		min_opacity = 0.9
		max_opacity = 1
		opacity_change_speed = 0.05
		lightning_intencity_min = 0.9
		lightning_intencity_max = 1.0
		lightning_duration_min = 0.8
		lightning_duration_max = 1.2
		lightning_switch_interval_min = 0.50
		lightning_switch_interval_max = 1.0
		size_change_reversion = yes
		opacity_change_reversion = yes
	}

	ambient_object = {
		type = synth_queen_tempest
		scale = 3.0
		# If yes, the ambient object is placed at the center of the system.
		# In other case the object is placed at a random position.
		centric = yes
	}

	# Effect firing when a new galactic object is covered with fog
	# This = galactic object
	# From = Country owning the galactic object
	on_system_added = {
		from = { calculate_cntr_nanostorm_powerlevel = yes }
		check_plnmg_nano_storm_effect_system = yes
		if = {
			limit = {
				from = { has_country_flag = nanostorm_similar_cetana_nanites }
				any_fleet_in_system = {
					exists = owner
					owner = { is_synth_queen_country_type = yes }
				}
			}
			from = { country_event = { id = planetmega_effect.96 } }
		}
	}

	# Effect firing when a galactic object is uncovered from fog
	# This = galactic object
	# From = Country owning the galactic object
	on_system_removed = {
		every_fleet_in_system = {
			every_controlled_ship = {
				limit = { has_modifier = plnmg_nano_storm_effect_ship }
				remove_modifier = plnmg_nano_storm_effect_ship
			}
		}
	}
}
