Adds fire/air alarms (#5018)

Co-authored-by: Vera Aguilera Puerto <6766154+Zumorica@users.noreply.github.com>
Co-authored-by: E F R <602406+Efruit@users.noreply.github.com>
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
Flipp Syder
2022-01-01 20:56:24 -08:00
committed by GitHub
parent 903f796b0f
commit b1584793bf
71 changed files with 4340 additions and 29 deletions

View File

@@ -0,0 +1,157 @@
- type: constructionGraph
id: air_alarm
start: start
graph:
- node: start
edges:
- to: assembly
steps:
- material: Steel
amount: 2
doAfter: 2.0
- node: assembly
entity: AirAlarmAssembly
actions:
- !type:SpriteStateChange
state: alarm_b1
edges:
- to: wired
steps:
- material: Cable
amount: 2
doAfter: 1
- to: start
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 2
- !type:DeleteEntity {}
steps:
- tool: Welding
doAfter: 2
- node: wired
entity: AirAlarmAssembly
edges:
- to: electronics
steps:
- tag: AirAlarmElectronics
store: board
name: "air alarm electronics"
icon:
sprite: "Objects/Misc/module.rsi"
state: "door_electronics" # /tg/ uses the same sprite, right?
doAfter: 1
- to: assembly
completed:
- !type:SpawnPrototype
prototype: CableApcStack1
amount: 2
steps:
- tool: Cutting
doAfter: 1
- node: electronics
actions:
- !type:SpriteStateChange
state: alarm_b2
edges:
- to: air_alarm
steps:
- tool: Screwing
doAfter: 2
- node: air_alarm
entity: AirAlarm
edges:
- to: wired
conditions:
- !type:AllWiresCut {}
- !type:WirePanel {}
- !type:ContainerNotEmpty
container: board
completed:
- !type:EmptyAllContainers {}
steps:
- tool: Prying
doAfter: 1
- type: constructionGraph
id: fire_alarm
start: start
graph:
- node: start
edges:
- to: assembly
steps:
- material: Steel
amount: 2
doAfter: 2.0
- node: assembly
entity: FireAlarmAssembly
actions:
- !type:SpriteStateChange
state: fire_b1
edges:
- to: wired
steps:
- material: Cable
amount: 2
doAfter: 1
- to: start
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 2
- !type:DeleteEntity {}
steps:
- tool: Welding
doAfter: 2
- node: wired
entity: FireAlarmAssembly
edges:
- to: electronics
steps:
- tag: FireAlarmElectronics
store: board
name: "fire alarm electronics"
icon:
sprite: "Objects/Misc/module.rsi"
state: "door_electronics" # /tg/ uses the same sprite, right?
doAfter: 1
- to: assembly
completed:
- !type:SpawnPrototype
prototype: CableApcStack1
amount: 2
steps:
- tool: Cutting
doAfter: 1
- node: electronics
actions:
- !type:SpriteStateChange
state: fire_b2
edges:
- to: fire_alarm
steps:
- tool: Screwing
doAfter: 2
- node: fire_alarm
entity: FireAlarm
edges:
- to: wired
conditions:
- !type:AllWiresCut {}
- !type:WirePanel {}
- !type:ContainerNotEmpty
container: board
completed:
- !type:EmptyAllContainers {}
steps:
- tool: Prying
doAfter: 1

View File

@@ -0,0 +1,35 @@
- type: construction
name: air alarm
id: AirAlarmFixture
graph: air_alarm
startNode: start
targetNode: air_alarm
category: Structures
description: An air alarm. Alarms... air?
icon:
sprite: Structures/Wallmounts/air_monitors.rsi
state: alarm0
placementMode: SnapgridCenter
objectType: Structure
canRotate: true
canBuildInImpassable: true
conditions:
- !type:WallmountCondition {}
- type: construction
name: fire alarm
id: FireAlarm
graph: fire_alarm
startNode: start
targetNode: fire_alarm
category: Structures
description: A fire alarm. Spicy!
icon:
sprite: Structures/Wallmounts/air_monitors.rsi
state: fire0
placementMode: SnapgridCenter
objectType: Structure
canRotate: true
canBuildInImpassable: true
conditions:
- !type:WallmountCondition {}