From a96c32df1131529db5522b17c90a4804945c5cb2 Mon Sep 17 00:00:00 2001 From: Agoichi <92464780+Agoichi@users.noreply.github.com> Date: Sat, 13 Apr 2024 23:22:25 +0300 Subject: [PATCH] wooded chestb (#89) * wooded chestb * Update Resources/Textures/_CP14/Structures/Storage/Crates/woodenchest.rsi/meta.json Co-authored-by: Ed <96445749+TheShuEd@users.noreply.github.com> * Update base_chest.yml * Update chests.yml --------- Co-authored-by: Ed <96445749+TheShuEd@users.noreply.github.com> --- .../Structures/Storage/Crates/base_chest.yml | 69 ++++++++++++++++++ .../Structures/Storage/Crates/chests.yml | 38 ++++++++++ .../Storage/Crates/woodenchest.rsi/base.png | Bin 0 -> 377 bytes .../Storage/Crates/woodenchest.rsi/closed.png | Bin 0 -> 354 bytes .../Storage/Crates/woodenchest.rsi/icon.png | Bin 0 -> 546 bytes .../Storage/Crates/woodenchest.rsi/meta.json | 23 ++++++ .../Storage/Crates/woodenchest.rsi/open.png | Bin 0 -> 319 bytes 7 files changed, 130 insertions(+) create mode 100644 Resources/Prototypes/_CP14/Entities/Structures/Storage/Crates/base_chest.yml create mode 100644 Resources/Prototypes/_CP14/Entities/Structures/Storage/Crates/chests.yml create mode 100644 Resources/Textures/_CP14/Structures/Storage/Crates/woodenchest.rsi/base.png create mode 100644 Resources/Textures/_CP14/Structures/Storage/Crates/woodenchest.rsi/closed.png create mode 100644 Resources/Textures/_CP14/Structures/Storage/Crates/woodenchest.rsi/icon.png create mode 100644 Resources/Textures/_CP14/Structures/Storage/Crates/woodenchest.rsi/meta.json create mode 100644 Resources/Textures/_CP14/Structures/Storage/Crates/woodenchest.rsi/open.png diff --git a/Resources/Prototypes/_CP14/Entities/Structures/Storage/Crates/base_chest.yml b/Resources/Prototypes/_CP14/Entities/Structures/Storage/Crates/base_chest.yml new file mode 100644 index 0000000000..aae7b112e3 --- /dev/null +++ b/Resources/Prototypes/_CP14/Entities/Structures/Storage/Crates/base_chest.yml @@ -0,0 +1,69 @@ +- type: entity + parent: BaseStructureDynamic + id: CPChestGeneric + noSpawn: true + name: Chest + description: Chest. + components: + - type: Transform + noRot: true + - type: Icon + sprite: _CP14/Structures/Storage/Crates/woodenchest.rsi + state: icon + - type: Sprite + noRot: true + sprite: _CP14/Structures/Storage/Crates/woodenchest.rsi + layers: + - state: base + map: ["enum.StorageVisualLayers.Base"] + - state: closed + map: ["enum.StorageVisualLayers.Door"] + - type: InteractionOutline + - type: Physics + - type: Fixtures + fixtures: + fix1: + shape: + !type:PhysShapeAabb + bounds: "-0.4,-0.4,0.4,0.29" + density: 50 + mask: + - SmallMobMask #this is so they can go under plastic flaps + layer: + - MachineLayer + - type: EntityStorage + - type: PlaceableSurface + isPlaceable: false # defaults to closed. + - type: Damageable + damageContainer: StructuralInorganic + damageModifierSet: Metallic + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 50 + behaviors: + - !type:DoActsBehavior + acts: ["Destruction"] + - !type:PlaySoundBehavior + sound: + collection: MetalBreak + - type: Appearance + - type: EntityStorageVisuals + stateDoorOpen: open + stateDoorClosed: closed + - type: PaperLabel + labelSlot: + insertVerbText: Attach Label + ejectVerbText: Remove Label + whitelist: + components: + - Paper + - type: ContainerContainer + containers: + entity_storage: !type:Container + paper_label: !type:ContainerSlot + - type: ItemSlots + - type: StaticPrice + price: 50 + diff --git a/Resources/Prototypes/_CP14/Entities/Structures/Storage/Crates/chests.yml b/Resources/Prototypes/_CP14/Entities/Structures/Storage/Crates/chests.yml new file mode 100644 index 0000000000..36b2fcc13d --- /dev/null +++ b/Resources/Prototypes/_CP14/Entities/Structures/Storage/Crates/chests.yml @@ -0,0 +1,38 @@ +- type: entity + parent: CPChestGeneric + id: CPWoodenChest + name: wooden chest + description: Good wooden chest. + components: + - type: Icon + sprite: _CP14/Structures/Storage/Crates/woodenchest.rsi + - type: Sprite + sprite: _CP14/Structures/Storage/Crates/woodenchest.rsi + layers: + - state: base + map: ["enum.StorageVisualLayers.Base"] + - state: closed + map: ["enum.StorageVisualLayers.Door"] + - type: Damageable + damageModifierSet: Web + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 150 + behaviors: + - !type:DoActsBehavior + acts: ["Destruction"] + - !type:PlaySoundBehavior + sound: + collection: WoodDestroy + - !type:SpawnEntitiesBehavior + spawn: + MaterialWoodPlank: + min: 2 + max: 3 + - type: EntityStorage + closeSound: + path: /Audio/Effects/woodenclosetclose.ogg + openSound: + path: /Audio/Effects/woodenclosetopen.ogg diff --git a/Resources/Textures/_CP14/Structures/Storage/Crates/woodenchest.rsi/base.png b/Resources/Textures/_CP14/Structures/Storage/Crates/woodenchest.rsi/base.png new file mode 100644 index 0000000000000000000000000000000000000000..807e696fea82af15a145ca6d88d68a1eabd54f35 GIT binary patch literal 377 zcmV-<0fzpGP)Px$Gf6~2R9J=Wl)X;FFcgK4<0KZMio{R>3k#y}tt2m}KE9ioG?qhr<15-&~jLg4)R ziU2^YlkF_Qk?o0<6G8 zv|0wFsy_!h_gl?Hljdh`={I1F^%qyD%q0LoKsjqJnl!qmv8vsjJugr4?Rd1^G$H literal 0 HcmV?d00001 diff --git a/Resources/Textures/_CP14/Structures/Storage/Crates/woodenchest.rsi/closed.png b/Resources/Textures/_CP14/Structures/Storage/Crates/woodenchest.rsi/closed.png new file mode 100644 index 0000000000000000000000000000000000000000..5097e5e7636e43352d3e1c00ebd2be29567a330b GIT binary patch literal 354 zcmV-o0iFJdP)Px$97#k$R9J=WmA!7lFce0=IF5@5iV#yJ9tAcAUIm_q1+g%7fHy$26Uw7B1C{!N zNNJ6UI}if_VkHp4P@l=U*U@);qa=XAU@-i5EM2qHZpb1+`V&7j=cI8MT5}&DHqlk# z)FyZje^X@=7oB!PR?7@RYybevp@j(Wwb-tyjn8kMkRWQ&Z8c?y+E;~Tp+s$TTg}~+ ziEi^PFamcMpt@$Y3;+bnQ2!=W-2FKY_p18*D~CYMwXh7gHwGU<8?0FH^Mb1GF%k<| z2)IVTV^PQ AHUIzs literal 0 HcmV?d00001 diff --git a/Resources/Textures/_CP14/Structures/Storage/Crates/woodenchest.rsi/icon.png b/Resources/Textures/_CP14/Structures/Storage/Crates/woodenchest.rsi/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..50e5b6e003f3b1b96a8514557cabc9b5a599423b GIT binary patch literal 546 zcmV+-0^R+IP)Px$+(|@1R9J=Wma$92KorKm++7k$OHmg$7Y7Fy!BIC62N!22NBsvXI5;>6IyyND zLUD9)5Ope!f{TKKi(o+uR)dPYTyhTWCB4R^N{b!L4@%Sf-n;kZC3ig_BO{~F7-{0l z{Iu*vk-d|P#5ysdwdiophVX-~iZe>^{9aEqqy1Q!pO%A;1tEL@fMv3t7~r00Tr-N7 z53ZRY>SA?vMh-CARk5Eiz$jK{XTmO%wBWxWGthSfEKMAA0D$1_J$)tQbJ2aY#;WnB z*W_FR0H@`PmbGudVFV5%sMG{1H363gsUH>B9;?RGe8ahD)vKCX2MSiBXs>a35Plad zg6e0~rO-gt^^kW6%w{)DGxh2G8n3w-xjaDC^>hQJgG0Q22;AKJFlq98={0x7rS&5A zH@7uyd1DQwt(}JX4s&oJQ93w`3@CCog+=wh2kuL7Az?8CdAkvQc3wttZx>IMhcNE! zyo@1-#d6~F8Q>y%%%M6rF(pR|ChESgCD@eWtsWq66HOamSk&TfkB>U$DDBbpaC&`d z#5(XBS_^hV-!~%7fROR?hZ_4%OCl|&eXQ>t(B6ShF42BS@*oqnB+_z}rqI;M(XpPK k0XuPZfA_OH$@mw10gz_ymOLEjMF0Q*07*qoM6N<$f=6%hT>t<8 literal 0 HcmV?d00001 diff --git a/Resources/Textures/_CP14/Structures/Storage/Crates/woodenchest.rsi/meta.json b/Resources/Textures/_CP14/Structures/Storage/Crates/woodenchest.rsi/meta.json new file mode 100644 index 0000000000..da6191aa43 --- /dev/null +++ b/Resources/Textures/_CP14/Structures/Storage/Crates/woodenchest.rsi/meta.json @@ -0,0 +1,23 @@ +{ + "version": 1, + "license": "CC-BY-SA-3.0", + "copyright": "Created by Agoichi (Github) for CrystallPunk", + "size": { + "x": 32, + "y": 32 + }, + "states": [ + { + "name": "icon" + }, + { + "name": "base" + }, + { + "name": "closed" + }, + { + "name": "open" + } + ] +} \ No newline at end of file diff --git a/Resources/Textures/_CP14/Structures/Storage/Crates/woodenchest.rsi/open.png b/Resources/Textures/_CP14/Structures/Storage/Crates/woodenchest.rsi/open.png new file mode 100644 index 0000000000000000000000000000000000000000..872130da99f94ad50cdf4db4faf48451be88b748 GIT binary patch literal 319 zcmV-F0l@x=P)Px#`AI}UR9J=WluZi4Fc5`b+N53dAnv??_=Dgb1dl36RlI;Z!L8s01ly#I3rU-5 z)Fx6y$hRsJX5PzWrUVWww>!CBrH$BlI>Br>Ahxxtgi)_AW6E6oSd$5k&0$XffU00j z86rx+!k|-eUX%dpi&FiNg#j*E(MX7>byuIrg{;1lI7BXL4dZnqN-AMJ*+n=PvQh65 zYK&?|R1sG`b?~hLMJe431myGcbvtn___={rPtc~7ofuHV=emme7FZehR#?$yl^X_l zQ6h=MuS88St>pbrXfTiojw^q5I$q3iI-PM$Q)}T@xunCH@_0NRkH_QrKW>LXQ#`I? R%$NWG002ovPDHLkV1nohg#Q2l literal 0 HcmV?d00001