# SPDX-FileCopyrightText: 2022 Fishfish458 <47410468+Fishfish458@users.noreply.github.com>
# SPDX-FileCopyrightText: 2022 fishfish458 <fishfish458>
# SPDX-FileCopyrightText: 2024 Vasilis <vasilis@pikachu.systems>
# SPDX-FileCopyrightText: 2024 Velcroboy <107660393+IamVelcroboy@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Velcroboy <velcroboy333@hotmail.com>
# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

- type: constructionGraph
  id: PlasticFlapsGraph
  start: start
  graph:
  - node: start
    actions:
      - !type:DestroyEntity {}
    edges:
      - to: plasticFlaps
        completed:
          - !type:SnapToGrid { }
        steps:
          - material: Plastic
            amount: 5
            doAfter: 10

  - node: plasticFlaps
    entity: PlasticFlapsClear
    edges:
      - to: start
        completed:
          - !type:SpawnPrototype
            prototype: SheetPlastic
            amount: 5
        steps:
          - tool: Anchoring
            doAfter: 10

      - to: opaqueFlaps
        completed:
          - !type:SnapToGrid { }
        steps:
          - tool: Welding
            doAfter: 5

  - node: opaqueFlaps
    entity: PlasticFlapsOpaque
    edges:
      - to: start
        completed:
          - !type:SpawnPrototype
            prototype: SheetPlastic
            amount: 5
        steps:
          - tool: Anchoring
            doAfter: 10