diff --git a/Resources/Prototypes/Entities/Structures/Walls/girder.yml b/Resources/Prototypes/Entities/Structures/Walls/girders.yml similarity index 55% rename from Resources/Prototypes/Entities/Structures/Walls/girder.yml rename to Resources/Prototypes/Entities/Structures/Walls/girders.yml index 59cd8309c2..e3792814f7 100644 --- a/Resources/Prototypes/Entities/Structures/Walls/girder.yml +++ b/Resources/Prototypes/Entities/Structures/Walls/girders.yml @@ -50,3 +50,38 @@ acts: [ "Destruction" ] - type: StaticPrice price: 0.5 + +- type: entity + id: ReinforcedGirder + parent: Girder + name: reinforced girder + description: A large structural assembly made out of metal and plasteel; It requires a layer of plasteel before it can be considered a reinforced wall. + components: + - type: Sprite + sprite: Structures/Walls/solid.rsi + state: reinforced_wall_girder + - type: Construction + graph: Girder + node: reinforcedGirder + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 200 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + - trigger: + !type:DamageTrigger + damage: 50 + behaviors: + - !type:SpawnEntitiesBehavior + spawn: + SheetSteel1: + min: 1 + max: 1 + SheetPlasteel1: + min: 1 + max: 1 + - !type:DoActsBehavior + acts: [ "Destruction" ] diff --git a/Resources/Prototypes/Recipes/Construction/Graphs/structures/girder.yml b/Resources/Prototypes/Recipes/Construction/Graphs/structures/girder.yml index d5c97cecf8..6d419e1ace 100644 --- a/Resources/Prototypes/Recipes/Construction/Graphs/structures/girder.yml +++ b/Resources/Prototypes/Recipes/Construction/Graphs/structures/girder.yml @@ -219,11 +219,7 @@ doAfter: 10 - node: reinforcedGirder - actions: - - !type:SpriteChange - specifier: - sprite: /Textures/Structures/Walls/solid.rsi - state: reinforced_wall_girder + entity: ReinforcedGirder edges: - to: reinforcedWall completed: @@ -240,16 +236,23 @@ completed: - !type:SnapToGrid southRotation: true + - !type:SpawnPrototype + prototype: SheetPlasteel1 + amount: 2 conditions: - !type:EntityAnchored { } steps: - - tool: Welding - doAfter: 10 + - tool: Cutting + doAfter: 2 - node: reinforcedWall entity: WallReinforced edges: - - to: girder + - to: reinforcedGirder + completed: + - !type:SpawnPrototype + prototype: SheetPlasteel1 + amount: 2 steps: - tool: Cutting doAfter: 1 @@ -293,7 +296,7 @@ data: 0 - tool: Cutting doAfter: 1 - + - node: wallrust entity: WallSolidRust edges: diff --git a/Resources/Prototypes/Recipes/Construction/structures.yml b/Resources/Prototypes/Recipes/Construction/structures.yml index 884dbfd1fd..5e0fb7ab23 100644 --- a/Resources/Prototypes/Recipes/Construction/structures.yml +++ b/Resources/Prototypes/Recipes/Construction/structures.yml @@ -16,6 +16,24 @@ conditions: - !type:TileNotBlocked +- type: construction + name: reinforced girder + id: ReinforcedGirder + graph: Girder + startNode: start + targetNode: reinforcedGirder + category: construction-category-structures + description: A large structural assembly made out of metal and plasteel. + icon: + sprite: /Textures/Structures/Walls/solid.rsi + state: reinforced_wall_girder + objectType: Structure + placementMode: SnapgridCenter + canRotate: false + canBuildInImpassable: false + conditions: + - !type:TileNotBlocked + - type: construction name: wall id: Wall