Substations now explode when destroyed (#5729)

* Substation destructible component

Substations now explode and create a destroyed machine which can be deconstructed.

* construction graph test failed

Does not need a path from start to finish but adding anyway to fix tests

* railing to structures

* Fixed Review

Updated parent to fix most comments.
Updated node to camelcase

* Updated target node graph

Still recovering...

* Final fix of graph

I swear

* Altered destroyed machine spawns

Removed HV cable and reduced steel sheets.
This commit is contained in:
Peptide90
2022-01-01 16:51:56 +00:00
committed by GitHub
parent 81607d0327
commit f88358a12a
7 changed files with 89 additions and 1 deletions

View File

@@ -16,6 +16,11 @@
- material: Steel
amount: 5
doAfter: 2.5
- to: destroyedMachineFrame
steps:
- material: Steel
amount: 5
doAfter: 2.5
- node: missingWires
entity: UnfinishedMachineFrame
@@ -98,3 +103,15 @@
- tool: Prying
doAfter: 0.25
- node: destroyedMachineFrame
entity: MachineFrameDestroyed
edges:
- to: start
steps:
- tool: Welding
doAfter: 5
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 3
- !type:DeleteEntity {}

View File

@@ -23,3 +23,15 @@
icon:
sprite: Structures/Machines/parts.rsi
state: "box_0"
- type: construction
name: destroyed machine frame
id: MachineFrameDestroyed
graph: machine
startNode: start
targetNode: destroyedMachineFrame
placementMode: SnapgridCenter
canBuildInImpassable: false
icon:
sprite: Structures/Machines/parts.rsi
state: "destroyed"