Actor Satanic_PlayerPawn : DoomPlayer
{
	
	//Translation "160:167=191:168","224:231=168:191","248:249=175:168","208:223=168:191"
	Player.DisplayName "Necromancer"	
	Player.StartItem Satanic_MaledictoryEagle 1
	Player.StartItem Satanic_Clip 16
	Player.StartItem Satanic_EagleCartridgeAmmo 16
	Player.StartItem Satanic_StaffOfSufferingMaxInternalAmmo 18
	Player.StartItem Satanic_BloodMagic
	Player.StartItem Satanic_MindControl
	Player.StartItem Vengeful_ShellsRemain 4
	Player.StartItem NecroVision 1
	Player.StartItem NecroBarrier 1
	Player.StartItem NecroShroud 1
	Player.StartItem Satanic_ReloadActive 1
	Player.StartItem Satanic_ReloadCancel 1
	Player.StartItem MEagleScope 1
	Player.StartItem Satanic_Fear 1
	Player.StartItem TertiaryActive 1
	Player.StartItem TertiaryCancel 1
	Player.StartItem ToggleLHI 1
	Player.StartItem ToggleLHIText 1
	Player.StartItem TogglePWC 1
	Player.CrouchSprite "SLAY"
	GibHealth 20
	DamageFactor GhostFriend, 		0
	DamageFactor NoDamage,	 		0
	DamageFactor DrainHealth,		0
	DamageFactor DrainMana, 		0
	DamageFactor DrainManaSpectre,	1
	PainChance DrainManaSpectre, 	255
	States
	{
	Spawn:
		SLAY A -1
		Loop
	See:
		SLAY ABCD 4 
		Loop
	Missile:
		SLAY E 12
		SLAY F 12 BRIGHT
		SLAY E 12 
		Goto Spawn
	Melee:
		SLAY A 0 BRIGHT
		Goto Missile
	Pain:
		SLAY Q 4 
		SLAY Q 4 A_Pain
		Goto Spawn
	Pain.DrainManaSpectre:
		SLAY Q 4 Acs_ExecuteAlways(791,0,15,0,0)
		SLAY Q 4 A_Pain
		Goto Spawn
	XDeath:
		RGIB A 10
		RGIB B 10 A_PlayerScream
		RGIB C 10 A_NoBlocking
		RGIB DEFG 10
		RGIB G -1
		Stop
	Death.DrainHealth:
	Death.DrainMana:
	Death:
		SLAY J 8 
		SLAY K 8 A_PlayerScream
		SLAY L 8 A_NoBlocking
		SLAY MNOP 8
		SLAY P -1
		Stop
	Death.DemonFire:
	Burn:
		BURN A 0 A_CustomMissile("Satanic_HellfireDeviceBoltSecondary",Random(0,64),0,Random(-360,360),0,0)
		BURN A 0 A_CustomMissile("Satanic_HellfireDeviceBoltSecondary",Random(0,64),0,Random(-360,360),0,0)
		BURN A 0 A_CustomMissile("Satanic_HellfireDeviceBoltSecondary",Random(0,64),0,Random(-360,360),0,0)
		BURN A 0 A_CustomMissile("Satanic_HellfireDeviceBoltSecondary",Random(0,64),0,Random(-360,360),0,0)
		BURN A 0 A_CustomMissile("Satanic_HellfireDeviceBoltSecondary",Random(0,64),0,Random(-360,360),0,0)
		BURN A 0 A_CustomMissile("Satanic_FireStarter",0,0,0,0)   
		BURN A 0 A_CustomMissile("Satanic_FireStarter",0,0,0,0)  
		BURN A 6 
		BURN B 6 A_PlayerScream
		BURN C 6 A_NoBlocking
		BURN DEFGHIJKLMN 6
		BURN N 6
		BURN O 6
		BURN P 6
		BURN Q 6
		BURN R 6
		BURN S 6
		BURN T 6
		BURN U 6
		BURN V 6
		BURN V -1
		Stop	
	}
}

Actor Satanic_Fear : CustomInventory
{
	Inventory.Amount		1
	Inventory.MaxAmount		1
	
	Inventory.PickupMessage	"Picked up a Book Of Shadows..."
		
	-INVBAR 
	
	States
	{
		Use:
				NULL A 0 DamageThing(50)
				NULL A 0 A_GiveInventory("Satanic_FearGiver",1)
				NULL A 0 A_PlaySoundEx("Satanic/MiscSounds/Fear","Weapon")
			Fail
	}
}

Actor Satanic_FearGiver : PowerupGiver
{
	Inventory.MaxAmount 1
	Powerup.Duration 875
	Powerup.Type "Frightener"
	
	+INVENTORY.AUTOACTIVATE
}


Actor Satanic_Reload : Inventory
{
	Inventory.MaxAmount 1
}

Actor Satanic_ShadowSummoned : Inventory
{
	Inventory.MaxAmount 1
}

Actor Satanic_ShadowSpawnerExists : Inventory
{
	Inventory.MaxAmount 1
}

Actor Satanic_ShieldsRaised : Inventory
{
	Inventory.MaxAmount 1
}


Actor Satanic_ReloadActive : CustomInventory
{
	Inventory.Amount 	1
	Inventory.MaxAmount 1
	-INVBAR 
   
	States
	{
		Use:
				NULL A 0 A_GiveInventory("Satanic_Reload",1)
			Fail
	}
}

Actor Satanic_ReloadCancel : CustomInventory
{
	Inventory.Amount 	1
	Inventory.MaxAmount 1
	-INVBAR 
   
	States
	{
		Use:
				NULL A 0 A_TakeInventory("Satanic_Reload",1)
			Fail
	}
}

Actor Satanic_SpectreAttackFlasher : CustomInventory
{
	Inventory.PickupMessage ""
	
	Inventory.Amount 1
	
	States
	{
		Pickup:
				NONE A 0 A_SetBlend("red",0.25,5)
			Stop
	}
	
}

Actor Satanic_VampiricFlasher : CustomInventory
{
	Inventory.PickupMessage ""
	
	Inventory.Amount 1
	
	States
	{
		Pickup:
				NONE A 0 A_PlaySound("Satanic/Weapons/Piece")
			Stop
	}
	
}

Actor Satanic_SoulFlasher : CustomInventory
{
	Inventory.PickupMessage ""
	
	Inventory.Amount 1
	
	States
	{
		Pickup:
				NONE A 0 A_PlaySound("Satanic/Weapons/Piece")
			Stop
	}
	
}

Actor Satanic_Shield : BasicArmorBonus
{
	Armor.MaxSaveAmount	200
	Armor.SavePercent	60
	Armor.SaveAmount	1
	
	Inventory.Icon		"SHLDA0"
	
	States
	{
		Spawn:
				NULL A -1
			Stop
	}
}