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

@@ -21,7 +21,7 @@
- type: entity
id: CrateEmergencyFire
name: firefighting crate
parent: CrateGenericonimo
parent: CrateGenericSteel
components:
- type: StorageFill
contents:

View File

@@ -1,7 +1,7 @@
- type: entity
id: CrateFunPlushie
name: plushie crate
parent: CrateGenericonimo
parent: CrateGenericSteel
components:
- type: StorageFill
contents:
@@ -26,7 +26,7 @@
id: CrateFunInstruments
name: big band instrument collection
description: Get your sad station movin' and groovin' with this fine collection! Contains thirteen different instruments.
parent: CrateGenericonimo
parent: CrateGenericSteel
components:
- type: StorageFill
contents:
@@ -60,7 +60,7 @@
- type: entity
id: CrateFunArtSupplies
name: art supplies
parent: CrateGenericonimo
parent: CrateGenericSteel
components:
- type: StorageFill
contents:

View File

@@ -1,7 +1,7 @@
- type: entity
id: CrateMaterialGlass
name: glass sheet crate
parent: CrateGenericonimo
parent: CrateGenericSteel
components:
- type: StorageFill
contents:
@@ -11,7 +11,7 @@
- type: entity
id: CrateMaterialSteel
name: steel sheet crate
parent: CrateGenericonimo
parent: CrateGenericSteel
components:
- type: StorageFill
contents:
@@ -21,7 +21,7 @@
- type: entity
id: CrateMaterialPlastic
name: plastic sheet crate
parent: CrateGenericonimo
parent: CrateGenericSteel
components:
- type: StorageFill
contents:
@@ -31,7 +31,7 @@
- type: entity
id: CrateMaterialWood
name: wood crate
parent: CrateGenericonimo
parent: CrateGenericSteel
components:
- type: StorageFill
contents:
@@ -41,7 +41,7 @@
- type: entity
id: CrateMaterialFuelTank
name: fueltank crate
parent: CrateGenericonimo
parent: CrateGenericSteel
components:
- type: StorageFill
contents:
@@ -51,7 +51,7 @@
#- type: entity
# id: CrateMaterialHFuelTank
# name: fueltank crate
# parent: CrateGenericonimo
# parent: CrateGenericSteel
# components:
# - type: StorageFill
# contents:
@@ -61,7 +61,7 @@
- type: entity
id: CrateMaterialWaterTank
name: watertank crate
parent: CrateGenericonimo
parent: CrateGenericSteel
components:
- type: StorageFill
contents:
@@ -71,7 +71,7 @@
#- type: entity
# id: CrateMaterialHWaterTank
# name: watertank crate
# parent: CrateGenericonimo
# parent: CrateGenericSteel
# components:
# - type: StorageFill
# contents:
@@ -81,7 +81,7 @@
- type: entity
id: CrateMaterialPlasteel
name: plasteel crate
parent: CrateGenericonimo
parent: CrateGenericSteel
components:
- type: StorageFill
contents:
@@ -91,7 +91,7 @@
- type: entity
id: CrateMaterialPlasma
name: solid plasma crate
parent: CrateGenericonimo
parent: CrateGenericSteel
components:
- type: StorageFill
contents:

View File

@@ -99,7 +99,7 @@
- type: entity
id: CrateNPCMonkeyCube
name: monkey cube crate
parent: CrateGenericonimo
parent: CrateGenericSteel
components:
- type: StorageFill
contents:

View File

@@ -25,7 +25,7 @@
id: CrateServiceReplacementLights
name: replacement lights crate
description: May the light of Aether shine upon this station! Or at least, the light of forty two light tubes and twenty one light bulbs.
parent: CrateGenericonimo
parent: CrateGenericSteel
components:
- type: StorageFill
contents:
@@ -38,7 +38,7 @@
id: CrateServiceSmokeables
name: smokeables crate
description: "Tired of a quick death on the station? Order this crate and chain-smoke your way to a coughy demise!"
parent: CrateGenericonimo
parent: CrateGenericSteel
components:
- type: StorageFill
contents:
@@ -64,7 +64,7 @@
id: CrateServiceCustomSmokable
name: DIY smokeables crate
description: Want to get a little creative with what you use to destroy your lungs? Then this crate is for you! Has everything you need to roll your own Cigarettes.
parent: CrateGenericonimo
parent: CrateGenericSteel
components:
- type: StorageFill
contents:

View File

