From 12ab9e838ea2d26486cb576a82cd3da46d1ab755 Mon Sep 17 00:00:00 2001 From: Martin Petkovski <63034378+martin69420@users.noreply.github.com> Date: Wed, 24 Aug 2022 17:08:57 +1000 Subject: [PATCH] Add wall mounted lockers (#10673) --- .../Storage/Closets/wall_lockers.yml | 48 ++++++++++++++++++ .../Storage/wall_locker.rsi/door.png | Bin 0 -> 223 bytes .../Storage/wall_locker.rsi/locked.png | Bin 0 -> 148 bytes .../Storage/wall_locker.rsi/meta.json | 23 +++++++++ .../Storage/wall_locker.rsi/unlocked.png | Bin 0 -> 148 bytes .../Storage/wall_locker.rsi/welded.png | Bin 0 -> 206 bytes 6 files changed, 71 insertions(+) create mode 100644 Resources/Prototypes/Entities/Structures/Storage/Closets/wall_lockers.yml create mode 100644 Resources/Textures/Structures/Storage/wall_locker.rsi/door.png create mode 100644 Resources/Textures/Structures/Storage/wall_locker.rsi/locked.png create mode 100644 Resources/Textures/Structures/Storage/wall_locker.rsi/meta.json create mode 100644 Resources/Textures/Structures/Storage/wall_locker.rsi/unlocked.png create mode 100644 Resources/Textures/Structures/Storage/wall_locker.rsi/welded.png diff --git a/Resources/Prototypes/Entities/Structures/Storage/Closets/wall_lockers.yml b/Resources/Prototypes/Entities/Structures/Storage/Closets/wall_lockers.yml new file mode 100644 index 0000000000..2646f4fae8 --- /dev/null +++ b/Resources/Prototypes/Entities/Structures/Storage/Closets/wall_lockers.yml @@ -0,0 +1,48 @@ +- type: entity + id: BaseWallLocker + placement: + mode: SnapgridCenter + abstract: true + components: + - type: Clickable + - type: InteractionOutline + - type: WallMount + arc: 180 + - type: Sprite + drawdepth: WallMountedItems + netsync: false + sprite: Structures/Storage/wall_locker.rsi + layers: + - state: door + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 50 + behaviors: + - !type:DoActsBehavior + acts: ["Destruction"] + - !type:PlaySoundBehavior + sound: + path: /Audio/Effects/metalbreak.ogg + - !type:SpawnEntitiesBehavior + spawn: + SheetSteel1: + min: 1 + max: 2 + - type: Storage + capacity: 100 + - type: UserInterface + interfaces: + - key: enum.StorageUiKey.Key + type: StorageBoundUserInterface + - type: ContainerContainer + containers: + storagebase: !type:Container + ents: [] + +- type: entity + id: WallLocker + parent: BaseWallLocker + name: wall locker + description: A locker built into the wall. diff --git a/Resources/Textures/Structures/Storage/wall_locker.rsi/door.png b/Resources/Textures/Structures/Storage/wall_locker.rsi/door.png new file mode 100644 index 0000000000000000000000000000000000000000..fbd0d5c854152cebc78f5ad0ee90d4ee60eb721e GIT binary patch literal 223 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyjKx9jP7LeL$-D$|)B}7%T!AzP z2L~S?pS`_(Zfeu2@@tvoH%jGk|jrv9z7Gtuv}NK6R4E8B*-tA;Xe}4 zWpP{!l<@U*aSXBOO-_)=Y!K#52tUBfE~1gZ&Lq$p$|!w^#cU4O0<{NW4i{Jy9xyTO z;j(aGn9n5UCZ;CVC1TLbpcua)DfECBJF5r7>Lx*6hW&Nyjtf@&dIB_UUknsb@^o}4Fv-ZI5{vX k8!I!i_OOWbG&yoJ=vy*~d#&322B@0B)78&qol`;+07OA1LjV8( literal 0 HcmV?d00001 diff --git a/Resources/Textures/Structures/Storage/wall_locker.rsi/welded.png b/Resources/Textures/Structures/Storage/wall_locker.rsi/welded.png new file mode 100644 index 0000000000000000000000000000000000000000..5ba5dcc89629b486b489f8afc2a0ac2ed366c27f GIT binary patch literal 206 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnF3?v&v(vJfv^#Gp`S0L@+;Narq6c7*)92^`T z5|WsZkddCApPye-QPJ4Y(AU*9dGh2BpB4T9l`@tD`2{mLJiCzwph#_&!%v3oMt;US#13y~q-w%fThFV0PoW zMG-=G^~G9b!ZJJ64yPX> literal 0 HcmV?d00001