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

SolidSecretReinforcedDoor #2443

Merged
merged 7 commits into from
Jan 3, 2025
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ent-BaseSecretReinforcedDoorAssembly = каркас укрепленной потайной двери
.desc = Он открывается, он закрывается, и он может вас раздавить.
ent-SolidSecretReinforcedDoor = укреплённая стена
.desc = { ent-BaseSecretDoor.desc }
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,6 @@
- to: secretWall
conditions:
- !type:EntityAnchored {}
completed:
- !type:SetAnchor
value: false
steps:
- material: Cable
amount: 4
Expand All @@ -196,7 +193,6 @@
- node: secretWall
entity: Girder
actions:
- !type:SnapToGrid {}
- !type:SetAnchor {}
edges:
- to: electronics
Expand Down Expand Up @@ -456,6 +452,66 @@
- tool: Cutting
doAfter: 2

# SS220 ReinforcedGirder node add begin (SolidSecretReinforcedDoor Recipe Update)
- to: secretReinforcedWall
conditions:
- !type:EntityAnchored {}
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: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: 12
# 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,71 @@
# © 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: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Construction
graph: Girder
node: reinforcedElectronics
placement:
mode: SnapgridCenter

- type: entity
id: SolidSecretReinforcedDoor
name: reinforced wall
parent: BaseSecretDoor
components:
- type: Construction
graph: Girder
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
UrPrice marked this conversation as resolved.
Show resolved Hide resolved
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
17 changes: 17 additions & 0 deletions Resources/Prototypes/SS220/Recipes/Construction/structures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,20 @@
canBuildInImpassable: false
conditions:
- !type:TileNotBlocked

- type: construction
name: solid secret reinforced door
id: SolidSecretReinforcedDoor
graph: Girder
startNode: start
targetNode: solidSecretReinforcedDoor
category: construction-category-structures
description: A secret door for the reinforced wall.
objectType: Structure
placementMode: SnapgridCenter
canBuildInImpassable: false
icon:
sprite: SS220/Structures/Doors/secter_reinforced_door.rsi
state: closed
conditions:
- !type:TileNotBlocked
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.
Loading