EffectDefinition
{
	EffectComponent ParticleEffect "lightning_ball_dark_base"
	{
		RepeatTime		0.6
		ParticleLifespan	[0.6,0.7]
		BlendMode		alpha
		Texture			"data/gfx/particles/blurcircle_01.png"
		FollowEmitter		true

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=[0,360]
				speed=[0, 0]
				rotationalSpeed=[50,100]
				direction=[0,360]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(10, 20, 40)		
			}
			
			Alpha
			{
				age=0, alpha=0
				age=0.2, alpha=255
				age=0.8, alpha=255
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.4,0.4)		
				age=1.0, scale=(0.6,0.6)				
			}
			MoveWithEmitter
			{
				age=0, moveWithEmitter=1
			}
		}
	}

	EffectComponent ParticleEffect "lightning_ball_clouds"
	{
		RepeatTime		0.05
		ParticleLifespan	[0.2,0.4]
		BlendMode		alpha
		Texture			"data/gfx/particles/smoke_02.png"
		FollowEmitter		true

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=[0,360]
				speed=[5, 10]
				rotationalSpeed=[50,100]
				direction=[0,360]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(120,150,255)		
			}
			
			Alpha
			{
				age=0, alpha=255
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.25,0.25)		
				age=1.0, scale=(0.5,0.5)				
			}
			MoveWithEmitter
			{
				age=0, moveWithEmitter=1
				age=.4, moveWithEmitter=1
				age=.8, moveWithEmitter=0
			}
		}
	}

	EffectComponent ParticleEffect "lightning_ball_electricity"
	{
		RepeatTime		0.3
		ParticleLifespan	[0.3,0.4]
		BlendMode		add
		AnimSequence		"lightning_small"
		FollowEmitter		true

		EmitterEvents
		{
			SpawnParticles
			{
				count=2
				duration=0
				delay=0
				orientation=[0,360]
				speed=[0, 0]
				rotationalSpeed=[50,100]
				direction=[0,360]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(100,130,200)		
			}
			
			Alpha
			{
				age=0, alpha=0
				age=0.1, alpha=200
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.4,0.4)		
				age=1.0, scale=(0.9,0.9)				
			}
			MoveWithEmitter
			{
				age=0, moveWithEmitter=1
			}
		}
	}


	EffectComponent ParticleEffect "lightning_ball_center"
	{
		RepeatTime		0.3
		ParticleLifespan	[0.2,0.4]
		BlendMode		add
		Texture			"data/gfx/particles/blurcircle_01.png"
		FollowEmitter		true

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=[0,360]
				speed=[0, 0]
				rotationalSpeed=[50,100]
				direction=[0,360]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)		
			}
			
			Alpha
			{
				age=0, alpha=200
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.1,0.1)		
				age=1.0, scale=(0.75,0.75)				
			}
			MoveWithEmitter
			{
				age=0, moveWithEmitter=1
				age=.4, moveWithEmitter=1
				age=.8, moveWithEmitter=0
			}
		}
	}

	EffectComponent ParticleEffect "lightning_ball_sparks"
	{
		RepeatTime		0.05
		ParticleLifespan	[0.2,0.3]
		BlendMode		add
		Texture			"data/gfx/particles/blurcircle_8.png"
		FollowEmitter		true

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=[0,360]
				speed=[50, 100]
				rotationalSpeed=[50,100]
				direction=[0,360]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(180, 200, 255)		
			}
			
			Alpha
			{
				age=0, alpha=255
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.25,0.25)		
				age=1.0, scale=(0.45,0.45)				
			}
			MoveWithEmitter
			{
				age=0, moveWithEmitter=0
			}
		}
	}
	
	
}