// Powerup Spawners

ACTOR PowerupSpawner1 : RandomSpawner
{
	DropItem "IDMDoomSphere", 255, 30
	DropItem "IDMGuardSphere", 255, 30
	DropItem "IDMMegaSphere", 255, 30
	DropItem "StrengthSphere", 255, 30
	DropItem "IDMSoulSphere", 255, 20
	DropItem "ResistSphere", 255, 10
	DropItem "ResistSphere2", 255, 10
	DropItem "ResistSphere3", 255, 10
	DropItem "RegenSphere", 255, 20
	DropItem "HasteSphere", 255, 20
	DropItem "ReflectSphere", 255, 20
	DropItem "ProsperitySphere", 255, 20
	DropItem "RageSphere", 255, 20
	DropItem "SpreadSphere", 255, 20
	DropItem "DrainSphere", 255, 20
	DropItem "IDMTimeFreeze", 255, 1
	DropItem "OKSphere", 255, 1
}

ACTOR PowerupSpawner2 : RandomSpawner
{
	DropItem "IDMDoomSphere", 255, 30
	DropItem "IDMGuardSphere", 255, 30
	DropItem "IDMMegaSphere", 255, 30
	DropItem "StrengthSphere", 255, 30
	DropItem "IDMSoulSphere", 255, 20
	DropItem "ResistSphere", 255, 10
	DropItem "ResistSphere2", 255, 10
	DropItem "ResistSphere3", 255, 10
	DropItem "RegenSphere", 255, 20
	DropItem "HasteSphere", 255, 20
	DropItem "ReflectSphere", 255, 20
	DropItem "ProsperitySphere", 255, 20
	DropItem "RageSphere", 255, 20
	DropItem "SpreadSphere", 255, 20
	DropItem "DrainSphere", 255, 20
	DropItem "IDMTimeFreeze", 255, 1
	DropItem "OKSphere", 255, 1
}

ACTOR PowerupSpawner3 : RandomSpawner
{
	DropItem "IDMDoomSphere"
	DropItem "IDMGuardSphere"
	DropItem "IDMMegaSphere"
	DropItem "StrengthSphere"
	DropItem "IDMSoulSphere"
	DropItem "ResistSphere"
	DropItem "ResistSphere2"
	DropItem "ResistSphere3"
	DropItem "RegenSphere"
	DropItem "HasteSphere"
	DropItem "ReflectSphere"
	DropItem "ProsperitySphere"
	DropItem "RageSphere"
	DropItem "SpreadSphere"
	DropItem "DrainSphere"
}

ACTOR PowerupSpawner4 : RandomSpawner
{
	DropItem "IDMDoomSphere", 255, 30
	DropItem "IDMGuardSphere", 255, 30
	DropItem "IDMMegaSphere", 255, 30
	DropItem "StrengthSphere", 255, 30
	DropItem "IDMSoulSphere", 255, 20
	DropItem "ResistSphere", 255, 10
	DropItem "ResistSphere2", 255, 10
	DropItem "ResistSphere3", 255, 10
	DropItem "RegenSphere", 255, 20
	DropItem "HasteSphere", 255, 20
	DropItem "ReflectSphere", 255, 20
	DropItem "ProsperitySphere", 255, 20
	DropItem "RageSphere", 255, 20
	DropItem "SpreadSphere", 255, 20
	DropItem "DrainSphere", 255, 20
	DropItem "IDMTimeFreeze", 255, 1
}

ACTOR PowerupSpawner5 : RandomSpawner
{
	DropItem "IDMDoomSphere", 255, 30
	DropItem "IDMGuardSphere", 255, 30
	DropItem "IDMMegaSphere", 255, 30
	DropItem "StrengthSphere", 255, 30
	DropItem "IDMSoulSphere", 255, 20
	DropItem "ResistSphere", 255, 10
	DropItem "ResistSphere2", 255, 10
	DropItem "ResistSphere3", 255, 10
	DropItem "RegenSphere", 255, 20
	DropItem "HasteSphere", 255, 20
	DropItem "ReflectSphere", 255, 20
	DropItem "ProsperitySphere", 255, 20
	DropItem "RageSphere", 255, 20
	DropItem "SpreadSphere", 255, 20
	DropItem "DrainSphere", 255, 20
	DropItem "IDMTimeFreeze", 255, 1
	DropItem "OKSphere", 255, 1
}

ACTOR PowerupSpawner6 : RandomSpawner
{
	DropItem "RageSphere"
	DropItem "IDMTimeFreeze"
}

ACTOR PowerupSpawner7 : RandomSpawner
{
	DropItem "IDMDoomSphere", 255, 30
	DropItem "IDMGuardSphere", 255, 30
	DropItem "IDMMegaSphere", 255, 30
	DropItem "StrengthSphere", 255, 30
	DropItem "IDMSoulSphere", 255, 20
	DropItem "ResistSphere", 255, 10
	DropItem "ResistSphere2", 255, 10
	DropItem "ResistSphere3", 255, 10
	DropItem "RegenSphere", 255, 20
	DropItem "HasteSphere", 255, 20
	DropItem "ReflectSphere", 255, 20
	DropItem "ProsperitySphere", 255, 20
	DropItem "RageSphere", 255, 20
	DropItem "SpreadSphere", 255, 20
	DropItem "DrainSphere", 255, 20
	DropItem "IDMTimeFreeze", 255, 1
	DropItem "OKSphere", 255, 1
}

