
ACTOR RLBossBrainArsenal : BossBrain replaces BossBrain
{
  Health 500
  Mass 0x7fffffff
  PainChance 256
  +SOLID
  +SHOOTABLE
  +NOICEDEATH
  +OLDRADIUSDMG
  Species "RLIconOfSin"
  States
  {
  Spawn:
    BBRN A 10 A_JumpIfInventory ("RLIconofSinDestructionator", 1, "Instakilled")
    Loop
  Pain:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_MonsterQuake") == 0, 2)
    TNT1 A 0 A_Quake (1, 36, 0, 4096, "")
    TNT1 A 0 A_Jump (256, "PainFrame")
	Goto PainFrame
  PainFrame:
    BBRN B 36 A_PlaySound ("brain/pain", CHAN_VOICE, 1, 0, 0.1)
    Goto Spawn
	
  Instakilled:
	TNT1 A 0 A_Die
  Death:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_MonsterQuake") == 0, 2)
    TNT1 A 0 A_Quake (9, 120, 0, 4096, "")
    TNT1 A 0 A_PlaySound ("brain/death", CHAN_VOICE, 1, 0, 0.1)
    BBRN B 88
	TNT1 A 0 ACS_NamedExecuteAlways ("DRLA_EndGameDestinationArsenal", 0) // This will send you to other levels instead of finishing the game
    BBRN B 2
    BBRN B -1 A_BrainDie
    Stop
  }
}

ACTOR RLIconofSinDestructionator : Powerup
{
	Powerup.Duration -5
}