
EffectDefinition
{
	EffectComponent ParticleEffect "rainbow left"
	{
		RepeatTime		0
		ParticleLifespan	2.5
		BlendMode		alpha
		Texture			"data/gfx/placeables/treasurehunt/rainbow.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=1
				orientation=30
				speed=0
				rotationalSpeed=0
				direction=0
				spawnOffsetAbsX=250
				spawnOffsetAbsY=100
			}			
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,0)
			}

			SignalEvents
			{
				delay=1, event="PlaySound", string "name"="BonusChestFanfare"
			}

			
		}
		
		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=(-1.0,1.0)							
				age=1.0, scale=(-1.0,1.0)				
			}
		}
	}
	
	EffectComponent ParticleEffect "rainbow right"
	{
		RepeatTime		0
		ParticleLifespan	2.5
		BlendMode		alpha
		Texture			"data/gfx/placeables/treasurehunt/rainbow.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=1
				orientation=-30
				speed=0
				rotationalSpeed=0
				direction=0
				spawnOffsetAbsX=550
				spawnOffsetAbsY=100
			}			
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,0)
			}
			
		}
		
		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=(1.0,1.0)							
				age=1.0, scale=(1.0,1.0)				
			}
		}
	}

	EffectComponent ParticleEffect "rainbow up"
	{
		RepeatTime		0
		ParticleLifespan	1.5
		BlendMode		alpha
		Texture			"data/gfx/placeables/treasurehunt/rainbow.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=8
				duration=1
				delay=0.8
				orientation=20
				speed=200
				rotationalSpeed=0
				direction=270
				spawnOffsetAbsX=400
				spawnOffsetAbsY=200
			}			
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,0)
			}
			
		}
		
		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=(0.2,0.2)							
				age=0.6, scale=(0.7,0.7)
				age=1.0, scale=(1.6,1.6)				
			}
		}
	}

	EffectComponent ParticleEffect "chest beam light"
	{
		RepeatTime		0
		ParticleLifespan	2
		BlendMode		alpha
		Texture			"data/gfx/particles/blursquare_32.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=1
				orientation=0
				speed=0
				rotationalSpeed=0
				direction=0
				spawnOffsetAbsX=400
				spawnOffsetAbsY=150
			}			
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)	
			}
			
			Alpha
			{
				age=0, alpha=0				
				age=0.2, alpha=200
				age=0.5, alpha=160
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(4.0,15.5)							
				age=0.5, scale=(5.0,15.5)		
				age=1, scale=(4.0,15.5)		
			}
		}
	}	


	EffectComponent ParticleEffect "rainbow sparks left"
	{
		RepeatTime		0
		ParticleLifespan	0.9
		BlendMode		add
		Texture			"data/gfx/particles/sparkle/star_01.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=20
				duration=2
				delay=1
				orientation=30
				speed=650
				rotationalSpeed=0
				direction=270
				spawnOffsetAbsX=[380, 400]
				spawnOffsetAbsY=300
			}

			SpawnParticles
			{
				count=20
				duration=2
				delay=1
				orientation=30
				speed=650
				rotationalSpeed=0
				direction=270
				spawnOffsetAbsX=[350, 370]
				spawnOffsetAbsY=300
			}				
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(-750,530)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 200, 200)		
				age=0.5, rgb=(200, 255, 200)		
				age=1, rgb=(200, 200, 255)		
			}
			
			Alpha
			{
				age=0, alpha=0				
				age=0.2, alpha=140
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(-1.0,1.0)							
				age=1.0, scale=(-1.0,1.0)				
			}
		}
	}

	EffectComponent ParticleEffect "rainbow sparks right"
	{
		RepeatTime		0
		ParticleLifespan	0.9
		BlendMode		add
		Texture			"data/gfx/particles/sparkle/star_01.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=20
				duration=2
				delay=1
				orientation=30
				speed=650
				rotationalSpeed=0
				direction=270
				spawnOffsetAbsX=[420, 400]
				spawnOffsetAbsY=300
			}

			SpawnParticles
			{
				count=20
				duration=2
				delay=1
				orientation=30
				speed=650
				rotationalSpeed=0
				direction=270
				spawnOffsetAbsX=[450, 470]
				spawnOffsetAbsY=300
			}				
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(750,530)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 200, 200)		
				age=0.5, rgb=(200, 255, 200)		
				age=1, rgb=(200, 200, 255)		
			}
			
			Alpha
			{
				age=0, alpha=0				
				age=0.2, alpha=140
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(-1.0,1.0)							
				age=1.0, scale=(-1.0,1.0)				
			}
		}
	}

	EffectComponent ParticleEffect "rainbow sparks up spatter"
	{
		RepeatTime		0
		ParticleLifespan	0.9
		BlendMode		add
		Texture			"data/gfx/particles/sparkle/star_01.png"

		EmitterEvents
		{
		
			SpawnParticles
			{
				count=60
				duration=2
				delay=1
				orientation=30
				speed=650
				rotationalSpeed=0
				direction=[250, 290]
				spawnOffsetAbsX=[380, 420]
				spawnOffsetAbsY=300
			}				
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,530)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 200, 200)		
				age=0.5, rgb=(200, 255, 200)		
				age=1, rgb=(200, 200, 255)		
			}
			
			Alpha
			{
				age=0, alpha=0				
				age=0.2, alpha=140
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(-1.0,1.0)							
				age=1.0, scale=(-1.0,1.0)				
			}
		}
	}

	EffectComponent ParticleEffect "chest open light"
	{
		RepeatTime		0
		ParticleLifespan	1.5
		BlendMode		add
		Texture			"data/gfx/particles/blurcircle_01.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=0
				speed=0
				rotationalSpeed=0
				direction=0
				spawnOffsetAbsX=400
				spawnOffsetAbsY=200
			}			
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)		
			}
			
			Alpha
			{
				age=0, alpha=0				
				age=0.7, alpha=255
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(4.0,0.5)							
				age=0.7, scale=(6.0,1.4)							
				age=1.0, scale=(8.0,5.0)				
			}
		}
	}	

	EffectComponent ParticleEffect "chest open rings"
	{
		RepeatTime		0
		ParticleLifespan	1.5
		BlendMode		add
		Texture			"data/gfx/particles/blur_ring_32.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=10
				duration=1.5
				delay=1
				orientation=0
				speed=200
				rotationalSpeed=0
				direction=270
				spawnOffsetAbsX=400
				spawnOffsetAbsY=200
			}			
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 200, 200)		
				age=0.5, rgb=(200, 255, 200)		
				age=1, rgb=(200, 200, 255)		
			}
			
			Alpha
			{
				age=0, alpha=0				
				age=0.7, alpha=105
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(4.0,0.5)							
				age=0.7, scale=(11.0,1.4)							
				age=1.0, scale=(20.0,3.0)				
			}
		}
	}

	EffectComponent ParticleEffect "lid"
	{
		RepeatTime		0
		ParticleLifespan	3
		BlendMode		alpha
		Texture			"data/gfx/CanopicJar/counter/chest_lid"

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=0
				speed=0
				rotationalSpeed=0
				direction=0
				spawnOffsetAbsX=401
				spawnOffsetAbsY=188.5
			}			
			
			Dynamics
			{
				delay=0.1, absoluteAcceleration=(0,-20)
				delay=0.8, absoluteAcceleration=(0,-2000)
				delay=0.9, absoluteAcceleration=(0,-400)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)		
			}
			
			Alpha
			{
				age=0, alpha=255
				
			}
			
			Scale
			{
				age=0, scale=(1, 1)			
			}
		}
	}		
	
	EffectComponent ParticleEffect "chest open light 2"
	{
		RepeatTime		0
		ParticleLifespan	0.3
		BlendMode		add
		Texture			"data/gfx/particles/blurcircle_01.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0.9
				orientation=0
				speed=0
				rotationalSpeed=0
				direction=0
				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.1, alpha=255
				age=0.7, alpha=255
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(4.0,0.5)								
				age=1.0, scale=(35.0,35.0)				
			}
		}
	}			
}