From af83322c90d0ec49da1f8a82f44389a82700ec58 Mon Sep 17 00:00:00 2001 From: Ed <96445749+TheShuEd@users.noreply.github.com> Date: Thu, 13 Feb 2025 18:12:17 +0300 Subject: [PATCH] Glass showcase (#891) * glass showcase * fixes * Update closets.yml * Update closets.yml --- .../Entities/Structures/Furniture/closets.yml | 72 +++++++++++++++++- .../Structures/Windows/directional.yml | 4 +- .../Structures/Furniture/pallets.rsi/buy.png | Bin 144 -> 152 bytes .../Furniture/pallets.rsi/meta.json | 2 +- .../Structures/Furniture/pallets.rsi/sell.png | Bin 145 -> 154 bytes .../Furniture/pallets.rsi/wooden.png | Bin 922 -> 626 bytes .../Storage/glass_showcase.rsi/base.png | Bin 0 -> 776 bytes .../Storage/glass_showcase.rsi/base_door.png | Bin 0 -> 296 bytes .../Storage/glass_showcase.rsi/base_open.png | Bin 0 -> 322 bytes .../Storage/glass_showcase.rsi/meta.json | 20 +++++ 10 files changed, 93 insertions(+), 5 deletions(-) create mode 100644 Resources/Textures/_CP14/Structures/Storage/glass_showcase.rsi/base.png create mode 100644 Resources/Textures/_CP14/Structures/Storage/glass_showcase.rsi/base_door.png create mode 100644 Resources/Textures/_CP14/Structures/Storage/glass_showcase.rsi/base_open.png create mode 100644 Resources/Textures/_CP14/Structures/Storage/glass_showcase.rsi/meta.json diff --git a/Resources/Prototypes/_CP14/Entities/Structures/Furniture/closets.yml b/Resources/Prototypes/_CP14/Entities/Structures/Furniture/closets.yml index 1a43485f64..0cdff5a8ba 100644 --- a/Resources/Prototypes/_CP14/Entities/Structures/Furniture/closets.yml +++ b/Resources/Prototypes/_CP14/Entities/Structures/Furniture/closets.yml @@ -14,7 +14,6 @@ map: ["enum.StorageVisualLayers.Base"] - state: base_door map: ["enum.StorageVisualLayers.Door"] - - type: ItemSlots - type: DamageOnHighSpeedImpact damage: types: @@ -158,4 +157,73 @@ name: vault safe components: - type: CP14Lock - autoGenerateShape: BankVault \ No newline at end of file + autoGenerateShape: BankVault + +- type: entity + id: CP14ClosetGlassShowcase + parent: CP14ClosetBase + name: glass showcase + description: Something of value can be placed here without fear of it being discreetly stolen! + components: + - type: Sprite + drawdepth: Mobs + snapCardinals: true + sprite: _CP14/Structures/Storage/glass_showcase.rsi + state: base + - type: EntityStorage + isCollidableWhenOpen: true + enteringOffset: 0, 0 + capacity: 5 + showContents: true + occludesLight: false + - type: Fixtures + fixtures: + fix1: + shape: + !type:PhysShapeAabb + bounds: "-0.40,-0.40,0.40,0.40" + density: 75 + mask: + - MachineMask + layer: + - MachineLayer + - type: MeleeSound + soundGroups: + Brute: + collection: GlassSmack + - type: Damageable + damageContainer: Inorganic + damageModifierSet: Glass + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 150 #excess damage (nuke?). avoid computational cost of spawning entities. + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + - !type:PlaySoundBehavior + sound: + collection: WindowShatter + - trigger: + !type:DamageTrigger + damage: 50 + behaviors: + - !type:PlaySoundBehavior + sound: + collection: WindowShatter + - !type:SpawnEntitiesBehavior + spawn: + CP14GlassShard: + min: 1 + max: 2 + - !type:DoActsBehavior + acts: [ "Destruction" ] + - type: ContainerContainer + containers: + entity_storage: !type:Container + showEnts: True + occludes: False + paper_label: !type:ContainerSlot + showEnts: False + occludes: True \ No newline at end of file diff --git a/Resources/Prototypes/_CP14/Entities/Structures/Windows/directional.yml b/Resources/Prototypes/_CP14/Entities/Structures/Windows/directional.yml index c9123c0428..3495ed92a0 100644 --- a/Resources/Prototypes/_CP14/Entities/Structures/Windows/directional.yml +++ b/Resources/Prototypes/_CP14/Entities/Structures/Windows/directional.yml @@ -60,7 +60,7 @@ collection: WindowShatter - trigger: !type:DamageTrigger - damage: 25 + damage: 50 behaviors: - !type:PlaySoundBehavior sound: @@ -69,7 +69,7 @@ spawn: CP14GlassShard: min: 1 - max: 1 + max: 2 - !type:DoActsBehavior acts: [ "Destruction" ] - type: Airtight diff --git a/Resources/Textures/_CP14/Structures/Furniture/pallets.rsi/buy.png b/Resources/Textures/_CP14/Structures/Furniture/pallets.rsi/buy.png index 6c6f9f8e3085eb29b48862ee642a33e61856b018..7e5e79bd3791fa59b9dabe382894693f51972d08 100644 GIT binary patch delta 110 zcmV-!0FnQY0hj@hF=tXqL_t(og=1hCEZ|v<$^U_{i-}&A;sS%m0YVx=bh8wzUDw@} z=#~cPY1b$q9*mX)1MYy)a$pn;I2bJl2HXLo<-jNya4=d947dYE%YhLK09h$18H(AL Q6951J07*qoM6N<$g0(6sWdHyG delta 102 zcmV-s0Ga=o0gwTZF<(kaL_t(oh3%8E2>>7v#13b2JU4U?OW`NbUak)VM7A!0c^;I1lR-EkPQj22e9GSY?`wwA*nx;?f?J)07*qo IM6N<$f-Vm!asU7T diff --git a/Resources/Textures/_CP14/Structures/Furniture/pallets.rsi/meta.json b/Resources/Textures/_CP14/Structures/Furniture/pallets.rsi/meta.json index ecc9ee14e4..46812fed17 100644 --- a/Resources/Textures/_CP14/Structures/Furniture/pallets.rsi/meta.json +++ b/Resources/Textures/_CP14/Structures/Furniture/pallets.rsi/meta.json @@ -1,7 +1,7 @@ { "version": 1, "license": "All right reserved", - "copyright": "Created by TheShuEd (Github) and resprite by Jaraten and vladimir.s", + "copyright": "Created by TheShuEd (Github) and resprite by Jaraten and vladimir.s", "size": { "x": 32, "y": 32 diff --git a/Resources/Textures/_CP14/Structures/Furniture/pallets.rsi/sell.png b/Resources/Textures/_CP14/Structures/Furniture/pallets.rsi/sell.png index 4055504c28817a05ab46a3f44eff2e509c262217..3914d3fd0b57c205781873efa40d5cac3d02687c 100644 GIT binary patch delta 112 zcmV-$0FVEX0h$4jF=C>U@sS`G}j14he%5eoq0cqZvB S=zv220000 delta 103 zcmV-t0GR)p0g(ZaF9idNPsljA7>1t^6Qi__f@RTxRs|^og$X7YJN6Io zBl!c2tPF?>A?N}MhA;$KPGpzJP8*rQoP9p~PByLRl6P_L%YApB?|a|(3^$A(z{#_t zOaz=k&zNA_eS-KB0MD_Cc$#jo?LKL`Y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4RG#&r| N002ovPDHLkV1m-JvTgtX diff --git a/Resources/Textures/_CP14/Structures/Storage/glass_showcase.rsi/base.png b/Resources/Textures/_CP14/Structures/Storage/glass_showcase.rsi/base.png new file mode 100644 index 0000000000000000000000000000000000000000..0e83c0e57c27e4969ef95810effab6bc735a1e63 GIT binary patch literal 776 zcmV+j1NZ!iP)Px%!bwCyRA_S)`CbU_)A(WEB_7D$orn8^!WI48rVjSY?V*x&jYi;mJ?hF8M<6&ct#OcG{R&_EGj%EbC6MIKC`61DTA33QE2Dwbvjt?;FV}>QsA43>X)LC%VAp^jAbJl9 z;AYIdg0NmOyNW@9TrU>rvnPOAL4J0+MgW#7ED#Lk(F(A&?G-hBpraxF+h;1GS1H@4(4idyw zCJX{(rc~@Fh^M{44-g8VetgD<0g}t6G+vq>;946qLpTM|dr$y!X7>tV2SVB=UI4Qj z{%T)DzH|xzC=K86Laz*B;*B@!-fUJzMsTKq)qhsYn*QmV~(+e8t^@EJSni~MVbN7YInY8Jj{Q_xT zx}_OfIt2Z4O@P$Hk*wfm=?)MT!(DQlv=#t$qXI%WOy^qSkW&00006M5_{+h<2U6IdXXuqF0% z!_4=SufM)~{T?SH&=erJV4xfNVa~GG@g~yk4;RV2ULmx7_ug$D^F(hM+kcp|^wv7@ zKL;+Go!WdzBSSYK_(inRG5H_u9YyRRttrNnPZYl^s+f6tbLge}7MwpCmz$IezT{ok zpRmX`ocl@S$8SpE6D@Xi9{#A3cDZxkZi6=sbK>Vpo_?lw@szB_{%had7rlFt`p$}T qwdxw>pw_JoD?KBh2@8UqmC<9p@_K$F!!4C1Aik%opUXO@geCwb41K)- literal 0 HcmV?d00001 diff --git a/Resources/Textures/_CP14/Structures/Storage/glass_showcase.rsi/base_open.png b/Resources/Textures/_CP14/Structures/Storage/glass_showcase.rsi/base_open.png new file mode 100644 index 0000000000000000000000000000000000000000..f64be8b74dddd38c970d95358fca0240639f89fb GIT binary patch literal 322 zcmV-I0lof-P)Px#{7FPXRA_z1o6#vZcdxGb41MioI-|_-UZG4&1b5Wsx?tIIYpU!hPc+6DmZ9fW2_w+47g zKVF~DUS3D#@OxAq@9sYxpPo>woLyK2>|_sr$;2_4X$)UhXP1KKhZ*k!81{ecue0_B z3Z