//Get ready for some ridiculously long names!

class MidasPawnchPuff : PawnchPuff
{
	Default
	{
		DamageType "MidasCloseCombat";
	}
}

class MidasPawnchPuff2 : MidasPawnchPuff //Uppercut
{ 
	Default
	{
		Decal "PunchStamp2";
	}
}

class MidasPawnchPuffLeft : MidasPawnchPuff //Standard Punch
{ 
	Default
	{
		Decal "PunchStampLeft";
	}
}

class MidasPawnchPuffLeft2 : MidasPawnchPuff //Uppercut
{ 
	Default
	{
		Decal "PunchStampLeft2";
	}
}

class MidasScratchPuffLeft : ScratchPuffLeft
{ 
	Default
	{
		DamageType "MidasCloseCombat";
	}
}

class MidasScratchPuffAltLeft : MidasScratchPuffLeft
{ 
	Default
	{
		Decal "ClawStampAltLeft";
	}
}

class MidasScratchPuffRight : MidasScratchPuffLeft
{
	Default
	{
		Decal "ClawStampRight";
	}
}

class MidasScratchPuffAltRight : MidasScratchPuffLeft
{ 
	Default
	{
		Decal "ClawStampAltRight";
	}
}

//Kickin'
class MidasKickProjectile : KickProjectile
{
	Default
	{
		DamageType "MidasShoelaces";
	}
}

class MidasKickProjectileLeft : KickProjectileLeft
{
	Default
	{
		DamageType "MidasShoelaces";
	}
}

class MidasKickProjectileRight : KickProjectileRight
{
	Default
	{
		DamageType "MidasShoelaces";
	}
}

class MidasFootProjectile : FootProjectile
{
	Default
	{
		DamageType "MidasShoelaces";
	}
}

class MidasFootProjectileLeft : FootProjectileLeft
{
	Default
	{
		DamageType "MidasShoelaces";
	}
}

class MidasFootProjectileRight : FootProjectileRight
{
	Default
	{
		DamageType "MidasShoelaces";
	}
}

//Melee - Berserk edition

class SuperMidasPawnchPuff : SuperPawnchPuff
{ 
	Default
	{
		DamageType "SuperMidasCloseCombat";
		Decal "SuperMidasPunchStamp";
	}
	
	States
	{
	SpawnMain:
	CrashMain:
	XDeathMain:
		TNT1 A 1 {
			A_AlertMonsters(256);
			A_PlaySound("SuperPunch/Hit",5,0.7);
			A_PlaySound("Punch/Flavor",6,1.0);
			A_SpawnItemEx("SuperMidasPunchPuff_Shock",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0);
			A_SpawnItemEx("SuperMidasPunchPuff_Impact",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0);
			A_SpawnItemEx("SuperMidasPunchPuff_Wave",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0);
			A_QuakeEx(3,3,3,10,0,384,"none",QF_SCALEDOWN);
		}
		TNT1 A 14 A_Explode(20,48,0);
		stop;
	}
}

class SuperMidasPawnchPuff2 : SuperMidasPawnchPuff //Uppercut
{ 
	Default
	{
		Decal "SuperMidasPunchStamp2";
	}
}

class SuperMidasPawnchPuffLeft : SuperMidasPawnchPuff //Standard punch
{ 
	Default
	{
		Decal "SuperMidasPunchStampLeft";
	}
}

class SuperMidasPawnchPuffLeft2 : SuperMidasPawnchPuff //Uppercut
{ 
	Default
	{
		Decal "SuperMidasPunchStampLeft2";
	}
}

class SuperMidasPunchPuff_Shock : SuperPunchPuff_Shock
{
	States
	{
		Spawn:
			SHCK C 1 NoDelay Bright{
				A_SetScale(Scale.X + FRandom(0.01, 0.02));
				A_FadeOut(0.1);
			}
			Loop;
	}
}

class SuperMidasPunchPuff_Impact : SuperPunchPuff_Shock
{
	Default
	{
		Scale 0.025;
	}
	
	States
	{
		Spawn:
			TNT1 A 0 NoDelay A_Jump(256,"SpriteA","SpriteB","SpriteC","SpriteD");
		SpriteA:
			MDST A 0;
			Goto Looplet;
		SpriteB:
			MDST B 0;
			Goto Looplet;
		SpriteC:
			MDST C 0;
			Goto Looplet;
		SpriteD:
			MDST D 0;
		Looplet:
			"####" "#" 1 Bright {
				A_SetScale(Scale.X + FRandom(0.01, 0.015));
				A_FadeOut(0.125);
			}
			Loop;
	}
}

class SuperMidasPunchPuff_Wave : SuperPunchPuff_Shock
{
	Default
	{
		Scale 0.05;
	}
	
	States
	{
		Spawn:
			TNT1 A 0 NoDelay A_Jump(256,"SpriteA","SpriteB","SpriteC","SpriteD");
		SpriteA:
			MDWV A 0;
			Goto Looplet;
		SpriteB:
			MDWV B 0;
			Goto Looplet;
		SpriteC:
			MDWV C 0;
			Goto Looplet;
		SpriteD:
			MDWV D 0;
			Goto Looplet;
		Looplet:
			"####" "#" 0 Bright {
				A_SetScale(Scale.X + FRandom(0.01, 0.015));
				A_FadeOut(0.1);
			}
			Loop;
		}
}

