# SPDX-FileCopyrightText: 2024 chromiumboy <50505512+chromiumboy@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

- type: constructionGraph
  id: GasPipeSensor
  start: start
  graph:
  - node: start
    edges:
    - to: sensor
      steps:
      - material: Steel
        amount: 2
        doAfter: 1

    - to: sensorAlt1
      steps:
      - material: Steel
        amount: 2
        doAfter: 1

    - to: sensorAlt2
      steps:
      - material: Steel
        amount: 2
        doAfter: 1

  - node: sensor
    entity: GasPipeSensor
    actions:
    - !type:SetAnchor
    edges:
    - to: start
      completed:
      - !type:SpawnPrototype
        prototype: SheetSteel1
        amount: 2
      - !type:DeleteEntity
      conditions:
      - !type:EntityAnchored
        anchored: false
      steps:
      - tool: Welding
        doAfter: 1

  - node: sensorAlt1
    entity: GasPipeSensorAlt1
    actions:
      - !type:SetAnchor
    edges:
      - to: start
        completed:
          - !type:SpawnPrototype
            prototype: SheetSteel1
            amount: 2
          - !type:DeleteEntity
        conditions:
          - !type:EntityAnchored
            anchored: false
        steps:
          - tool: Welding
            doAfter: 1

  - node: sensorAlt2
    entity: GasPipeSensorAlt2
    actions:
      - !type:SetAnchor
    edges:
      - to: start
        completed:
          - !type:SpawnPrototype
            prototype: SheetSteel1
            amount: 2
          - !type:DeleteEntity
        conditions:
          - !type:EntityAnchored
            anchored: false
        steps:
          - tool: Welding
            doAfter: 1
