Adds construction for wooden barricades, solar panels + solar trackers (#3472)
* Added barricades and textures for hidden doors Constructable barricades and textures for square wall hidden doors * Added solar assembly & tracker. Restructured power construction Added solar tracker and assembly construction and textures. (Trackers don't work at present). Moved APC and solar item sot construction/power.yml Moved power based items to "Utility" in construction menu. * Localisation changes Added flammable to barricades. Added localisation to barricades and all solar entities. * Removed hidden doors Removed .rsi for hidden doors as wasn't able to get non airlock doors working. * Adds solar crate to cargo * Fixed tests * Removed glass from solar crate Removing glass from solars crate until stacks can be specified. * Added deconstruction to solar graphs * Added deconstruction to barricade And fixed nodes for solars. * Fixed materials * Fixed meta indent and solartracker type * Fixed materials, physics & naming Added new physics fixtures to barricade and solars Changed solar tracker board to electronics. Changed material ID for destruction of wooden barricades to new ID. * Changed back to prototype from component step Component step does not work for electronics only machine boards. * Localisation fixes 1 * yaml linter fixes Removed obsolete code * Update meta.json * Fix trailing comma Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
- type: constructionGraph
|
||||
id: barricade
|
||||
start: start
|
||||
graph:
|
||||
- node: start
|
||||
edges:
|
||||
- to: barricadewooden
|
||||
steps:
|
||||
- material: WoodPlank
|
||||
amount: 5
|
||||
doAfter: 3
|
||||
|
||||
- node: barricadewooden
|
||||
entity: Barricade
|
||||
edges:
|
||||
- to: start
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: MaterialWoodPlank1
|
||||
amount: 4 #returns 1 less as one breaks
|
||||
- !type:DeleteEntity {}
|
||||
conditions:
|
||||
- !type:EntityAnchored
|
||||
anchored: true
|
||||
steps:
|
||||
- tool: Prying
|
||||
doAfter: 5
|
||||
@@ -0,0 +1,88 @@
|
||||
- type: constructionGraph
|
||||
id: solarpanel
|
||||
start: start
|
||||
graph:
|
||||
- node: start
|
||||
edges:
|
||||
- to: solarassembly
|
||||
steps:
|
||||
- prototype: SolarAssemblyPart
|
||||
name: Solar Assembly Parts
|
||||
icon:
|
||||
sprite: Objects/Power/solar_parts.rsi
|
||||
state: solar_assembly_parts
|
||||
doAfter: 1
|
||||
|
||||
- node: solarassembly
|
||||
entity: SolarAssembly
|
||||
edges:
|
||||
- to: start
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: SolarAssemblyPart
|
||||
amount: 1
|
||||
- !type:DeleteEntity {}
|
||||
steps:
|
||||
- tool: Screwing
|
||||
doAfter: 2
|
||||
- to: solarpanel
|
||||
conditions:
|
||||
- !type:EntityAnchored
|
||||
value: true
|
||||
steps:
|
||||
- material: Glass
|
||||
amount: 2
|
||||
doAfter: 0.5
|
||||
completed:
|
||||
- !type:SnapToGrid
|
||||
offset: Center
|
||||
- to: solartracker
|
||||
conditions:
|
||||
- !type:EntityAnchored
|
||||
value: true
|
||||
steps:
|
||||
- prototype: SolarTrackerElectronics
|
||||
name: Solar Tracker Electronics
|
||||
icon:
|
||||
sprite: Constructible/Misc/module.rsi
|
||||
state: id_mod
|
||||
doAfter: 1
|
||||
- material: Glass
|
||||
amount: 2
|
||||
doAfter: 2
|
||||
completed:
|
||||
- !type:SnapToGrid
|
||||
offset: Center
|
||||
|
||||
- node: solarpanel
|
||||
entity: SolarPanel
|
||||
edges:
|
||||
- to: solarassembly
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: SheetGlass1
|
||||
amount: 2
|
||||
conditions:
|
||||
- !type:EntityAnchored
|
||||
anchored: true
|
||||
steps:
|
||||
- tool: Prying
|
||||
doAfter: 0.5
|
||||
|
||||
- node: solartracker
|
||||
entity: SolarTracker
|
||||
edges:
|
||||
- to: solarassembly
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: SheetGlass1
|
||||
amount: 2
|
||||
- !type:SpawnPrototype
|
||||
prototype: SolarTrackerElectronics
|
||||
amount: 1
|
||||
conditions:
|
||||
- !type:EntityAnchored
|
||||
anchored: true
|
||||
steps:
|
||||
- tool: Prying
|
||||
doAfter: 1
|
||||
31
Resources/Prototypes/Recipes/Construction/power.yml
Normal file
31
Resources/Prototypes/Recipes/Construction/power.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
- type: construction
|
||||
name: APC
|
||||
id: apc
|
||||
graph: apc
|
||||
startNode: start
|
||||
targetNode: apc
|
||||
category: Utility
|
||||
description: "Area Power Controller (APC). Controls power. In an area."
|
||||
icon:
|
||||
sprite: Constructible/Power/apc.rsi
|
||||
state: apc0
|
||||
objectType: Structure
|
||||
placementMode: AlignWallProper
|
||||
canBuildInImpassable: true
|
||||
|
||||
- type: construction
|
||||
name: Solar Assembly
|
||||
id: SolarPanel
|
||||
graph: solarpanel
|
||||
startNode: start
|
||||
targetNode: solarpanel
|
||||
category: Utility
|
||||
description: "Can be turned into a solar panel or solar tracker."
|
||||
icon:
|
||||
sprite: Constructible/Power/solar_panel.rsi
|
||||
state: solar_assembly
|
||||
objectType: Structure
|
||||
placementMode: SnapgridCenter
|
||||
canBuildInImpassable: false
|
||||
conditions:
|
||||
- !type:TileNotBlocked {}
|
||||
@@ -198,16 +198,18 @@
|
||||
canBuildInImpassable: false
|
||||
|
||||
- type: construction
|
||||
name: APC
|
||||
id: apc
|
||||
graph: apc
|
||||
name: Wooden Barricade
|
||||
id: Barricade
|
||||
graph: barricade
|
||||
startNode: start
|
||||
targetNode: apc
|
||||
targetNode: barricadewooden
|
||||
category: Structures
|
||||
description: Area Power Controller (APC). Controls power. In an area.
|
||||
description: An improvised barricade made out of wooden planks.
|
||||
icon:
|
||||
sprite: Constructible/Power/apc.rsi
|
||||
state: apc0
|
||||
sprite: Constructible/Structures/barricades.rsi
|
||||
state: barricadewooden
|
||||
objectType: Structure
|
||||
placementMode: SnapgridCenter
|
||||
canBuildInImpassable: true
|
||||
canBuildInImpassable: false
|
||||
conditions:
|
||||
- !type:TileNotBlocked {}
|
||||
|
||||
Reference in New Issue
Block a user