From 6bbdbc9a9fbbbbb60b9d4c75af15a2cc313ee361 Mon Sep 17 00:00:00 2001 From: lzk <124214523+lzk228@users.noreply.github.com> Date: Wed, 30 Aug 2023 23:36:12 +0200 Subject: [PATCH] Reuse backpack parent on duffel/satchel (#19664) Reuses ClothingBackpack to simplify duffel/satchel --- .../Entities/Clothing/Back/duffel.yml | 20 +---------------- .../Entities/Clothing/Back/satchel.yml | 22 +------------------ 2 files changed, 2 insertions(+), 40 deletions(-) diff --git a/Resources/Prototypes/Entities/Clothing/Back/duffel.yml b/Resources/Prototypes/Entities/Clothing/Back/duffel.yml index 0892dd727e..b9cc9ca266 100644 --- a/Resources/Prototypes/Entities/Clothing/Back/duffel.yml +++ b/Resources/Prototypes/Entities/Clothing/Back/duffel.yml @@ -1,34 +1,16 @@ - type: entity - parent: Clothing + parent: ClothingBackpack id: ClothingBackpackDuffel name: duffel bag description: A large duffel bag for holding extra things. components: - type: Sprite sprite: Clothing/Back/Duffels/duffel.rsi - state: icon - - type: Item - size: 9999 - - type: Clothing - quickEquip: false - slots: - - back - type: Storage capacity: 120 - - type: ContainerContainer - containers: - storagebase: !type:Container - ents: [] - type: ClothingSpeedModifier walkModifier: 1 sprintModifier: 0.9 - - type: UserInterface - interfaces: - - key: enum.StorageUiKey.Key - type: StorageBoundUserInterface - # to prevent bag open/honk spam - - type: UseDelay - delay: 0.5 - type: entity parent: ClothingBackpackDuffel diff --git a/Resources/Prototypes/Entities/Clothing/Back/satchel.yml b/Resources/Prototypes/Entities/Clothing/Back/satchel.yml index bb606bc3bc..e80b0d6f8b 100644 --- a/Resources/Prototypes/Entities/Clothing/Back/satchel.yml +++ b/Resources/Prototypes/Entities/Clothing/Back/satchel.yml @@ -1,31 +1,11 @@ - type: entity - parent: Clothing + parent: ClothingBackpack id: ClothingBackpackSatchel name: satchel description: A trendy looking satchel. components: - type: Sprite sprite: Clothing/Back/Satchels/satchel.rsi - state: icon - - type: Item - size: 9999 - - type: Clothing - quickEquip: false - slots: - - back - - type: Storage - capacity: 100 - - type: ContainerContainer - containers: - storagebase: !type:Container - ents: [] - - type: UserInterface - interfaces: - - key: enum.StorageUiKey.Key - type: StorageBoundUserInterface - # to prevent bag open/honk spam - - type: UseDelay - delay: 0.5 - type: entity parent: ClothingBackpackSatchel