EffectDefinition
{
	EffectComponent ParticleEffect "sandstorm_clouds_spinners"
	{
		RepeatTime		0
		ParticleLifespan	[2.6,2.6]
		BlendMode		alpha
		Texture			"data/gfx/particles/smoke_01.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=4
				duration=0
				delay=0.15
				orientation=[0,360]
				speed=[0, 0]
				rotationalSpeed=[-360,-460]
				direction=[268,272]
				spawnOffsetAbsX=[-400,-400]
				spawnOffsetAbsY=[-300,-300]
			}

			SpawnParticles
			{
				count=4
				duration=0
				delay=0.15
				orientation=[0,360]
				speed=[0, 0]
				rotationalSpeed=[360,460]
				direction=[268,272]
				spawnOffsetAbsX=[400,400]
				spawnOffsetAbsY=[-300,-300]
			}
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,0)
			}
			
			SignalEvents
			{
				delay=0, event="PlaySound", string "name"="CloudStorm"
			}
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(46, 54, 69)		
				age=0.5, rgb=(61, 77, 105)
				age=1, rgb=(46, 54, 69)
			}
			
			Alpha
			{
				age=0, alpha=0
				age=0.3, alpha=245
				age=0.5, alpha=200
				age=0.8, alpha=245
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(15.5,15.0)		
				age=0.5, scale=(13.5,13.5)		
				age=1.0, scale=(15.0,15.5)				
			}
		}
	}

	EffectComponent ParticleEffect "sandstorm_clouds_very dark"
	{
		RepeatTime		0
		ParticleLifespan	[1.0,1.2]
		BlendMode		alpha
		Texture			"data/gfx/particles/smoke_02.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=20
				duration=2.3
				delay=0
				orientation=[0,360]
				speed=[1100, 1200]
				rotationalSpeed=[-30,-60]
				direction=[268,272]
				spawnOffsetAbsX=[-150,150]
				spawnOffsetAbsY=[20,40]
			}
			
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(0, 0, 0)		
				age=0.5, rgb=(26, 27, 30)
				age=1, rgb=(0, 0, 0)
			}
			
			Alpha
			{
				age=0, alpha=200
				age=0.5, alpha=255
				age=0.8, alpha=200
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(6.0,6.0)		
				age=0.5, scale=(4.5,7.5)		
				age=1.0, scale=(6.0,6.0)				
			}
		}
	}


	EffectComponent ParticleEffect "sandstorm_clouds_main"
	{
		RepeatTime		0
		ParticleLifespan	[1.0,1.2]
		BlendMode		alpha
		Texture			"data/gfx/particles/smoke_02.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=30
				duration=2.3
				delay=0
				orientation=[0,360]
				speed=[1100, 1200]
				rotationalSpeed=[-30,-60]
				direction=[268,272]
				spawnOffsetAbsX=[-400,0]
				spawnOffsetAbsY=[20,40]
			}

			SpawnParticles
			{
				count=30
				duration=2.3
				delay=0
				orientation=[0,360]
				speed=[1100, 1200]
				rotationalSpeed=[30,60]
				direction=[268,272]
				spawnOffsetAbsX=[0,400]
				spawnOffsetAbsY=[20,40]
			}
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(46, 54, 69)		
				age=0.5, rgb=(61, 77, 105)
				age=1, rgb=(46, 54, 69)
			}
			
			Alpha
			{
				age=0, alpha=200
				age=0.5, alpha=255
				age=0.8, alpha=200
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(6.0,6.0)		
				age=0.5, scale=(4.5,7.5)		
				age=1.0, scale=(6.0,6.0)				
			}
		}
	}

	EffectComponent ParticleEffect "sandstorm_clouds white followup"
	{
		RepeatTime		0
		ParticleLifespan	[1.0,1.2]
		BlendMode		alpha
		Texture			"data/gfx/particles/smoke_02.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=10
				duration=0.5
				delay=1.5
				orientation=[0,360]
				speed=[1100, 1200]
				rotationalSpeed=[30,60]
				direction=[268,272]
				spawnOffsetAbsX=[-400,400]
				spawnOffsetAbsY=[20,40]
			}

			SpawnParticles
			{
				count=50
				duration=1.3
				delay=2
				orientation=[0,360]
				speed=[1100, 1200]
				rotationalSpeed=[30,60]
				direction=[268,272]
				spawnOffsetAbsX=[-400,400]
				spawnOffsetAbsY=[20,40]
			}
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(200, 200, 200)		
				age=0.5, rgb=(255, 255, 255)
				age=1, rgb=(200, 200, 200)
			}
			
			Alpha
			{
				age=0, alpha=0
				age=0.1, alpha=100
				age=0.5, alpha=155
				age=0.8, alpha=100
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(6.0,6.0)		
				age=0.5, scale=(4.5,7.5)		
				age=1.0, scale=(6.0,6.0)				
			}
		}
	}


	
	EffectComponent ParticleEffect "sandstorm_clouds_edges"
	{
		RepeatTime		0
		ParticleLifespan	[1.0,1.2]
		BlendMode		add
		Texture			"data/gfx/particles/smoke_02.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=40
				duration=2.5
				delay=0
				orientation=[0,360]
				speed=[1000, 1200]
				rotationalSpeed=[20,50]
				direction=[268,272]
				spawnOffsetAbsX=[-400,-400]
				spawnOffsetAbsY=[20,40]
			}

			SpawnParticles
			{
				count=40
				duration=2.5
				delay=0
				orientation=[0,360]
				speed=[1000, 1200]
				rotationalSpeed=[20,50]
				direction=[268,272]
				spawnOffsetAbsX=[400,400]
				spawnOffsetAbsY=[20,40]
			}
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(46, 54, 69)		
				age=0.5, rgb=(61, 77, 105)
				age=1, rgb=(46, 54, 69)
			}
			
			Alpha
			{
				age=0, alpha=200
				age=0.5, alpha=150
				age=0.8, alpha=200
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(6.0,6.0)		
				age=0.5, scale=(4.5,7.5)		
				age=1.0, scale=(6.0,6.0)				
			}
		}
	}

	EffectComponent ParticleEffect "sandstorm_clouds_small"
	{
		RepeatTime		0
		ParticleLifespan	[1.0,1.2]
		BlendMode		add
		Texture			"data/gfx/particles/smoke_01.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=40
				duration=2.0
				delay=0
				orientation=[0,360]
				speed=[1300, 1600]
				rotationalSpeed=[100,250]
				direction=[268,272]
				spawnOffsetAbsX=[-420,420]
				spawnOffsetAbsY=[20,40]
			}
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(46, 54, 69)		
				age=0.5, rgb=(61, 77, 105)
				age=1, rgb=(46, 54, 69)	
			}
			
			Alpha
			{
				age=0, alpha=55
				age=0.5, alpha=70
				age=0.9, alpha=55
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(3.0,3.0)		
				age=0.5, scale=(1.5,1.5)		
				age=1.0, scale=(3.0,3.0)				
			}
		}
	} 

	

	

	EffectComponent ParticleEffect "sandstorm_clouds_glow_edges"
	{
		RepeatTime		0
		ParticleLifespan	[2.0,2.0]
		BlendMode		alpha
		Texture			"data/gfx/particles/blurcircle_01.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0.15
				orientation=[0,0]
				speed=[0, 0]
				rotationalSpeed=[0,0]
				direction=[268,272]
				spawnOffsetAbsX=400
				spawnOffsetAbsY=-300
			}

			SpawnParticles
			{
				count=1
				duration=0
				delay=0.15
				orientation=[0,0]
				speed=[0, 0]
				rotationalSpeed=[0,0]
				direction=[268,272]
				spawnOffsetAbsX=-400
				spawnOffsetAbsY=-300
			}
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)	
			}
			
			Alpha
			{
				age=0, alpha=0
				age=0.3, alpha=150
				age=0.5, alpha=200
				age=0.8, alpha=150
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(2.5, 42.5)		
				age=0.5, scale=(4.5, 52.5)		
				age=1.0, scale=(2.5, 42.5)				
			}
		}
	}


	EffectComponent ParticleEffect "lightning_bolt_main"
	{
		RepeatTime		0
		ParticleLifespan	[0.3,0.4]
		BlendMode		add
		Texture			"data/gfx/particles/lightning/lightning_main_01.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=2
				duration=1.3
				delay=0
				orientation=-30
				speed=[0, 0]
				rotationalSpeed=[0,0]
				direction=[270,270]
				spawnOffsetAbsX=200
				spawnOffsetAbsY=-400
			}

			SpawnParticles
			{
				count=2
				duration=1.3
				delay=0
				orientation=30
				speed=[0, 0]
				rotationalSpeed=[0,0]
				direction=[270,270]
				spawnOffsetAbsX=-200
				spawnOffsetAbsY=-400
			}
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255,255,255)		
			}
			
			Alpha
			{
				age=0, alpha=20 				
				age=0.5, alpha=10
				age=0.6, alpha=0
				age=0.7, alpha=10
				age=0.8, alpha=0
				age=0.9, alpha=10
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.0,0.0)	
				age=0.05, scale=(2.8,3.1)	
				age=0.9, scale=(2.81,3.1)
				age=1.0, scale=(2.95,3.12)				
			}
		}
	}

	
	EffectComponent ParticleEffect "lightning_scatter anim"
	{
		RepeatTime		0
		ParticleLifespan	[0.3,0.4]
		BlendMode		add
		AnimSequence		"lightning_small"

		EmitterEvents
		{
			SpawnParticles
			{
				count=5
				duration=1.5
				delay=0
				orientation=-30
				speed=[0, 0]
				rotationalSpeed=[50,80]
				direction=[270,270]
				spawnOffsetAbsX=0
				spawnOffsetAbsY=-300
			}				
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(150,200,255)		
			}
			
			Alpha
			{
				age=0, alpha=0				
				age=0.2, alpha=20
				age=0.8, alpha=20
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(15.0,15.0)	
				age=0.5, scale=(20,20)
				age=1.0, scale=(15,15)				
			}
		}
	}

	EffectComponent ParticleEffect "lightning_flicker"
	{
		RepeatTime		0
		ParticleLifespan	[0.05,0.2]
		BlendMode		add
		Texture			"data/gfx/particles/blurcircle_01.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=6
				duration=1.5
				delay=0
				orientation=-30
				speed=[0, 0]
				rotationalSpeed=[0,0]
				direction=[270,270]
				spawnOffsetAbsX=-400
				spawnOffsetAbsY=-600
			}

			SpawnParticles
			{
				count=6
				duration=1.5
				delay=0
				orientation=-30
				speed=[0, 0]
				rotationalSpeed=[0,0]
				direction=[270,270]
				spawnOffsetAbsX=400
				spawnOffsetAbsY=-600
			}						
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255,255,255)		
			}
			
			Alpha
			{
				age=0, alpha=90				
				age=0.5, alpha=80
				age=0.6, alpha=0				
				age=0.9, alpha=80
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.0,0.0)	
				age=0.5, scale=(30,30)
				age=1.0, scale=(0,0)				
			}
		}
	}

	EffectComponent ParticleEffect "final sun"
	{
		RepeatTime		0
		ParticleLifespan	2
		BlendMode		add
		Texture			"data/gfx/particles/blurcircle_01.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=2
				orientation=-30
				speed=[0, 0]
				rotationalSpeed=[0,0]
				direction=[270,270]
				spawnOffsetAbsX=0
				spawnOffsetAbsY=-600
			}						
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255,155,15)		
			}
			
			Alpha
			{
				age=0, alpha=0				
				age=0.2, alpha=150
				age=0.5, alpha=250
				age=0.8, alpha=150
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.0,0.0)	
				age=0.5, scale=(30,30)
				age=0.9, scale=(31,31)
				age=1.0, scale=(50,50)				
			}
		}
	}

	EffectComponent ParticleEffect "final sun flash"
	{
		RepeatTime		0
		ParticleLifespan	0.5
		BlendMode		add
		Texture			"data/gfx/particles/blurcircle_01.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=3.3
				orientation=-30
				speed=[0, 0]
				rotationalSpeed=[0,0]
				direction=[270,270]
				spawnOffsetAbsX=0
				spawnOffsetAbsY=-600
			}						
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255,255,255)		
			}
			
			Alpha
			{
				age=0, alpha=0				
				age=0.2, alpha=150
				age=0.5, alpha=250
				age=0.8, alpha=150
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.0,0.0)	
				age=1.0, scale=(50,50)				
			}
		}
	}

	EffectComponent ParticleEffect "rainbow up FIX ME"
	{
		RepeatTime		0
		ParticleLifespan	1.7
		BlendMode		add
		Texture			"data/gfx/placeables/treasurehunt/rainbow.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=2
				orientation=0
				speed=0
				rotationalSpeed=0
				direction=270
				spawnOffsetAbsX=0
				spawnOffsetAbsY=-100
			}			
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,-50)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)		
			}
			
			Alpha
			{
				age=0, alpha=0				
				age=0.5, alpha=50
				age=1, alpha=0
				
			}
			
			Scale
			{				
				age=0, scale=(4.6,4.6)				
			}
		}
	}

	EffectComponent ParticleEffect "end sparkles"
	{
		RepeatTime		0
		ParticleLifespan	0.5
		BlendMode		add
		Texture			"data/gfx/particles/sparkle/star_01"

		EmitterEvents
		{
			SpawnParticles
			{
				count=50
				duration=1
				delay=2.3
				orientation=0
				speed=10
				rotationalSpeed=[200, 400]
				direction=270
				spawnOffsetAbsX=[-400, 400]
				spawnOffsetAbsY=[0, -600]
			}			
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,-1500)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)		
			}
			
			Alpha
			{
				age=0, alpha=0				
				age=0.5, alpha=80
				age=1, alpha=0
				
			}
			
			Scale
			{				
				age=0, scale=(0.7, 0.7)				
				age=0, scale=(1.2, 1.2)				
				age=0, scale=(0.7, 0.7)				
			}
		}
	}
}