Reuse backpack parent on duffel/satchel (#19664)

Reuses ClothingBackpack to simplify duffel/satchel
This commit is contained in:
lzk
2023-08-30 23:36:12 +02:00
committed by GitHub
parent 4fb46c1cb6
commit 6bbdbc9a9f
2 changed files with 2 additions and 40 deletions

View File

@@ -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

View File

@@ -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