@@ -1,5 +1,5 @@
- type: entity
id: CrateGenericonimo
id: CrateGenericSteel
name: crate
parent: CrateGeneric
components:
@@ -20,6 +20,10 @@
- type: StorageVisualizer
state_open: crate_open
state_closed: crate_door
- type: Construction
graph: CrateGenericSteel
node: crategenericsteel
- type: entity
id: CratePlastic
@@ -43,6 +47,9 @@
- type: StorageVisualizer
state_open: plasticcrate_open
state_closed: plasticcrate_door
- type: Construction
graph: CratePlastic
node: crateplastic
- type: entity
id: CrateFreezer
@@ -66,6 +73,9 @@
- type: StorageVisualizer
state_open: freezer_open
state_closed: freezer_door
- type: Construction
graph: CrateGenericSteel
node: crategenericsteel
- type: entity
id: CrateHydroponics
@@ -89,6 +99,9 @@
- type: StorageVisualizer
state_open: hydrocrate_open
state_closed: hydrocrate_door
- type: Construction
graph: CrateGenericSteel
node: crategenericsteel
- type: entity
id: CrateMedical
@@ -112,6 +125,9 @@
- type: StorageVisualizer
state_open: medicalcrate_open
state_closed: medicalcrate_door
- type: Construction
graph: CrateGenericSteel
node: crategenericsteel
- type: entity
id: CrateRadiation
@@ -136,6 +152,9 @@
- type: StorageVisualizer
state_open: radiationcrate_open
state_closed: radiationcrate_door
- type: Construction
graph: CrateGenericSteel
node: crategenericsteel
- type: entity
id: CrateInternals
@@ -159,6 +178,9 @@
- type: StorageVisualizer
state_open: o2crate_open
state_closed: o2crate_door
- type: Construction
graph: CrateGenericSteel
node: crategenericsteel
- type: entity
id: CrateElectrical
@@ -182,6 +204,9 @@
- type: StorageVisualizer
state_open: electricalcrate_open
state_closed: electricalcrate_door
- type: Construction
graph: CrateGenericSteel
node: crategenericsteel
- type: entity
id: CrateEngineering
@@ -205,6 +230,9 @@
- type: StorageVisualizer
state_open: engicrate_open
state_closed: engicrate_door
- type: Construction
graph: CrateGenericSteel
node: crategenericsteel
- type: entity
id: CrateScience
@@ -228,6 +256,9 @@
- type: StorageVisualizer
state_open: scicrate_open
state_closed: scicrate_door
- type: Construction
graph: CrateGenericSteel
node: crategenericsteel
- type: entity
id: CrateSurgery
@@ -251,6 +282,9 @@
- type: StorageVisualizer
state_open: surgerycrate_open
state_closed: surgerycrate_door
- type: Construction
graph: CrateGenericSteel
node: crategenericsteel
# Secure Crates
@@ -282,6 +316,9 @@
- type: StorageVisualizer
state_open: secgearcrate_open
state_closed: secgearcrate_door
- type: Construction
graph: CrateSecure
node: cratesecure
- type: entity
id: CrateEngineeringSecure
@@ -311,6 +348,9 @@
- type: StorageVisualizer
state_open: engicratesecure_open
state_closed: engicratesecure_door
- type: Construction
graph: CrateSecure
node: cratesecure
- type: entity
id: CrateMedicalSecure
@@ -340,6 +380,9 @@
- type: StorageVisualizer
state_open: medicalcratesecure_open
state_closed: medicalcratesecure_door
- type: Construction
graph: CrateSecure
node: cratesecure
- type: entity
id: CratePrivateSecure
@@ -368,6 +411,9 @@
- type: StorageVisualizer
state_open: privatecrate_open
state_closed: privatecrate_door
- type: Construction
graph: CrateSecure
node: cratesecure
- type: entity
id: CrateScienceSecure
@@ -397,7 +443,10 @@
- type: StorageVisualizer
state_open: scicratesecure_open
state_closed: scicratesecure_door
- type: Construction
graph: CrateSecure
node: cratesecure
- type: entity
id: CratePlasma
name: plasma crate
@@ -426,6 +475,9 @@
- type: StorageVisualizer
state_open: plasmacrate_open
state_closed: plasmacrate_door
- type: Construction
graph: CrateSecure
node: cratesecure
- type: entity
id: CrateSecure
@@ -454,6 +506,9 @@
- type: StorageVisualizer
state_open: securecrate_open
state_closed: securecrate_door
- type: Construction
graph: CrateSecure
node: cratesecure
- type: entity
id: CrateHydroSecure
@@ -483,7 +538,10 @@
- type: StorageVisualizer
state_open: hydrocratesecure_open
state_closed: hydrocratesecure_door
- type: Construction
graph: CrateSecure
node: cratesecure
- type: entity
id: CrateWeaponSecure
name: secure weapon crate
@@ -509,6 +567,9 @@
- type: StorageVisualizer
state_open: weaponcrate_open
state_closed: weaponcrate_door
- type: Construction
graph: CrateSecure
node: cratesecure
- type: entity
id: CrateLivestock
@@ -569,4 +630,5 @@
- SmallImpassable
- type: Construction
graph: CrateLivestock
node: start
node: cratelivestock

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