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 0000000000..fbd0d5c854 Binary files /dev/null and b/Resources/Textures/Structures/Storage/wall_locker.rsi/door.png differ diff --git a/Resources/Textures/Structures/Storage/wall_locker.rsi/locked.png b/Resources/Textures/Structures/Storage/wall_locker.rsi/locked.png new file mode 100644 index 0000000000..51e409e869 Binary files /dev/null and b/Resources/Textures/Structures/Storage/wall_locker.rsi/locked.png differ diff --git a/Resources/Textures/Structures/Storage/wall_locker.rsi/meta.json b/Resources/Textures/Structures/Storage/wall_locker.rsi/meta.json new file mode 100644 index 0000000000..26a29349e1 --- /dev/null +++ b/Resources/Textures/Structures/Storage/wall_locker.rsi/meta.json @@ -0,0 +1,23 @@ +{ + "version": 1, + "license": "CC-BY-SA-3.0", + "copyright": "https://github.com/space-wizards/space-station-14/pull/10673, modified from TGstation commit 4a274a6e4b195dfcaffd20d7348631131418ecb5", + "size": { + "x": 32, + "y": 32 + }, + "states": [ + { + "name": "door" + }, + { + "name": "locked" + }, + { + "name": "unlocked" + }, + { + "name": "welded" + } + ] +} diff --git a/Resources/Textures/Structures/Storage/wall_locker.rsi/unlocked.png b/Resources/Textures/Structures/Storage/wall_locker.rsi/unlocked.png new file mode 100644 index 0000000000..7935a7c0f9 Binary files /dev/null and b/Resources/Textures/Structures/Storage/wall_locker.rsi/unlocked.png differ 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 0000000000..5ba5dcc896 Binary files /dev/null and b/Resources/Textures/Structures/Storage/wall_locker.rsi/welded.png differ