Adds construct / deconstruct crates (#5650)

This commit is contained in:
Peptide90
2021-12-06 22:10:03 +00:00
committed by GitHub
parent 38990d4f95
commit e2a7fd24d5
14 changed files with 319 additions and 32 deletions

View File

@@ -0,0 +1,28 @@
- type: constructionGraph
id: CrateGenericSteel
start: start
graph:
- node: start
edges:
- to: crategenericsteel
steps:
- material: Steel
amount: 5
doAfter: 5
- node: crategenericsteel
entity: CrateGenericSteel
edges:
- to: start
steps:
- tool: Screwing
doAfter: 5
conditions:
- !type:StorageWelded
welded: false
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 5
- !type:DeleteEntity {}

View File

@@ -0,0 +1,28 @@
- type: constructionGraph
id: CratePlastic
start: start
graph:
- node: start
edges:
- to: crateplastic
steps:
- material: Plastic
amount: 5
doAfter: 5
- node: crateplastic
entity: CratePlastic
edges:
- to: start
steps:
- tool: Screwing
doAfter: 5
conditions:
- !type:StorageWelded
welded: false
completed:
- !type:SpawnPrototype
prototype: SheetPlastic1
amount: 5
- !type:DeleteEntity {}

View File

@@ -0,0 +1,30 @@
- type: constructionGraph
id: CrateSecure
start: start
graph:
- node: start
edges:
- to: cratesecure
steps:
- material: Steel
amount: 5
doAfter: 5
- node: cratesecure
entity: CrateSecure
edges:
- to: start
steps:
- tool: Screwing
doAfter: 5
conditions:
- !type:StorageWelded
welded: false
- !type:Locked
locked: false
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 5
- !type:DeleteEntity {}

View File

@@ -7,5 +7,26 @@
category: Storage
description: "A wooden crate for holding livestock"
icon: Structures/Storage/Crates/livestock.rsi/livestockcrate.png
objectType: Item
objectType: Structure
- type: construction
name: steel crate
id: CrateGenericSteel
graph: CrateGenericSteel
startNode: start
targetNode: crategenericsteel
category: Storage
description: "A metal crate for storing things"
icon: Structures/Storage/Crates/generic.rsi/crate_icon.png
objectType: Structure
- type: construction
name: plastic crate
id: CratePlastic
graph: CratePlastic
startNode: start
targetNode: crateplastic
category: Storage
description: "A plastic crate for storing things"
icon: Structures/Storage/Crates/plastic.rsi/plasticcrate_icon.png
objectType: Structure