<?xml version="1.0" encoding="utf-8"?>
<BeamDefinitions>
	<Beam>
		<Name>BASE_BEAM</Name>
		<CollideAgainst>actors;tiles;rocks</CollideAgainst>
		<StopAgainst>tiles;hard_enemies;rocks</StopAgainst>
	</Beam>

	<Beam>
		<Template>BASE_BEAM</Template>
		<Name>BOSS_LASER</Name>
		
		<CollideAgainst>player;enemies;tiles;rocks</CollideAgainst>
		<Type>laser</Type>
		<Range>700</Range>
		<Damage Amount="1.5" Tier="1" TileReduction="1000" KnockbackMultiplier="300"/>
		<StunTime>0.2</StunTime>
		<DamageWidth>60</DamageWidth>		
		<LightColor>1,0.25,0.25</LightColor>
		<LightWidth>140</LightWidth>
		<LaserColor>1,0.5,0.5</LaserColor>
		<LaserWidth>75</LaserWidth>
		<Textures>laser</Textures>
		<ConstantSound>boss_laserbeam</ConstantSound>
	</Beam>

	<Beam>
		<Template>BOSS_LASER</Template>
		<Name>boss_rotating_laser_1</Name>
		<AngularVelocity>0.627</AngularVelocity>
		<LaserColor>0.6,0.93,1</LaserColor>
	</Beam>
	<Beam>
		<Template>BOSS_LASER</Template>
		<Name>boss_rotating_laser_2</Name>
		<AngularVelocity>-0.627</AngularVelocity>
		<LaserColor>0.6,0.93,1</LaserColor>
	</Beam>
	<Beam>
		<Template>BOSS_LASER</Template>
		<Name>boss_rotating_laser_3</Name>
		<AngularVelocity>-0.8</AngularVelocity>
		<LaserColor>0.6,0.93,1</LaserColor>
	</Beam>
	<Beam>
		<Template>BOSS_LASER</Template>
		<Name>boss_targeting_laser</Name>
		<LightColor>1,0.25,0.25</LightColor>
		<Damage Amount="1.3" Tier="1" TileReduction="1000" KnockbackMultiplier="300"/>
	</Beam>
	<Beam>
		<!-- For targeting laser -->
		<Template>BOSS_LASER</Template>
		<Name>boss_lock_on_laser_1</Name>
		<Damage Amount="0" KnockbackMultiplier="0"/>
		<LightColor>1,0.25,0.25</LightColor>
		<LightWidth>10</LightWidth>
		<LaserWidth>5</LaserWidth>
		<ConstantSound>lockonbeam</ConstantSound>
	</Beam>
	<Beam>
		<!-- For rotating laser -->
		<Template>boss_lock_on_laser_1</Template>
		<Name>boss_lock_on_laser_2</Name>
		<LightColor>0.8,0.8,1</LightColor>
		<LaserColor>0.6,0.93,1</LaserColor>
	</Beam>

	<Beam>
		<Template>BASE_BEAM</Template>
		<Name>vectron_turret_beam</Name>
		<Type>lightning</Type>
		<Range>700</Range>
		<LifeTime>0.4</LifeTime>
		<FadeTime>0.08</FadeTime>
		<Damage Amount="0.5" EnemyAmount="2.0" IgnoreDepth="1" KnockbackMultiplier="300"/>
		<DamageWidth>20</DamageWidth>
		<DamageInterval>0.16</DamageInterval>
		<LightColor>1,1,2</LightColor>
		<LightWidth>80</LightWidth>
		<OneShotSound>lightningbeam</OneShotSound>
		<EndSprite>Sprites/effects;lightning_end</EndSprite>
		<Textures>light</Textures>
		<SegmentOverlap>10</SegmentOverlap>
	</Beam>
	
	<Beam>
		<Template>BASE_BEAM</Template>
		<Name>vectron_turret_lockon_beam</Name>
		<Damage Amount="0" KnockbackMultiplier="0"/>
		<Range>700</Range>
		<LifeTime>1.0</LifeTime>
		<FadeTime>1.0</FadeTime>
		<FadeInterpolation>InvLinear</FadeInterpolation>
		<LaserColor>1,0.5,0.5</LaserColor>
		<LightWidth>5</LightWidth>
		<LaserWidth>5</LaserWidth>
		<ConstantSound>lockonbeam</ConstantSound>
		<EndSprite>Sprites/effects;laser_end2</EndSprite>
		<Textures>laser</Textures>
	</Beam>
		
	<Beam>
		<Template>BASE_BEAM</Template>
		<Name>laser_box_beam</Name>
		<CollideAgainst>player;enemies;tiles;rocks</CollideAgainst>
		<Type>lightning</Type>
		<Range>200</Range>
		<Damage Amount="1" EnemyAmount="2.0" IgnoreDepth="1" KnockbackMultiplier="300"/>
		<DamageInterval>0.6</DamageInterval>
		<DamageWidth>8</DamageWidth>
		<UpdatePosition>false</UpdatePosition>
		<Physicalized>true</Physicalized>
		<LightColor>0,0.25,1</LightColor>
		<LightWidth>80</LightWidth>
		<ConstantSound>laserbeam</ConstantSound>
		<EndSprite>Sprites/effects;laser_end</EndSprite>
		<Textures>laser</Textures>
	</Beam>
	
	<Beam>
		<Name>BARRIER</Name>
		<Type>lightning</Type>
		<Range>1000</Range>
		<UpdatePosition>false</UpdatePosition>
		<UpdateLength>false</UpdateLength>
		<Physicalized>true</Physicalized>
		<IsSensor>false</IsSensor>
		<Damage Amount="0.5" EnemyAmount="1" KnockbackMultiplier="300" Type="barrier"/>
		<StunTime>0.2</StunTime>
		<DamageInterval>0</DamageInterval>
		<DamageWidth>18</DamageWidth>
		<LightColor>0,0.25,1</LightColor>
		<LightWidth>80</LightWidth>
		<Textures>barrier</Textures>
		<ConstantSound>barrier</ConstantSound>
	</Beam>
	<Beam>
		<Name>barrier1</Name>
		<Template>BARRIER</Template>
		<!-- todo customization, color coding? -->
		<DisableUpgrade>disable_barrier1</DisableUpgrade>
	</Beam>
	<Beam>
		<Name>barrier2</Name>
		<Template>BARRIER</Template>
		<DisableUpgrade>disable_barrier2</DisableUpgrade>
	</Beam>
	<Beam>
		<Name>barrier_boss1</Name>
		<Template>BARRIER</Template>
		<DisableUpgrade>disable_barrier_boss1</DisableUpgrade>
	</Beam>
	<Beam>
		<Name>barrier_boss2</Name>
		<Template>BARRIER</Template>
		<DisableUpgrade>disable_barrier_boss2</DisableUpgrade>
	</Beam>
	<Beam>
		<Name>barrier_boss3</Name>
		<Template>BARRIER</Template>
		<DisableUpgrade>disable_barrier_boss3</DisableUpgrade>
	</Beam>
	<Beam>
		<Name>barrier_boss_cave</Name>
		<Template>BARRIER</Template>
		<DisableUpgrade></DisableUpgrade>
	</Beam>
</BeamDefinitions>
