
Variables
{
	%tint = (0,255,0)
}

EffectDefinition
{
	EffectComponent ParticleEffect "smoke_puff_that_reveals"
	{
		RepeatTime		0
		ParticleLifespan	[0.3,0.6]
		BlendMode		add
		Texture			"data/gfx/particles/smoke_01.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=8
				duration=0
				delay=0
				orientation=[0,360]
				speed=[30,60]
				rotationalSpeed=[210,350]
				direction=[0,360]
				spawnOffsetAbsX=[-2,2]
				spawnOffsetAbsY=[-2,2]
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,-50)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255,255,255)
				age=1, rgb=%tint					
				
			}
			
			Alpha
			{
				age=0, alpha=0				
				age=0.5, alpha=180 	
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.5,0.8)
				age=1, scale=(2.5,3.0)
				
			}
		}
	}

	EffectComponent ParticleEffect "horizontal_sparkle_outer_small"
	{
		RepeatTime		0
		ParticleLifespan	0.5
		BlendMode		add
		Texture			"data/gfx/particles/sparkle/star_01.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=0
				speed=[0,0]
				rotationalSpeed=[0,0]
				direction=[0,0]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=-50
			}

			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=0
				speed=[0,0]
				rotationalSpeed=[0,0]
				direction=[0,0]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=50
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255,255,255)
				age=1, rgb=%tint			
				
			}
			
			Alpha
			{
				age=0, alpha=0				
				age=0.3, alpha=180 	
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.5,0.8)
				age=1, scale=(7.5,1.0)
				
			}
		}
	}

	EffectComponent ParticleEffect "vertical_sparkle_outer_small"
	{
		RepeatTime		0
		ParticleLifespan	0.5
		BlendMode		add
		Texture			"data/gfx/particles/sparkle/star_01.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=0
				speed=[0,0]
				rotationalSpeed=[0,0]
				direction=[0,0]
				spawnOffsetAbsX=-50
				spawnOffsetAbsY=0
			}

			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=0
				speed=[0,0]
				rotationalSpeed=[0,0]
				direction=[0,0]
				spawnOffsetAbsX=50
				spawnOffsetAbsY=0
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255,255,255)	
				age=1, rgb=%tint		
				
			}
			
			Alpha
			{
				age=0, alpha=0				
				age=0.3, alpha=180 	
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.8, 0.5)
				age=1, scale=(1.0, 7.5)
				
			}
		}
	}
}
