Add high pressure machine frame rsi (#4950)
Implement Disposal machine construction graph and recepie Restore eris disposal unit Co-authored-by: Julian Giebel <j.giebel@netrocks.info> Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
@@ -0,0 +1,48 @@
|
||||
- type: entity
|
||||
id: DisposalMachineFrame
|
||||
name: High Pressure Machine Frame
|
||||
description: A machine frame made to withstand the amount of pressure used in the station's disposal system.
|
||||
placement:
|
||||
mode: SnapgridCenter
|
||||
components:
|
||||
- type: Transform
|
||||
anchored: true
|
||||
- type: Physics
|
||||
bodyType: Static
|
||||
fixtures:
|
||||
- shape:
|
||||
!type:PhysShapeAabb
|
||||
bounds: "-0.25,-0.4,0.25,0.4"
|
||||
mass: 25
|
||||
layer:
|
||||
- Impassable
|
||||
- MobImpassable
|
||||
- VaultImpassable
|
||||
- Opaque
|
||||
mask:
|
||||
- Impassable
|
||||
- MobImpassable
|
||||
- VaultImpassable
|
||||
- type: Clickable
|
||||
- type: InteractionOutline
|
||||
- type: Anchorable
|
||||
- type: Pullable
|
||||
- type: Construction
|
||||
graph: disposalMachine
|
||||
node: frame
|
||||
- type: Damageable
|
||||
damageContainer: Inorganic
|
||||
damageModifierSet: Metallic
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 100
|
||||
behaviors:
|
||||
- !type:ChangeConstructionNodeBehavior
|
||||
node: start
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- type: Sprite
|
||||
sprite: Structures/Piping/high_pressure_machine_frame.rsi
|
||||
state: frame
|
||||
@@ -72,6 +72,9 @@
|
||||
parent: DisposalUnitBase
|
||||
name: disposal unit
|
||||
components:
|
||||
- type: Construction
|
||||
graph: disposalMachine
|
||||
node: disposal_unit
|
||||
- type: DisposalUnit
|
||||
flushTime: 2
|
||||
- type: UserInterface
|
||||
|
||||
@@ -0,0 +1,166 @@
|
||||
- type: constructionGraph
|
||||
id: disposalMachine
|
||||
start: start
|
||||
graph:
|
||||
- node: start
|
||||
edges:
|
||||
- to: frame
|
||||
steps:
|
||||
- material: Steel
|
||||
amount: 1
|
||||
doAfter: 1
|
||||
- node: frame
|
||||
entity: DisposalMachineFrame
|
||||
actions:
|
||||
- !type:SpriteChange
|
||||
specifier:
|
||||
sprite: /Textures/Structures/Piping/high_pressure_machine_frame.rsi
|
||||
state: frame
|
||||
edges:
|
||||
- to: start
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: SheetSteel1
|
||||
amount: 1
|
||||
- !type:DeleteEntity {}
|
||||
steps:
|
||||
- tool: Screwing
|
||||
doAfter: 1
|
||||
- to: frame_cable
|
||||
steps:
|
||||
- material: Cable
|
||||
amount: 2
|
||||
doAfter: 1
|
||||
- node: frame_cable
|
||||
entity: DisposalMachineFrame
|
||||
actions:
|
||||
- !type:SpriteStateChange
|
||||
state: "frame_cables"
|
||||
edges:
|
||||
- to: frame
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: CableApcStack1
|
||||
amount: 2
|
||||
steps:
|
||||
- tool: Cutting
|
||||
doAfter: 1
|
||||
- to: frame_electronics
|
||||
steps:
|
||||
- material: Plastic # No machine parts = sad julian
|
||||
amount: 2
|
||||
doAfter: 1
|
||||
- node: frame_electronics
|
||||
entity: DisposalMachineFrame
|
||||
actions:
|
||||
- !type:SpriteStateChange
|
||||
state: "frame_electronics"
|
||||
edges:
|
||||
- to: frame_cable
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: SheetPlastic
|
||||
amount: 2
|
||||
steps:
|
||||
- tool: Cutting
|
||||
doAfter: 1
|
||||
- to: frame_unit
|
||||
steps:
|
||||
- tool: Screwing
|
||||
doAfter: 0.25
|
||||
#- to: frame_mailing
|
||||
# steps:
|
||||
# - ... # 1x mailing unit electronics
|
||||
# amount: 1
|
||||
# - tool: Screwing
|
||||
# doAfter: 0.25
|
||||
- node: frame_unit
|
||||
entity: DisposalMachineFrame
|
||||
actions:
|
||||
- !type:SpriteStateChange
|
||||
state: "frame_unit"
|
||||
edges:
|
||||
- to: frame_inlet
|
||||
steps:
|
||||
- tool: Screwing
|
||||
doAfter: 0.25
|
||||
- to: disposal_unit
|
||||
conditions:
|
||||
- !type:EntityAnchored {}
|
||||
steps:
|
||||
- material: Steel
|
||||
amount: 1
|
||||
doAfter: 1
|
||||
- node: disposal_unit
|
||||
entity: DisposalUnit
|
||||
edges:
|
||||
- to: frame_unit
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: SheetSteel1
|
||||
amount: 1
|
||||
conditions:
|
||||
- !type:EntityAnchored {}
|
||||
steps:
|
||||
- tool: Prying
|
||||
doAfter: 1
|
||||
- node: frame_inlet
|
||||
entity: DisposalMachineFrame
|
||||
actions:
|
||||
- !type:SpriteStateChange
|
||||
state: "frame_inlet"
|
||||
edges:
|
||||
- to: frame_outlet
|
||||
steps:
|
||||
- tool: Screwing
|
||||
doAfter: 0.25
|
||||
# - to: disposal_inlet
|
||||
# conditions:
|
||||
# - !type:EntityAnchored {}
|
||||
# steps:
|
||||
# - material: Steel
|
||||
# amount: 1
|
||||
# doAfter: 1
|
||||
#- node: disposal_inlet
|
||||
# entity: DisposalInlet
|
||||
# edges:
|
||||
# - to: frame_inlet
|
||||
# completed:
|
||||
# - !type:SpawnPrototype
|
||||
# prototype: SheetSteel1
|
||||
# amount: 1
|
||||
# conditions:
|
||||
# - !type:EntityAnchored {}
|
||||
# steps:
|
||||
# - tool: Prying
|
||||
# doAfter: 1
|
||||
- node: frame_outlet
|
||||
entity: DisposalMachineFrame
|
||||
actions:
|
||||
- !type:SpriteStateChange
|
||||
state: "frame_outlet"
|
||||
edges:
|
||||
- to: frame_electronics
|
||||
steps:
|
||||
- tool: Screwing
|
||||
doAfter: 0.25
|
||||
# - to: disposal_outlet
|
||||
# conditions:
|
||||
# - !type:EntityAnchored {}
|
||||
# steps:
|
||||
# - material: Steel
|
||||
# amount: 1
|
||||
# doAfter: 1
|
||||
#- node: disposal_outlet
|
||||
# entity: DisposalOutlet
|
||||
# edges:
|
||||
# - to: frame_outlet
|
||||
# completed:
|
||||
# - !type:SpawnPrototype
|
||||
# prototype: SheetSteel1
|
||||
# amount: 1
|
||||
# conditions:
|
||||
# - !type:EntityAnchored {}
|
||||
# steps:
|
||||
# - tool: Prying
|
||||
# doAfter: 1
|
||||
12
Resources/Prototypes/Recipes/Construction/disposal.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
- type: construction
|
||||
name: disposal unit
|
||||
id: DisposalUnit
|
||||
graph: disposalMachine
|
||||
startNode: start
|
||||
targetNode: disposal_unit
|
||||
category: Disposal
|
||||
placementMode: SnapgridCenter
|
||||
canBuildInImpassable: false
|
||||
icon:
|
||||
sprite: Structures/Piping/disposal.rsi
|
||||
state: "disposal"
|
||||
|
Before Width: | Height: | Size: 340 B After Width: | Height: | Size: 415 B |
|
Before Width: | Height: | Size: 335 B After Width: | Height: | Size: 522 B |
|
Before Width: | Height: | Size: 808 B After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 335 B After Width: | Height: | Size: 419 B |
|
Before Width: | Height: | Size: 253 B |
|
Before Width: | Height: | Size: 339 B After Width: | Height: | Size: 236 B |
|
Before Width: | Height: | Size: 238 B After Width: | Height: | Size: 139 B |
|
Before Width: | Height: | Size: 266 B After Width: | Height: | Size: 161 B |
|
Before Width: | Height: | Size: 237 B |
|
Before Width: | Height: | Size: 284 B After Width: | Height: | Size: 178 B |
@@ -5,11 +5,16 @@
|
||||
"y": 32
|
||||
},
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/c6e3401f2e7e1e55c57060cdf956a98ef1fefc24 and modified by DrSmugLeaf and Swept",
|
||||
"copyright": "https://github.com/discordia-space/CEV-Eris/blob/bbe32606902c90f5290b57d905a3f31b84dc6d7d/icons/obj/pipes/disposal.dmi and modified by DrSmugleaf",
|
||||
"states": [
|
||||
{
|
||||
"name": "condisposal",
|
||||
|
||||
"directions": 1,
|
||||
"delays": [
|
||||
[
|
||||
1.0
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "conpipe-c",
|
||||
@@ -175,14 +180,25 @@
|
||||
},
|
||||
{
|
||||
"name": "disposal",
|
||||
|
||||
"directions": 1,
|
||||
"delays": [
|
||||
[
|
||||
1.0
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "disposal-charging",
|
||||
|
||||
"directions": 1,
|
||||
"delays": [
|
||||
[
|
||||
1.0
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "disposal-flush",
|
||||
"directions": 1,
|
||||
"delays": [
|
||||
[
|
||||
0.1,
|
||||
@@ -199,6 +215,7 @@
|
||||
},
|
||||
{
|
||||
"name": "dispover-charge",
|
||||
"directions": 1,
|
||||
"delays": [
|
||||
[
|
||||
0.4,
|
||||
@@ -207,15 +224,32 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "dispover-full"
|
||||
"name": "dispover-full",
|
||||
"directions": 1,
|
||||
"delays": [
|
||||
[
|
||||
0.2,
|
||||
0.2
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "dispover-handle",
|
||||
|
||||
"directions": 1,
|
||||
"delays": [
|
||||
[
|
||||
1.0
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "dispover-ready",
|
||||
|
||||
"directions": 1,
|
||||
"delays": [
|
||||
[
|
||||
1.0
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "intake",
|
||||
@@ -742,4 +776,4 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 341 B |
|
After Width: | Height: | Size: 413 B |
|
After Width: | Height: | Size: 489 B |
|
After Width: | Height: | Size: 450 B |
|
After Width: | Height: | Size: 442 B |
|
After Width: | Height: | Size: 386 B |
@@ -0,0 +1 @@
|
||||
{"version": 1, "size": {"x": 32, "y": 32}, "license": "CC-BY-SA-3.0", "copyright": "Julian Giebel <juliangiebel@live.de>", "states": [{"name": "frame", "directions": 1, "delays": [[1.0]]}, {"name": "frame_cables", "directions": 1, "delays": [[1.0]]}, {"name": "frame_electronics", "directions": 1, "delays": [[1.0]]}, {"name": "frame_inlet", "directions": 1, "delays": [[1.0]]}, {"name": "frame_outlet", "directions": 1, "delays": [[1.0]]}, {"name": "frame_unit", "directions": 1, "delays": [[1.0]]}]}
|
||||