ACTOR SkullOrbHolderBase : SwitchingDecoration
{
  Height 56
  Radius 16
  +SOLID
}

ACTOR BlueSkullOrbHolder : SkullOrbHolderBase 11001
{
  States
  {
  Spawn:
    SOHB A -1
    Stop
  Active:
    SOHB B -1 Bright Light("BlueSkullOrbHolder")
    Stop
  }
}

ACTOR RedSkullOrbHolder : SkullOrbHolderBase 11002
{
  States
  {
  Spawn:
    SOHR A -1
    Stop
  Active:
    SOHR B -1 Bright Light("RedSkullOrbHolder")
    Stop
  }
}

ACTOR YellowSkullOrbHolder : SkullOrbHolderBase 11003
{
  States
  {
  Spawn:
    SOHY A -1
    Stop
  Active:
    SOHY B -1 Bright Light("YellowSkullOrbHolder")
    Stop
  }
}

//------------------------------------------------------------------------------

ACTOR SkullOrbBase : PuzzleItem { Inventory.UseSound "use/skullorb" }

ACTOR BlueSkullOrb : SkullOrbBase 11011
{
  Inventory.Icon "I_SKOBLU"
  Inventory.PickupMessage "Picked up a blue skull orb."
  PuzzleItem.Number 1
  Tag "Blue Skull Orb"
  States
  {
  Spawn:
    SKOB A -1 Bright Light("BlueSkullOrb")
    Stop
  }
}

ACTOR RedSkullOrb : SkullOrbBase 11012
{
  Inventory.Icon "I_SKORED"
  Inventory.PickupMessage "Picked up a red skull orb."
  PuzzleItem.Number 2
  Tag "Red Skull Orb"
  States
  {
  Spawn:
    SKOR A -1 Bright Light("RedSkullOrb")
    Stop
  }
}

ACTOR YellowSkullOrb : SkullOrbBase 11013
{
  Inventory.Icon "I_SKOYEL"
  Inventory.PickupMessage "Picked up a yellow skull orb."
  PuzzleItem.Number 3
  Tag "Yellow Skull Orb"
  States
  {
  Spawn:
    SKOY A -1 Bright Light("YellowSkullOrb")
    Stop
  }
}

Actor PlasmaPistol : Weapon
{
  Weapon.SlotNumber 2
  Weapon.AmmoUse 1
  Weapon.AmmoGive 10
  Weapon.AmmoType "Cell"
  Inventory.PickupMessage "You got a Plasma Pistol!"
  obituary "%o was melted by %k's Plasma Pistol"
  states
  {
  Spawn:
    PLPS A -1
    loop
  Ready:
    PLPI A 1 A_WeaponReady
    loop
  Deselect:
    PLPI A 1 A_Lower
    loop
  Select:
    PLPI A 1 A_Raise
    loop
  Fire:
    PLPI A 0
    PLPI B 3
    PLPI C 3 A_FireCustomMissile("PlasmaBall")
    PLPI A 8
    BLAG B 0 A_ReFire
    goto Ready
  }
}