Skip to content

Commit

Permalink
reinforced door secret
Browse files Browse the repository at this point in the history
  • Loading branch information
SkaldetSkaeg committed Jan 2, 2025
1 parent 8993272 commit dd18eb6
Show file tree
Hide file tree
Showing 9 changed files with 325 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,70 @@
- tool: Cutting
doAfter: 2

# SS220 ReinforcedGirder node add begin (SolidSecretReinforcedDoor Recipe Update)
- to: secretReinforcedWall
conditions:
- !type:EntityAnchored {}
completed:
- !type:SetAnchor
value: false
steps:
- material: Cable
amount: 4
doAfter: 1.5
# SS220 ReinforcedGirder node add end (SolidSecretReinforcedDoor Recipe Update)

# SS220 ReinforcedGirder node add begin (SolidSecretReinforcedDoor Recipe Update)
- node: secretReinforcedWall
entity: ReinforcedGirder
actions:
- !type:SnapToGrid {}
- !type:SetAnchor {}
edges:
- to: reinforcedElectronics
steps:
- component: PowerCell
name: power cell
store: battery-container
icon:
sprite: Objects/Power/power_cells.rsi
state: small
doAfter: 1
- to: reinforcedGirder
completed:
- !type:GivePrototype
prototype: CableApcStack1
amount: 4
steps:
- tool: Cutting
doAfter: 2

- node: reinforcedElectronics
entity: BaseSecretReinforcedDoorAssembly
edges:
- to: solidSecretReinforcedDoor
conditions:
- !type:EntityAnchored { }
steps:
- tool: Screwing
doAfter: 1

- node: solidSecretReinforcedDoor
entity: SolidSecretReinforcedDoor
edges:
- to: secretReinforcedWall
conditions:
- !type:EntityAnchored {}
- !type:DoorWelded {}
completed:
- !type:EmptyAllContainers
pickup: true
emptyAtUser: true
steps:
- tool: Prying
doAfter: 5
# SS220 ReinforcedGirder node add end (SolidSecretReinforcedDoor Recipe Update)

- node: reinforcedWall
entity: WallReinforced
edges:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# © SS220, An EULA/CLA with a hosting restriction, full text: https://raw.githubusercontent.com/SerbiaStrong-220/space-station-14/master/CLA.txt

- type: entity
id: BaseSecretReinforcedDoorAssembly
name: secret reinforced door assembly
description: It opens, it closes, and maybe crushes you.
components:
- type: Clickable
- type: InteractionOutline
- type: Sprite
sprite: SS220/Structures/Doors/secter_reinforced_door.rsi
state: assembly
- type: Physics
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.45,-0.45,0.45,0.45"
density: 110
mask:
- FullTileMask
layer:
- HumanoidBlockLayer
- type: Anchorable
delay: 2
- type: Pullable
- type: Transform
anchored: true
noRot: false
- type: Rotatable
- type: Damageable
damageContainer: StructuralInorganic
damageModifierSet: StructuralMetallic
- type: RCDDeconstructable
cost: 6
delay: 8
fx: EffectRCDDeconstruct8
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Construction
graph: ReinforcedGirder
node: reinforcedElectronics
placement:
mode: SnapgridCenter

- type: entity
id: SolidSecretReinforcedDoor
name: reinforced wall
parent: BaseSecretDoor
components:
- type: Construction
graph: ReinforcedGirder
node: solidSecretReinforcedDoor
containers:
- battery-container
- type: Sprite
sprite: SS220/Structures/Doors/secter_reinforced_door.rsi
layers:
- state: closed
map: ["enum.DoorVisualLayers.Base"]
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 400
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
- type: constructionGraph
id: SecretReinforcedDoor
start: start
graph:
- node: start
edges:
- to: assembly
completed:
- !type:SetAnchor
value: false
steps:
- material: Steel
amount: 4
doAfter: 4
- material: MetalRod
amount: 4
doAfter: 4

- node: assembly
entity: BaseSecretReinforcedDoorAssembly
actions:
- !type:SnapToGrid {}
- !type:SetAnchor {}
edges:
- to: wired
conditions:
- !type:EntityAnchored {}
steps:
- material: Cable
amount: 4
doAfter: 2.5
- to: start
conditions:
- !type:EntityAnchored
anchored: false
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 4
- !type:DeleteEntity {}
steps:
- tool: Welding
doAfter: 3

- node: wired
entity: BaseSecretReinforcedDoorAssembly
edges:
- to: reinforcedElectronics
steps:
- component: PowerCell
name: power cell
store: battery-container
icon:
sprite: Objects/Power/power_cells.rsi
state: small
doAfter: 1
- to: assembly
completed:
- !type:GivePrototype
prototype: CableApcStack1
amount: 4
steps:
- tool: Cutting
doAfter: 2

- node: reinforcedElectronics
entity: BaseSecretReinforcedDoorAssembly
edges:
- to: solidSecretReinforcedDoor
steps:
- tool: Screwing
doAfter: 2

- node: solidSecretReinforcedDoor
entity: SolidSecretReinforcedDoor
edges:
- to: wired
conditions:
- !type:EntityAnchored {}
- !type:DoorWelded {}
completed:
- !type:EmptyAllContainers
pickup: true
emptyAtUser: true
steps:
- tool: Prying
doAfter: 5
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"version": 1,
"license": "EULA/CLA with a hosting restriction, full text: https://raw.githubusercontent.com/SerbiaStrong-220/space-station-14/master/CLA.txt",
"copyright": "by MIXnikita for SS220",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "assembly",
"directions": 4
},
{
"name": "closed",
"directions": 4
},
{
"name": "closing",
"directions": 4,
"delays": [
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
],
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
],
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
],
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
]
]
},
{
"name": "open",
"directions": 4
},
{
"name": "opening",
"directions": 4,
"delays": [
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
],
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
],
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
],
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
]
]
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dd18eb6

Please sign in to comment.