Refactor stacks to use prototypes (#3387)

* Refactor stacks to use prototypes

* Fix not assigned warning

* Add names to stacks

* Make machine baords and material constructions use the name as well

* Remove defaulting stacks to prototype id

* Fix tests

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
DrSmugleaf
2021-02-25 06:18:29 +01:00
committed by GitHub
parent 7c32574547
commit fdcbece63d
33 changed files with 326 additions and 186 deletions

View File

@@ -6,7 +6,7 @@
edges:
- to: apc
steps:
- material: Metal
- material: Steel
amount: 3
- node: apc

View File

@@ -9,7 +9,7 @@
- !type:SetAnchor
value: false
steps:
- material: Metal
- material: Steel
amount: 5
- node: frameUnsecured

View File

@@ -45,7 +45,7 @@
completed:
- !type:SnapToGrid {}
steps:
- material: Metal
- material: Steel
amount: 2
doAfter: 1
- node: lever

View File

@@ -8,7 +8,7 @@
completed:
- !type:SnapToGrid { }
steps:
- material: Metal
- material: Steel
amount: 3
doAfter: 1

View File

@@ -9,7 +9,7 @@
- !type:SnapToGrid
southRotation: true
steps:
- material: Metal
- material: Steel
amount: 2
doAfter: 1
@@ -41,7 +41,7 @@
conditions:
- !type:EntityAnchored {}
steps:
- material: Metal
- material: Steel
amount: 2
- to: reinforcedGirder

View File

@@ -6,12 +6,12 @@
edges:
- to: bulbLight
steps:
- material: Metal
- material: Steel
amount: 1
doAfter: 2.0
doAfter: 2.0
- to: tubeLight
steps:
- material: Metal
- material: Steel
amount: 2
doAfter: 2.0
- node: tubeLight
@@ -28,7 +28,7 @@
- !type:SpawnPrototype
prototype: SteelSheet1
amount: 2
- !type:DeleteEntity {}
- !type:DeleteEntity {}
- node: bulbLight
entity: PoweredSmallLightEmpty
edges:

View File

@@ -15,7 +15,7 @@
edges:
- to: lowWall
steps:
- material: Metal
- material: Steel
amount: 3
doAfter: 5

View File

@@ -13,7 +13,7 @@
- !type:SetAnchor
value: false
steps:
- material: Metal
- material: Steel
amount: 5
doAfter: 2.5

View File

@@ -9,7 +9,7 @@
- !type:SetStackCount
amount: 2
steps:
- material: Metal
- material: Steel
amount: 1
- node: MetalRod

View File

@@ -6,7 +6,7 @@
edges:
- to: spear
steps:
- material: Metal
- material: Steel
amount: 2
doAfter: 2
- material: Glass

View File

@@ -31,7 +31,7 @@
- to: MetalTable
steps:
- material: Metal
- material: Steel
amount: 1
doAfter: 1

View File

@@ -8,7 +8,7 @@
completed:
- !type:SnapToGrid { }
steps:
- material: Metal
- material: Steel
amount: 5
doAfter: 1
- node: toilet
@@ -18,12 +18,12 @@
- !type:SpawnPrototype
prototype: SteelSheet1
amount: 5
- !type:EmptyAllContainers {}
- !type:EmptyAllContainers {}
- !type:DeleteEntity {}
conditions:
- !type:EntityAnchored
anchored: false
- !type:ToiletLidClosed {}
- !type:ToiletLidClosed {}
steps:
- tool: Welding
doAfter: 2
doAfter: 2

View File

@@ -6,7 +6,7 @@
edges:
- to: plasmaWindow
steps:
- material: Metal
- material: Steel
amount: 2
doAfter: 2
- material: Glass