]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Wood walls from barricades (#33902)
authorJustinWinningham <justinmwinningham@gmail.com>
Sat, 21 Dec 2024 03:28:46 +0000 (19:28 -0800)
committerGitHub <noreply@github.com>
Sat, 21 Dec 2024 03:28:46 +0000 (04:28 +0100)
* Wood wall is now built from barricade congraph and on top of a barricade instead of using rods

* Fixed construction instructions for wooden wall

* Wood wall is now built from barricade congraph and on top of a barricade instead of using rods

* Fixed construction instructions for wooden wall

* fixed linter error

* Update Resources/Prototypes/Entities/Structures/Walls/walls.yml

Reasonable suggestion

Co-authored-by: Thomas <87614336+Aeshus@users.noreply.github.com>
* Update Resources/Prototypes/Entities/Structures/Walls/walls.yml

spelling error

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* removed ability to build wall from 'junk' wood barrier'

* fixed ability to pry overlay barricades and not allow them to extend to full wood walls

* renamed incorrectly named entity

* fixed default entity graph so as to not complain for unit tests

* corrected my incorrect assumptions and fixed destroy cost

---------

Co-authored-by: Thomas <87614336+Aeshus@users.noreply.github.com>
Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
Resources/Prototypes/Entities/Structures/Walls/walls.yml
Resources/Prototypes/Entities/Structures/barricades.yml
Resources/Prototypes/Recipes/Construction/Graphs/structures/barricades.yml
Resources/Prototypes/Recipes/Construction/Graphs/structures/girder.yml
Resources/Prototypes/Recipes/Construction/structures.yml

index 8cdd9e9e79580a2c56f14c85019781ac5c51a5ff..1e1bec0c1848b294a2cef6599ffea3a384d25083 100644 (file)
   parent: BaseWall
   id: WallWood
   name: wood wall
+  description: The traditional greytide defense.
   components:
   - type: Sprite
     sprite: Structures/Walls/wood.rsi
   - type: Icon
     sprite: Structures/Walls/wood.rsi
   - type: Construction
-    graph: Girder
+    graph: Barricade
     node: woodWall
   - type: Destructible
     thresholds:
         sound:
           collection: WoodDestroyHeavy
       - !type:ChangeConstructionNodeBehavior
-        node: girder
+        node: Barricade
       - !type:DoActsBehavior
         acts: ["Destruction"]
   - type: IconSmooth
index 7f697519cd6bcb7709ceec60316f49244678ee8d..cd6e6441763ba9f6bb680d000710989c5b4333ce 100644 (file)
@@ -38,8 +38,8 @@
       - !type:SpawnEntitiesBehavior
         spawn:
           MaterialWoodPlank1:
-            min: 3
-            max: 3
+            min: 1
+            max: 1
       - !type:DoActsBehavior
         acts: [ "Destruction" ]
   - type: AtmosExposed
@@ -73,6 +73,9 @@
   - type: Sprite
     sprite: Structures/barricades.rsi
     state: barricade
+  - type: Construction
+    graph: BarricadeCovering
+    node: barricadecover
 
 #Directional Barricade
 - type: entity
index 11d84ebbb7641c515e1c7d05b3a5ea4c95225a99..31492901258d01aad3b8432808eb6762a3aceea0 100644 (file)
           steps:
             - tool: Prying
               doAfter: 5
+        - to: woodWall
+          completed:
+            - !type:SnapToGrid
+              southRotation: true
+          steps:
+            - material: WoodPlank
+              amount: 2
+              doAfter: 2
+    - node: woodWall
+      entity: WallWood
+      edges:
+      - to: barricadefull
+        completed:
+        - !type:GivePrototype
+          prototype: MaterialWoodPlank1
+          amount: 2
+        steps:
+        - tool: Prying
+          doAfter: 10
 
 - type: constructionGraph
   id: BarricadeDirectional
           steps:
             - tool: Prying
               doAfter: 5
+
+- type: constructionGraph
+  id: BarricadeCovering
+  start: start
+  graph:
+    - node: start
+      edges:
+        - to: barricadecover
+          steps:
+            - material: WoodPlank
+              amount: 2
+              doAfter: 3
+    - node: barricadecover
+      entity: BarricadeBlock
+      edges:
+        - to: start
+          completed:
+            - !type:SpawnPrototype
+              prototype: MaterialWoodPlank1
+              amount: 2 #returns 1 less as one breaks
+            - !type:DeleteEntity { }
+          conditions:
+            - !type:EntityAnchored
+              anchored: true
+          steps:
+            - tool: Prying
+              doAfter: 2
index dcff7d6f5e4ac049ee8af7c543b4629f91805441..99525b653b74276a3325eaf2e1238befc1884cc5 100644 (file)
               amount: 2
               doAfter: 1
 
-        - to: woodWall
-          completed:
-            - !type:SnapToGrid
-              southRotation: true
-          conditions:
-            - !type:EntityAnchored {}
-          steps:
-            - material: WoodPlank
-              amount: 2
-              doAfter: 2
-
         - to: uraniumWall
           completed:
             - !type:SnapToGrid
             - tool: Welding
               doAfter: 10
 
-    - node: woodWall
-      entity: WallWood
-      edges:
-        - to: girder
-          completed:
-            - !type:GivePrototype
-              prototype: MaterialWoodPlank1
-              amount: 2
-          steps:
-            - tool: Prying
-              doAfter: 10
-
     - node: uraniumWall
       entity: WallUranium
       edges:
index 7781a1be88bea40dc5f454309793066ce02d5f0f..435524c8544eb6d6b54a9485f93dc8310db320b5 100644 (file)
   canBuildInImpassable: false
   conditions:
     - !type:TileNotBlocked
-# here
+
 - type: construction
   name: wood wall
   id: WoodWall
-  graph: Girder
+  graph: Barricade
   startNode: start
   targetNode: woodWall
   category: construction-category-structures