ACTOR PowerupSpawner8 : RandomSpawner
{
	DropItem "IDMDoomSphere"
	DropItem "RageSphere"
	DropItem "IDMSoulSphere"
	DropItem "IDMMegaSphere"
	DropItem "ResistSphere"
	DropItem "ResistSphere2"
	DropItem "ResistSphere3"
	DropItem "RegenSphere"
	DropItem "HasteSphere"
	DropItem "ReflectSphere"
	DropItem "IDMGuardSphere"
	DropItem "StrengthSphere"
	DropItem "ProsperitySphere"
	DropItem "SpreadSphere"
	DropItem "DrainSphere"
}

ACTOR PowerupSpawner9 : RandomSpawner
{
	DropItem "ResistSphere"
	DropItem "ResistSphere2"
	DropItem "ResistSphere3"
}


ACTOR PowerupSpawnActor1 : CustomInventory replaces Chainsaw
{
	Tag "Powerup Spawner 1"
    //$Category Powerups
    //$Sprite CSAWA0
	+NOBLOCKMAP
	+NOGRAVITY
	States
	{
	Spawn:
	  TNT1 A 0
	  TNT1 A 0
	  TNT1 A 0 A_JumpIf(CallACS("BladeModeSpawn") == 666,"Nothing")
	  TNT1 A 1 A_SpawnItemEx("PowerupSpawner1")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	}
}

ACTOR PowerupSpawnActor2 : CustomInventory replaces Blursphere
{
	Tag "Powerup Spawner 2"
    //$Category Powerups
    //$Sprite PINSA0
	+NOBLOCKMAP
	+NOGRAVITY
	States
	{
	Spawn:
	  TNT1 A 0
	  TNT1 A 1 A_JumpIf(CallACS("BladeModeSpawn") == 666,"Nothing")
	  TNT1 A 1 A_SpawnItemEx("PowerupSpawner2")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	}
}

ACTOR PowerupSpawnActor3 : CustomInventory replaces Infrared
{
	Tag "Powerup Spawner 3"
    //$Category Powerups
    //$Sprite PVISA0
	+NOBLOCKMAP
	+NOGRAVITY
	States
	{
	Spawn:
	  TNT1 A 0
	  TNT1 A 1 A_JumpIf(CallACS("BladeModeSpawn") == 666,"Nothing")
	  TNT1 A 1 A_SpawnItemEx("PowerupSpawner3")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	}
}

ACTOR PowerupSpawnActor4 : CustomInventory replaces Soulsphere
{
	Tag "Powerup Spawner 4"
    //$Category Powerups
    //$Sprite SOULA0
	+NOBLOCKMAP
	+NOGRAVITY
	States
	{
	Spawn:
	  TNT1 A 0
	  TNT1 A 1 A_JumpIf(CallACS("BladeModeSpawn") == 666,"Nothing")
	  TNT1 A 1 A_SpawnItemEx("PowerupSpawner4")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	}
}

ACTOR PowerupSpawnActor5 : CustomInventory replaces Megasphere
{
	Tag "Powerup Spawner 5"
    //$Category Powerups
    //$Sprite MEGAA0
	+NOBLOCKMAP
	+NOGRAVITY
	States
	{
	Spawn:
	  TNT1 A 0
	  TNT1 A 1 A_JumpIf(CallACS("BladeModeSpawn") == 666,"Nothing")
	  TNT1 A 1 A_SpawnItemEx("PowerupSpawner5")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	}
}

ACTOR PowerupSpawnActor6 : CustomInventory replaces InvulnerabilitySphere
{
	Tag "Powerup Spawner 6"
    //$Category Powerups
    //$Sprite PINVA0
	+NOBLOCKMAP
	+NOGRAVITY
	States
	{
	Spawn:
	  TNT1 A 0
	  TNT1 A 1 A_JumpIf(CallACS("BladeModeSpawn") == 666,"Nothing")
	  TNT1 A 1 A_SpawnItemEx("PowerupSpawner6")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	}
}

ACTOR PowerupSpawnActor7 : CustomInventory replaces Berserk
{
	Tag "Powerup Spawner 7"
    //$Category Powerups
    //$Sprite PSTRA0
	+NOBLOCKMAP
	+NOGRAVITY
	States
	{
	Spawn:
	  TNT1 A 0
	  TNT1 A 1 A_JumpIf(CallACS("BladeModeSpawn") == 666,"Nothing")
	  TNT1 A 1 A_SpawnItemEx("PowerupSpawner7")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	}
}

ACTOR PowerupSpawnActor8 : CustomInventory replaces Allmap
{
	Tag "Powerup Spawner 8"
    //$Category Powerups
    //$Sprite PMAPA0
	+NOBLOCKMAP
	+NOGRAVITY
	States
	{
	Spawn:
	  TNT1 A 0
	  TNT1 A 1 A_JumpIf(CallACS("BladeModeSpawn") == 666,"Nothing")
	  TNT1 A 1 A_SpawnItemEx("PowerupSpawner8")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	}
}

ACTOR PowerupSpawnActor9 : CustomInventory replaces Radsuit
{
	Tag "Powerup Spawner 9"
    //$Category Powerups
    //$Sprite SUITA0
	+NOBLOCKMAP
	+NOGRAVITY
	States
	{
	Spawn:
	  TNT1 A 0
	  TNT1 A 1 A_JumpIf(CallACS("BladeModeSpawn") == 666,"Nothing")
	  TNT1 A 1 A_SpawnItemEx("PowerupSpawner9")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	}
}