Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button frame construction graphs & recipes #2888

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 28 additions & 3 deletions Resources/Prototypes/Entities/Structures/Wallmounts/switch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
- type: Physics
canCollide: false
- type: Sprite
drawdepth: SmallObjects
drawdepth: WallMountedItems # Frontier: SmallObjects<WallMountedItems
sprite: Structures/Wallmounts/switch.rsi
state: on
- type: SignalSwitch
Expand Down Expand Up @@ -58,7 +58,7 @@
- type: Physics
canCollide: false
- type: Sprite
drawdepth: SmallObjects
drawdepth: WallMountedItems # Frontier: SmallObjects<WallMountedItems
sprite: Structures/Wallmounts/switch.rsi
state: dead
- type: UseDelay
Expand Down Expand Up @@ -123,7 +123,7 @@
- type: Transform
anchored: true
- type: Sprite
drawdepth: SmallObjects
drawdepth: WallMountedItems # Frontier: SmallObjects<WallMountedItems
sprite: Structures/Wallmounts/switch.rsi
state: on
- type: Rotatable
Expand Down Expand Up @@ -527,6 +527,11 @@
drawdepth: SmallObjects
sprite: Structures/Wallmounts/switch_frame.rsi
state: grey
# Frontier: constructible button frames
- type: Construction
graph: ButtonFrameGraph
node: ButtonFrameGreyNode
# End Frontier

- type: entity
id: ButtonFrameCaution
Expand All @@ -537,6 +542,11 @@
drawdepth: SmallObjects
sprite: Structures/Wallmounts/switch_frame.rsi
state: caution
# Frontier: constructible button frames
- type: Construction
graph: ButtonFrameGraph
node: ButtonFrameCautionNode
# End Frontier

- type: entity
id: ButtonFrameCautionSecurity
Expand All @@ -547,6 +557,11 @@
drawdepth: SmallObjects
sprite: Structures/Wallmounts/switch_frame.rsi
state: caution_security
# Frontier: constructible button frames
- type: Construction
graph: ButtonFrameGraph
node: ButtonFrameCautionSecurityNode
# End Frontier

- type: entity
id: ButtonFrameExit
Expand All @@ -557,6 +572,11 @@
drawdepth: SmallObjects
sprite: Structures/Wallmounts/switch_frame.rsi
state: exit
# Frontier: constructible button frames
- type: Construction
graph: ButtonFrameGraph
node: ButtonFrameExitNode
# End Frontier

- type: entity
id: ButtonFrameJanitor
Expand All @@ -567,3 +587,8 @@
drawdepth: SmallObjects
sprite: Structures/Wallmounts/switch_frame.rsi
state: janitor
# Frontier: constructible button frames
- type: Construction
graph: ButtonFrameGraph
node: ButtonFrameJanitorNode
# End Frontier
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
- type: constructionGraph
id: ButtonFrameGraph
start: start
graph:
- node: start
edges:
- to: ButtonFrameGreyNode
steps:
- material: Steel
amount: 1
doAfter: 1
- to: ButtonFrameCautionNode
steps:
- material: Steel
amount: 1
doAfter: 1
- to: ButtonFrameCautionSecurityNode
steps:
- material: Steel
amount: 1
doAfter: 1
- to: ButtonFrameExitNode
steps:
- material: Steel
amount: 1
doAfter: 1
- to: ButtonFrameJanitorNode
steps:
- material: Steel
amount: 1
doAfter: 1

- node: ButtonFrameGreyNode
entity: ButtonFrameGrey
edges:
- to: start
steps:
- tool: Prying
doAfter: 1
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 1
- !type:DeleteEntity

- node: ButtonFrameCautionNode
entity: ButtonFrameCaution
edges:
- to: start
steps:
- tool: Prying
doAfter: 1
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 1
- !type:DeleteEntity

- node: ButtonFrameCautionSecurityNode
entity: ButtonFrameCautionSecurity
edges:
- to: start
steps:
- tool: Prying
doAfter: 1
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 1
- !type:DeleteEntity

- node: ButtonFrameExitNode
entity: ButtonFrameExit
edges:
- to: start
steps:
- tool: Prying
doAfter: 1
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 1
- !type:DeleteEntity

- node: ButtonFrameJanitorNode
entity: ButtonFrameJanitor
edges:
- to: start
steps:
- tool: Prying
doAfter: 1
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 1
- !type:DeleteEntity
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
- type: construction
name: button frame
id: ButtonFrameGreyConstruction
graph: ButtonFrameGraph
startNode: start
targetNode: ButtonFrameGreyNode
category: construction-category-machines
description: It's a frame to help distinguish switches visually.
objectType: Structure
placementMode: SnapgridCenter
canBuildInImpassable: true
conditions:
- !type:WallmountCondition
icon:
sprite: Structures/Wallmounts/switch_frame.rsi
state: grey

- type: construction
name: button frame (yellow caution)
id: ButtonFrameCautionConstruction
graph: ButtonFrameGraph
startNode: start
targetNode: ButtonFrameCautionNode
category: construction-category-machines
description: It's a frame to help distinguish switches visually. This one is striped black and yellow.
objectType: Structure
placementMode: SnapgridCenter
canBuildInImpassable: true
conditions:
- !type:WallmountCondition
icon:
sprite: Structures/Wallmounts/switch_frame.rsi
state: caution

- type: construction
name: button frame (red caution)
id: ButtonFrameCautionSecurityConstruction
graph: ButtonFrameGraph
startNode: start
targetNode: ButtonFrameCautionSecurityNode
category: construction-category-machines
description: It's a frame to help distinguish switches visually. This one is striped black and red.
objectType: Structure
placementMode: SnapgridCenter
canBuildInImpassable: true
conditions:
- !type:WallmountCondition
icon:
sprite: Structures/Wallmounts/switch_frame.rsi
state: caution_security

- type: construction
name: button frame (exit)
id: ButtonFrameExitConstruction
graph: ButtonFrameGraph
startNode: start
targetNode: ButtonFrameExitNode
category: construction-category-machines
description: It's a frame to help distinguish switches visually. This one is labeled "EXIT".
objectType: Structure
placementMode: SnapgridCenter
canBuildInImpassable: true
conditions:
- !type:WallmountCondition
icon:
sprite: Structures/Wallmounts/switch_frame.rsi
state: exit

- type: construction
name: button frame (janitor)
id: ButtonFrameJanitorConstruction
graph: ButtonFrameGraph
startNode: start
targetNode: ButtonFrameJanitorNode
category: construction-category-machines
description: It's a frame to help distinguish switches visually. This one is purple.
objectType: Structure
placementMode: SnapgridCenter
canBuildInImpassable: true
conditions:
- !type:WallmountCondition
icon:
sprite: Structures/Wallmounts/switch_frame.rsi
state: janitor
Loading