- type: entity
  parent: RMCBaseWindowFrame
  id: RMCWindowFrameSolaris
  components:
  - type: Sprite
    sprite: _RMC14/Structures/Windows/Frames/solaris_frame.rsi
    state: solaris_frame0
  - type: Icon
    sprite: _RMC14/Structures/Windows/Frames/solaris_frame.rsi
    state: solaris_frame0
  - type: IconSmooth
    key: windows
    additionalKeys:
    - doors
    base: solaris_frame
    mode: CardinalFlags
  - type: Construction
    graph: RMCWindowSolaris
    node: windowFrameSolaris

- type: entity
  parent: RMCWindowFrameColonyReinforced
  id: RMCWindowFrameSolarisReinforced
  components:
  - type: Sprite
    sprite: _RMC14/Structures/Windows/Frames/solaris_rframe.rsi
    state: solaris_rframe0
  - type: Icon
    sprite: _RMC14/Structures/Windows/Frames/solaris_rframe.rsi
    state: solaris_rframe0
  - type: IconSmooth
    key: windows
    additionalKeys:
    - doors
    base: solaris_rframe
    mode: CardinalFlags
  - type: Construction
    graph: RMCWindowSolarisReinforced
    node: windowFrameSolarisReinforced

- type: entity
  parent: CMBaseWindow
  id: CMWindowSolaris
  name: window
  description: A glass window inside a wall frame.
  components:
  - type: Sprite
    sprite: _RMC14/Structures/Windows/solaris_window.rsi
    state: solaris_window0
  - type: Icon
    sprite: _RMC14/Structures/Windows/solaris_window.rsi
    state: solaris_window0
  - type: IconSmooth
    key: windows
    additionalKeys:
    - doors
    base: solaris_window
    mode: CardinalFlags
  - type: Repairable
  - type: Destructible
    thresholds:
      - trigger:
          !type:DamageTrigger
          damage: 600 # excessive damage destroys window and frame
        behaviors:
          - !type:PlaySoundBehavior
            sound:
              collection: WindowShatter
          - !type:DoActsBehavior
            acts: ["Destruction"]
      - trigger:
          !type:DamageTrigger
          damage: 40
        behaviors:
          - !type:PlaySoundBehavior
            sound:
              collection: WindowShatter
          - !type:SpawnEntitiesBehavior
            spawn:
              CMShardGlass:
                min: 1
                max: 1
          - !type:ChangeConstructionNodeBehavior
            node: windowFrameSolaris
  - type: RMCWallExplosionDeletable
  - type: DestroyedByExplosionType
  - type: Construction
    graph: RMCWindowSolaris
    node: windowSolaris
  - type: DestroyOnXenoPierceScissor
    spawnPrototype: RMCWindowFrameSolaris
    sound:
      collection: WindowShatter

- type: entity
  parent: CMBaseWindow
  id: CMWindowSolarisReinforced
  name: reinforced window
  description: A glass window. The inside is reinforced with a few tempered matrix rods along the base. It looks rather strong. Might take a few good hits to shatter it.
  components:
  - type: Sprite
    sprite: _RMC14/Structures/Windows/solaris_rwindow.rsi
    state: solaris_rwindow0
  - type: Icon
    sprite: _RMC14/Structures/Windows/solaris_rwindow.rsi
    state: solaris_rwindow0
  - type: IconSmooth
    key: windows
    additionalKeys:
    - doors
    base: solaris_rwindow
    mode: CardinalFlags
  - type: Repairable
  - type: Destructible
    thresholds:
      - trigger:
          !type:DamageTrigger
          damage: 600 # excessive damage destroys window and frame
        behaviors:
          - !type:PlaySoundBehavior
            sound:
              collection: WindowShatter
          - !type:DoActsBehavior
            acts: ["Destruction"]
      - trigger:
          !type:DamageTrigger
          damage: 100
        behaviors:
          - !type:PlaySoundBehavior
            sound:
              collection: WindowShatter
          - !type:SpawnEntitiesBehavior
            spawn:
              CMShardGlass:
                min: 1
                max: 1
              CMRodMetal:
                min: 1
                max: 1
          - !type:ChangeConstructionNodeBehavior
            node: windowFrameSolarisReinforced
  - type: RMCWallExplosionDeletable
  - type: DestroyedByExplosionType
  - type: Construction
    graph: RMCWindowSolarisReinforced
    node: windowSolarisReinforced
  - type: DestroyOnXenoPierceScissor
    spawnPrototype: RMCWindowFrameSolarisReinforced
    sound:
      collection: WindowShatter

- type: entity
  parent: CMBaseWindowIndestructible
  id: CMWindowSolarisHull
  name: hull window
  description: A glass window. Something tells you this one is somehow indestructible.
  components:
  - type: Corrodible
    isCorrodible: false
  - type: Sprite
    sprite: _RMC14/Structures/Windows/solaris_rwindow.rsi
    state: solaris_rwindow0
  - type: Icon
    sprite: _RMC14/Structures/Windows/solaris_rwindow.rsi
    state: solaris_rwindow0
  - type: IconSmooth
    key: windows
    additionalKeys:
    - doors
    base: solaris_rwindow
    mode: CardinalFlags