class SuperMidasScratchPuffLeft : SuperScratchPuffLeft
{ 
	Default
	{
		DamageType "SuperMidasCloseCombat";
		Decal "SuperMidasClawStampLeft";
	}
   
}

class SuperMidasScratchPuffAltLeft : SuperMidasScratchPuffLeft
{ 
	Default
	{
		Decal "SuperMidasClawStampAltLeft";
	}
}

class SuperMidasScratchPuffRight : SuperMidasScratchPuffLeft
{ 
	Default
	{
		Decal "SuperMidasClawStampRight";
	}
}

class SuperMidasScratchPuffAltRight : SuperMidasScratchPuffLeft
{ 
	Default
	{
		Decal "SuperMidasClawStampAltRight";
	}
}

//Berserk Kickin'

class SuperMidasKickProjectile : SuperKickProjectile
{
	Default
	{
		DamageType "SuperMidasShoelaces";
		Decal "SuperMidasBootStamp";
	}
	
	States
	{
	Spawn:
		TNT1 A 1;
		Stop;
	DeathMain:
	XDeathMain:
		TNT1 A 25 {
			if(BlockingLine)
			{
				BlockingLine.Activate(target, 0, SPAC_Use);
			}
			A_GiveInventory("KickethThyHappend",1,AAPTR_TARGET);
			A_AlertMonsters(768);
			A_ChangeVelocity(-8.0,0,0,CVF_RELATIVE,AAPTR_TARGET);
			A_PlaySound("SuperKick/Hit",5,0.9);
			A_Explode((40*random(1,3)),128,0);
			A_SpawnItemEx("SuperMidasKick_Shock",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0);
			A_SpawnItemEx("SuperMidasKick_Impact",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0);
			A_SpawnItemEx("SuperMidasKick_Wave",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0);
			A_SpawnItemEx("SuperMidasKick_Gldef",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0);
			A_QuakeEx(4,4,4,25,0,512,"none",QF_SCALEDOWN);
		}
		Stop;
	}
}

class SuperMidasFootProjectile : SuperMidasKickProjectile
{
	Default
	{
		Decal "SuperMidasFootStamp";
	}
}

//Left
class SuperMidasKickProjectileLeft : SuperMidasKickProjectile
{
	Default
	{
		Decal "SuperMidasLeftBootStamp";
	}
}

class SuperMidasFootProjectileLeft : SuperMidasKickProjectileLeft
{
	Default
	{
		Decal "SuperMidasLeftFootStamp";
	}
}

//Right
class SuperMidasKickProjectileRight : SuperMidasKickProjectile
{
	Default
	{
		Decal "SuperMidasRightBootStamp";
	}
}

class SuperMidasFootProjectileRight : SuperMidasKickProjectileRight
{
	Default
	{
		Decal "SuperMidasRightFootStamp";
	}
}

class SuperMidasKick_Shock :  SuperKick_Shock
{
	States
	{
	Spawn:
		SHCK C 1 NoDelay Bright {
			A_SetScale(Scale.X + FRandom(0.025, 0.035));
			A_FadeOut(0.05);
		}
		Loop;
	}
}

class SuperMidasKick_Impact : SuperKick_Impact
{
	States
	{
	Spawn:
		TNT1 A 0 NoDelay A_Jump(256,"SpriteA","SpriteB","SpriteC","SpriteD");
	SpriteA:
		MDST A 0;
		Goto Looplet;
	SpriteB:
		MDST B 0;
		Goto Looplet;
	SpriteC:
		MDST C 0;
		Goto Looplet;
	SpriteD:
		MDST D 0;
	Looplet:
		"####" "#" 1 Bright {
			A_SetScale(Scale.X + FRandom(0.03, 0.04));
			A_FadeOut(0.075);
		}
		Loop;
	}
}

class SuperMidasKick_Wave : SuperKick_Wave
{
	States
	{
	Spawn:
		TNT1 A 0 NoDelay A_Jump(256,"SpriteA","SpriteB","SpriteC","SpriteD");
	SpriteA:
		MDWV A 0;
		Goto Looplet;
	SpriteB:
		MDWV B 0;
		Goto Looplet;
	SpriteC:
		MDWV C 0;
		Goto Looplet;
	SpriteD:
		MDWV D 0;
		Goto Looplet;
	Looplet:
		"####" "#" 1 Bright {
			A_SetScale(Scale.X + FRandom(0.015, 0.025));
			A_FadeOut(0.05);
		}
		Loop;
	}
}

class SuperMidasKick_Gldef : Actor
{
	Default
	{
		+NOINTERACTION
	}
	
	States
	{
	Spawn:
		TNT1 A 35;
		Stop;
	}
}

//Uppercut
class MidasUppercutPuff : UppercutPuff
{ 
	Default
	{
		DamageType "MidasCloseCombat";
	}
}

class SuperMidasUppercutPuff : SuperMidasPawnchPuff
{
	Default
	{
		Decal "SuperMidasUppercutStamp";
		ZscriptPawnch.ThrustForce 10.0;
		ZscriptPawnch.ThrustUpward 30.0;
		ProjectileKickback 800;
	}
}