]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Four-way pipe junction, swapping junction construction fix (#37092)
authorK-Dynamic <20566341+K-Dynamic@users.noreply.github.com>
Wed, 7 May 2025 11:37:59 +0000 (23:37 +1200)
committerGitHub <noreply@github.com>
Wed, 7 May 2025 11:37:59 +0000 (13:37 +0200)
* pipe x-junction assets, yml, construction

* remove duplicate asset

* attribution

* x junction instead of junctioncross for utilities.yml

Resources/Prototypes/Entities/Structures/Piping/Disposal/pipes.yml
Resources/Prototypes/Recipes/Construction/Graphs/utilities/disposal_pipes.yml
Resources/Prototypes/Recipes/Construction/utilities.yml
Resources/Textures/Structures/Piping/disposal.rsi/conpipe-x.png [new file with mode: 0644]
Resources/Textures/Structures/Piping/disposal.rsi/meta.json
Resources/Textures/Structures/Piping/disposal.rsi/pipe-u.png [deleted file]
Resources/Textures/Structures/Piping/disposal.rsi/pipe-x.png [new file with mode: 0644]
Resources/Textures/Structures/Piping/disposal.rsi/pipe-xf.png [new file with mode: 0644]

index d6d5454384a58309a27cf7e4233915020177fb77..bb7b08cc2cdc04beaea4e19e9639bf5613f0a776 100644 (file)
         mask:
         - SubfloorMask
   - type: Construction
+    graph: DisposalPipe
     node: junctionflipped
     containers:
     - DisposalJunction
     containers:
     - DisposalJunction
 
+- type: entity
+  id: DisposalXJunction
+  parent: DisposalPipeBase
+  name: disposal x-junction
+  description: A four-way junction. The arrow indicates where items exit.
+  components:
+  - type: Sprite
+    layers:
+    - map: [ "pipe" ]
+      state: conpipe-x
+    visible: true
+  - type: DisposalTube
+    containerId: DisposalJunction
+  - type: DisposalJunction
+    degrees:
+    - 0
+    - -90
+    - 180
+    - 90
+  - type: ContainerContainer
+    containers:
+      DisposalJunction: !type:Container
+  - type: GenericVisualizer
+    visuals:
+      enum.DisposalTubeVisuals.VisualState:
+        pipe:
+          Free: { state: conpipe-x }
+          Anchored: { state: pipe-x }
+  - type: Fixtures
+    fixtures:
+      fix1:
+        shape:
+          !type:PhysShapeAabb
+          bounds: "-0.5,-0.5,0.5,0.5"
+        mask:
+        - SubfloorMask
+  - type: Construction
+    graph: DisposalPipe
+    node: xJunction
+    containers:
+    - DisposalJunction
+
 - type: entity
   id: DisposalBend
   parent: DisposalPipeBase
index 1b3aa3105bfab85342ff64b1f47133782c9845bb..41ec858a1a35b0fa9f43ba117a136b1a80944431 100644 (file)
       - material: Steel
         amount: 2
         doAfter: 1
+    - to: xJunction
+      steps:
+      - material: Steel
+        amount: 2
+        doAfter: 1
     - to: bend
       steps:
       - material: Steel
       steps:
       - tool: Screwing
         doAfter: 1
-  - node: junctionflipped
-    entity: DisposalJunctionFlipped
+  - node: yJunction
+    entity: DisposalYJunction
     edges:
     - to: start
       completed:
       steps:
       - tool: Welding
         doAfter: 1
-    - to: yJunction
+    - to: junctionflipped
       steps:
       - tool: Screwing
         doAfter: 1
-  - node: yJunction
-    entity: DisposalYJunction
+  - node: junctionflipped
+    entity: DisposalJunctionFlipped
     edges:
     - to: start
       completed:
       steps:
       - tool: Welding
         doAfter: 1
-    - to: junction
+    - to: xJunction
       steps:
       - tool: Screwing
         doAfter: 1
-    - to: junctionflipped
+  - node: xJunction
+    entity: DisposalXJunction
+    edges:
+    - to: start
+      completed:
+      - !type:SpawnPrototype
+        prototype: SheetSteel1
+        amount: 2
+      - !type:DeleteEntity
+      steps:
+      - tool: Welding
+        doAfter: 1
+    - to: junction
       steps:
       - tool: Screwing
         doAfter: 1
+  # DisposalBend
   - node: bend
     entity: DisposalBend
     edges:
index 680bc4e36bdde21cf54dbffc7f8541314473f99e..0feffe998d5433d642d4804b0d969792a37ceb79 100644 (file)
   placementMode: SnapgridCenter
   canBuildInImpassable: false
 
+- type: construction
+  id: DisposalXJunction
+  graph: DisposalPipe
+  startNode: start
+  targetNode: xJunction
+  category: construction-category-utilities
+  placementMode: SnapgridCenter
+  canBuildInImpassable: false
+
 - type: construction
   id: DisposalBend
   graph: DisposalPipe
diff --git a/Resources/Textures/Structures/Piping/disposal.rsi/conpipe-x.png b/Resources/Textures/Structures/Piping/disposal.rsi/conpipe-x.png
new file mode 100644 (file)
index 0000000..bd67ab4
Binary files /dev/null and b/Resources/Textures/Structures/Piping/disposal.rsi/conpipe-x.png differ
index fab3d5249f363cd8d6f6dcfa81887aa781aa3971..7fce39e69473107fa1aa5cc96df8dfaa9a444a4a 100644 (file)
@@ -5,7 +5,7 @@
         "y": 32
     },
     "license": "CC-BY-SA-3.0",
