diff --git a/Resources/Prototypes/_CP14/Entities/Structures/GirderFrame/frame.yml b/Resources/Prototypes/_CP14/Entities/Structures/GirderFrame/frame.yml index ca1cbc71f3..5768f0e3d5 100644 --- a/Resources/Prototypes/_CP14/Entities/Structures/GirderFrame/frame.yml +++ b/Resources/Prototypes/_CP14/Entities/Structures/GirderFrame/frame.yml @@ -34,4 +34,38 @@ - type: InteractionOutline - type: Construction graph: CP14WallWood - node: FrameWooden \ No newline at end of file + node: FrameWooden + +- type: entity + id: CP14BaseCrushed + parent: BaseStructure + abstract: true + placement: + mode: SnapgridCenter + snap: + - Wall + components: + - type: Sprite + drawdepth: Mobs + snapCardinals: true + sprite: _CP14/Structures/Walls/bricks_stone_wall.rsi + state: crushed_medium + - type: PlacementReplacement + key: walls + - type: Transform + anchored: true + noRot: false + - type: Physics + bodyType: Static + - type: Fixtures + fixtures: + fix1: + shape: + !type:PhysShapeAabb + bounds: "-0.45,-0.45,0.45,0.45" + density: 60 + mask: + - MachineMask + layer: + - GlassAirlockLayer + - type: InteractionOutline \ No newline at end of file diff --git a/Resources/Prototypes/_CP14/Entities/Structures/Walls/walls.yml b/Resources/Prototypes/_CP14/Entities/Structures/Walls/walls.yml index e0dc7f68e0..82ccc21320 100644 --- a/Resources/Prototypes/_CP14/Entities/Structures/Walls/walls.yml +++ b/Resources/Prototypes/_CP14/Entities/Structures/Walls/walls.yml @@ -34,7 +34,78 @@ - type: Construction graph: CP14WallStonebrick node: WallStonebrick + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 150 + behaviors: + - !type:SpawnEntitiesBehavior + spawn: + CP14WallStonebrickCrushedMedium: + min: 1 + max: 1 + - !type:DoActsBehavior + acts: [ "Destruction" ] + +- type: entity ### Crushed Medium + id: CP14WallStonebrickCrushedMedium + name: stone brick wall + parent: CP14BaseCrushed + suffix: CrushedMedium + components: + - type: Sprite + sprite: _CP14/Structures/Walls/bricks_stone_wall.rsi + state: crushed_medium + - type: Icon + sprite: _CP14/Structures/Walls/bricks_stone_wall.rsi + state: crushed_medium + - type: Transform + anchored: true + noRot: false + - type: Damageable + damageContainer: Inorganic + damageModifierSet: Metallic + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 50 + behaviors: + - !type:SpawnEntitiesBehavior + spawn: + CP14WallStonebrickCrushedLow: + min: 1 + max: 1 + - !type:DoActsBehavior + acts: [ "Destruction" ] +- type: entity ### Crushed Low + id: CP14WallStonebrickCrushedLow + name: stone brick wall + parent: CP14BaseCrushed + suffix: CrushedLow + components: + - type: Sprite + sprite: _CP14/Structures/Walls/bricks_stone_wall.rsi + state: crushed_low + - type: Icon + sprite: _CP14/Structures/Walls/bricks_stone_wall.rsi + state: crushed_low + - type: Transform + anchored: true + noRot: false + - type: Damageable + damageContainer: Inorganic + damageModifierSet: Metallic + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 50 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] - type: entity id: CP14WallWhitebrick diff --git a/Resources/Textures/_CP14/Structures/Walls/bricks_stone_wall.rsi/crushed_low.png b/Resources/Textures/_CP14/Structures/Walls/bricks_stone_wall.rsi/crushed_low.png new file mode 100644 index 0000000000..ced0259f68 Binary files /dev/null and b/Resources/Textures/_CP14/Structures/Walls/bricks_stone_wall.rsi/crushed_low.png differ diff --git a/Resources/Textures/_CP14/Structures/Walls/bricks_stone_wall.rsi/crushed_medium.png b/Resources/Textures/_CP14/Structures/Walls/bricks_stone_wall.rsi/crushed_medium.png new file mode 100644 index 0000000000..f47717a6db Binary files /dev/null and b/Resources/Textures/_CP14/Structures/Walls/bricks_stone_wall.rsi/crushed_medium.png differ diff --git a/Resources/Textures/_CP14/Structures/Walls/bricks_stone_wall.rsi/meta.json b/Resources/Textures/_CP14/Structures/Walls/bricks_stone_wall.rsi/meta.json index b7171db752..fa612e4cb7 100644 --- a/Resources/Textures/_CP14/Structures/Walls/bricks_stone_wall.rsi/meta.json +++ b/Resources/Textures/_CP14/Structures/Walls/bricks_stone_wall.rsi/meta.json @@ -1,7 +1,7 @@ { "version": 1, "license": "All rights reserved for the CrystallPunk14 project only", - "copyright": "By jaraten(discord)", + "copyright": "By jaraten(GitHub/discord)", "size": { "x": 32, "y": 64 @@ -10,6 +10,12 @@ { "name": "full" }, + { + "name": "crushed_medium" + }, + { + "name": "crushed_low" + }, { "name": "stonebricks0", "directions": 4