- type: entity
  id: WallLight
  name: unpowered light
  description: "An unpowered light."
  components:
  - type: Clickable
  - type: InteractionOutline
  - type: Construction
    graph: lightFixture
    node: tubeLight
  - type: Physics
    canCollide: false
    fixtures:
    - shape:
        !type:PhysShapeAabb
          bounds: "-0.45, -0.15, 0.45, 0.35"
      layer: [ Passable ]
  - type: LoopingSound
  - type: Sprite
    sprite: Constructible/Lighting/light_tube.rsi
    layers:
    - state: on
      map: ["enum.PoweredLightLayers.Base"]
    state: on
  - type: PointLight
    radius: 8
    energy: 1.2
    offset: "0, -0.5"
    color: "#DCDCC6"
  - type: SignalReceiver
  - type: Damageable
    resistances: metallicResistances
  - type: Destructible
    thresholds:
    - trigger:
        !type:DamageTrigger
        damage: 50
      behaviors:
      - !type:EmptyAllContainersBehaviour
      - !type:SpawnEntitiesBehavior
        spawn:
          SheetSteel1:
            min: 2
            max: 2
      - !type:DoActsBehavior
        acts: ["Destruction"]
  placement:
    snap:
    - Wallmount

- type: entity
  name: light
  description: "A powered wall light emitting... light."
  id: Poweredlight
  parent: WallLight
  components:
  - type: Sprite
    sprite: Constructible/Lighting/light_tube.rsi
    state: off
  - type: PointLight
    enabled: false
  - type: PoweredLight
    bulb: Tube
  - type: PowerReceiver
  - type: Appearance
    visuals:
    - type: PoweredLightVisualizer
      blinkingSound: "/Audio/Machines/light_tube_on.ogg"

- type: entity
  id: PoweredlightEmpty
  description: "A wall light. It's empty."
  suffix: Empty
  parent: Poweredlight
  components:
  - type: Sprite
    state: empty
  - type: PoweredLight
    hasLampOnSpawn: False

- type: entity
  name: unpowered small light
  description: "An unpowered light."
  id: SmallLight
  parent: WallLight
  components:
    - type: Sprite
      sprite: Constructible/Lighting/light_small.rsi
      state: on
    - type: PointLight
      energy: 1.0
      enabled: true
      offset: "0, -0.5"
    - type: Damageable
    - type: Destructible
      thresholds:
      - trigger:
          !type:DamageTrigger
          damage: 25
        behaviors:
        - !type:EmptyAllContainersBehaviour
        - !type:SpawnEntitiesBehavior
          spawn:
            SheetSteel1:
              min: 1
              max: 1
        - !type:DoActsBehavior
          acts: ["Destruction"]
    - type: Construction
      graph: lightFixture
      node: bulbLight

- type: entity
  name: small light
  description: "A powered wall light emitting... light."
  id: PoweredSmallLight
  parent: SmallLight
  components:
  - type: Sprite
    sprite: Constructible/Lighting/light_small.rsi
    state: off
  - type: PointLight
    energy: 1.0
    enabled: false
    offset: "0, -0.5"
  - type: Physics
    fixtures:
    - shape:
        !type:PhysShapeAabb
          bounds: "0, 0, 0.25, 0.1"
      layer: [ Passable ]
  - type: PoweredLight
    bulb: Bulb
  - type: PowerReceiver
  - type: Appearance
    visuals:
    - type: PoweredLightVisualizer

- type: entity
  id: PoweredSmallLightEmpty
  suffix: Empty
  parent: PoweredSmallLight
  components:
  - type: Sprite
    state: empty
  - type: PoweredLight
    hasLampOnSpawn: False
