#region Artifacts
//$Color 9

class SplitterShieldBringer : BaseBringer
{
	Default
	{
		//$Title Splitter Shield
		+COUNTITEM +INVENTORY.AUTOACTIVATE +DONTGIB +FLOATBOB
		Tag "\c[cyan]Splitter Shield";
		Inventory.PickupSound "IronLizard/Use";
		Inventory.PickupMessage "You've got the \c[cyan]Splitter Shield\c-!";
		Inventory.Amount 4000;
		BaseBringer.ItemToBring "SplitterShield";
		BaseBringer.RequisiteItem "Pulverizer";
	}
	
	override void ToucherEffects(Actor toucher)
	{
		toucher.A_SetBlend("60b5ff",0.15,45);
	}
	
	int Loopler;
	
	States
	{
	Spawn:
		SPLS A 1 Bright A_SpawnItemEx("SplitterShieldFade",0,0,0,0,0,0,0,SXF_CLIENTSIDE);
		Loop;
	}
}

class SplitterShieldFade : actor
{
	Default
	{
		Alpha 0.8;
		Renderstyle "Translucent";
		+NOINTERACTION
	}
	States
	{
	Spawn:
		SPLS A 1 Bright {
			A_FadeOut(0.2);
			A_SetScale(Scale.X + 0.05);
		}
		Loop;
	}
}

class SplitterShield : Inventory
{
	Default
	{
		Tag "\c[cyan]Splitter Shield";
		Inventory.PickupMessage "You've got the \c[cyan]Splitter Shield\c-!";
		Inventory.Amount 1;
		Inventory.MaxAmount 1;
		Inventory.InterHubAmount 1;
		Inventory.UseSound "";
		Inventory.PickupSound "IronLizard/Use";
		+FLOATBOB
	}

	States
	{  
	Spawn:
		SPLS A 1 Bright A_SpawnItemEx("SplitterShieldFade",0,0,0,0,0,0,0,SXF_CLIENTSIDE);
		Loop;
	}
}

#endregion
