From 80753a70ea1fc669c334b42c3af83e0c776803ff Mon Sep 17 00:00:00 2001 From: Delete69 <95458399+Delete69@users.noreply.github.com> Date: Wed, 5 Jan 2022 18:51:41 -0700 Subject: [PATCH] Add small railing corner (#6036) --- .../Entities/Structures/Walls/railing.yml | 52 ++++++++++++++++++ .../Graphs/structures/railing.yml | 21 +++++++ .../Recipes/Construction/structures.yml | 17 ++++++ .../Walls/railing.rsi/corner_small.png | Bin 0 -> 405 bytes .../Structures/Walls/railing.rsi/meta.json | 24 ++++---- 5 files changed, 104 insertions(+), 10 deletions(-) create mode 100644 Resources/Textures/Structures/Walls/railing.rsi/corner_small.png diff --git a/Resources/Prototypes/Entities/Structures/Walls/railing.yml b/Resources/Prototypes/Entities/Structures/Walls/railing.yml index 08e20ae31a..534ff116e5 100644 --- a/Resources/Prototypes/Entities/Structures/Walls/railing.yml +++ b/Resources/Prototypes/Entities/Structures/Walls/railing.yml @@ -110,3 +110,55 @@ graph: railing node: railingCorner +- type: entity + parent: BaseStructure + id: RailingCornerSmall + name: railing + description: Basic railing meant to protect idiots like you from falling. + components: + - type: Sprite + netsync: false + drawdepth: WallTops + sprite: Structures/Walls/railing.rsi + state: corner_small + - type: Icon + sprite: Structures/Walls/railing.rsi + state: corner_small + - type: Physics + bodyType: Static + - type: Fixtures + fixtures: + - shape: + !type:PhysShapeAabb + bounds: "-0.49,0.49,-0.3,0.3" + mass: 50 + layer: + - SmallImpassable + mask: + - Impassable + - type: InteractionOutline + - type: Repairable + - type: Damageable + damageContainer: Inorganic + damageModifierSet: FlimsyMetallic + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 20 + behaviors: + - !type:PlaySoundBehavior + sound: + path: /Audio/Effects/metalbreak.ogg + - !type:SpawnEntitiesBehavior + spawn: + PartRodMetal1: + min: 0 + max: 2 + - !type:DoActsBehavior + acts: [ "Destruction" ] + - type: Climbable + - type: Construction + graph: railing + node: railingCornerSmall + diff --git a/Resources/Prototypes/Recipes/Construction/Graphs/structures/railing.yml b/Resources/Prototypes/Recipes/Construction/Graphs/structures/railing.yml index 3914d5007b..21a7d89bbc 100644 --- a/Resources/Prototypes/Recipes/Construction/Graphs/structures/railing.yml +++ b/Resources/Prototypes/Recipes/Construction/Graphs/structures/railing.yml @@ -20,6 +20,14 @@ - material: MetalRod amount: 2 doAfter: 2.5 + - to: railingCornerSmall + completed: + - !type:SnapToGrid + southRotation: true + steps: + - material: MetalRod + amount: 1 + doAfter: 2 - node: railing entity: Railing @@ -46,3 +54,16 @@ steps: - tool: Screwing doAfter: 0.5 + + - node: railingCornerSmall + entity: RailingCornerSmall + edges: + - to: start + completed: + - !type:SpawnPrototype + prototype: PartRodMetal1 + amount: 1 + - !type:DeleteEntity + steps: + - tool: Screwing + doAfter: 0.25 diff --git a/Resources/Prototypes/Recipes/Construction/structures.yml b/Resources/Prototypes/Recipes/Construction/structures.yml index ddfb356606..dc01e95c6e 100644 --- a/Resources/Prototypes/Recipes/Construction/structures.yml +++ b/Resources/Prototypes/Recipes/Construction/structures.yml @@ -307,6 +307,23 @@ conditions: - !type:TileNotBlocked +- type: construction + name: railing corner small + id: RailingCornerSmall + graph: railing + startNode: start + targetNode: railingCornerSmall + category: Structures + description: Basic railing meant to protect idiots like you from falling. + icon: + sprite: Structures/Walls/railing.rsi + state: corner_small + objectType: Structure + placementMode: SnapgridCenter + canBuildInImpassable: false + conditions: + - !type:TileNotBlocked + - type: construction name: airlock id: airlock diff --git a/Resources/Textures/Structures/Walls/railing.rsi/corner_small.png b/Resources/Textures/Structures/Walls/railing.rsi/corner_small.png new file mode 100644 index 0000000000000000000000000000000000000000..6d539d8bb7ad194193e871d8279e1dac576fdf70 GIT binary patch literal 405 zcmV;G0c!q
?d*Y#A}+c+G@k;ZYnBjL^Zs^^M;J*4s!@uK?yfF}L|AfnX)q{`nB
zkRD(okoN