From cf6b42d20cb485ab36ba9a8508a6c5b62845d800 Mon Sep 17 00:00:00 2001 From: Jaraten <116667537+Jaraten@users.noreply.github.com> Date: Sun, 28 Jul 2024 17:27:24 +0300 Subject: [PATCH] Stone-brick wall crushed (#336) --- .../Entities/Structures/GirderFrame/frame.yml | 36 ++++++++- .../_CP14/Entities/Structures/Walls/walls.yml | 71 ++++++++++++++++++ .../bricks_stone_wall.rsi/crushed_low.png | Bin 0 -> 1806 bytes .../bricks_stone_wall.rsi/crushed_medium.png | Bin 0 -> 1813 bytes .../Walls/bricks_stone_wall.rsi/meta.json | 8 +- 5 files changed, 113 insertions(+), 2 deletions(-) create mode 100644 Resources/Textures/_CP14/Structures/Walls/bricks_stone_wall.rsi/crushed_low.png create mode 100644 Resources/Textures/_CP14/Structures/Walls/bricks_stone_wall.rsi/crushed_medium.png 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 0000000000000000000000000000000000000000..ced0259f6807998c33cb878f84097d41b8b47636 GIT binary patch literal 1806 zcmV+p2l4ocP)Px*$Vo&&RA_2ZhI!#*+X*id!b$Re%1R`zXBGtpam`H z|4d6iN9fbt&mNM$^R8#UdtqR{zrXtDf7PG;ImVL)g%GKIvA+kv+1FqFBz+&{z~S+W z2O$JfN`w#y;StC29N$)@!WrpE*4z~e7|P&{N~rcN=2&fSEn@~gol*U7*7^h-LD$w z!cdqHYA2-(n5AAAm?&A6MI6Wc;ZJ`~?E_?$L1k=O;a;k+^ob9SP6)%cNsp9r;(Q`n zQoi?F2#=ke?P(26oLD+Me(|ugvu#3J_p7P=2R~i|VCQmXeYRG5VL;UHo3$iw^2AZU zKeuO6U|AN&&!18EtCY)SGMNmQ7w1MGlUZgZtJrhvPXHK>M#hP}tDODi{viOFOvV@) zkH-ughu5`lQ}rdKR1WA${r&HLYlNaGGRl>bd&c9K+^R)?Fh6{HVSx9z!eB5^QLt@g zcrc*b?V8Bwbfg^6#c^vX6T1Sx)PSo7)A$8n5hS!xadBx|4- z1~`smgga40CyMCzBScxynM9^w+W@q}cg9E@53sD&IY*{75+L^Xh~t)^8av%)b zCMoiv64a)mYH1W0VR#Kz{+No3#g`qg(z z?@W6y>FZU`fW~dzgjk1AS8b;qQvcT#0L5YfXR_aEHWJ3+_T~q~W7R3H`v`#VzkSL2 z##ZW(FlobH7*L-~u3i|hY8NRMi{zamb-zj{5ea~e$|sacWwqA4qflC>(`*nAM@DfJ zHqH0_{n*ru5MmN>IW5A2qZ8ALjUV4qa5S@r>#Et`i6S;CpRl!4PUW#wD${JS^i zS+KGB6vwe~AFZY2!gnnk$EMqzc8!kq#rdha3p8l3EGu==-M!CoAFY{dR-e|k3#pdM z71pR!e!)t1C1rd#8Uk=teM!{s<2{~7PFbCoRt$&D({-lacthTTD043Be!Z7k#`agQdhn2*Cv2u(wp_`YkFb8IOk9(77?P%Xmn4j z)iTO9o@`D}IDR1N_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