-    "copyright": "https://github.com/discordia-space/CEV-Eris/blob/bbe32606902c90f5290b57d905a3f31b84dc6d7d/icons/obj/pipes/disposal.dmi and modified by DrSmugleaf. Signal router sprites based on normal router modified by deltanedas (github). disposal bins by EmoGarbage404 (github)",
+    "copyright": "https://github.com/discordia-space/CEV-Eris/blob/bbe32606902c90f5290b57d905a3f31b84dc6d7d/icons/obj/pipes/disposal.dmi and modified by DrSmugleaf. Signal router sprites based on normal router modified by deltanedas (github). disposal bins by EmoGarbage404 (github). pipe-x pipe-xf, conpipe-x by K-Dynamic (github).",
     "states": [
         {
             "name": "condisposal",
             "name": "conpipe-j2s",
             "directions": 4
         },
+        {
+            "name": "conpipe-x",
+            "directions": 4
+        },
         {
             "name": "conpipe-s",
             "directions": 4
             "name": "pipe-j2sf",
             "directions": 4
         },
+        {
+            "name": "pipe-x",
+            "directions": 4
+        },
+        {
+            "name": "pipe-xf",
+            "directions": 4
+        },
         {
             "name": "pipe-s",
             "directions": 4
             "name": "pipe-tf",
             "directions": 4
         },
-        {
-            "name": "pipe-u",
-            "directions": 4
-        },
         {
             "name": "pipe-y",
             "directions": 4
diff --git a/Resources/Textures/Structures/Piping/disposal.rsi/pipe-u.png b/Resources/Textures/Structures/Piping/disposal.rsi/pipe-u.png
deleted file mode 100644 (file)
index 021d067..0000000
Binary files a/Resources/Textures/Structures/Piping/disposal.rsi/pipe-u.png and /dev/null differ
diff --git a/Resources/Textures/Structures/Piping/disposal.rsi/pipe-x.png b/Resources/Textures/Structures/Piping/disposal.rsi/pipe-x.png
new file mode 100644 (file)
index 0000000..0f5085c
Binary files /dev/null and b/Resources/Textures/Structures/Piping/disposal.rsi/pipe-x.png differ
diff --git a/Resources/Textures/Structures/Piping/disposal.rsi/pipe-xf.png b/Resources/Textures/Structures/Piping/disposal.rsi/pipe-xf.png
new file mode 100644 (file)
index 0000000..c590b89
Binary files /dev/null and b/Resources/Textures/Structures/Piping/disposal.rsi/pipe-xf.png differ