Make boots with storage use itemslot (#22186)

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas 2023-12-06 21:58:25 +00:00 committed by Debug
parent a5f4a4abde
commit 0786e9eb35
5 changed files with 35 additions and 39 deletions

View File

@ -0,0 +1 @@
clothing-military-boots-sidearm = Sidearm

View File

@ -3,16 +3,18 @@
parent: ClothingShoesBootsCombat
suffix: Filled
components:
- type: StorageFill
contents:
- id: CombatKnife
- type: ContainerFill
containers:
item:
- CombatKnife
- type: entity
id: ClothingShoesBootsMercFilled
parent: ClothingShoesBootsMerc
suffix: Filled
components:
- type: StorageFill
contents:
- id: KukriKnife
- type: ContainerFill
containers:
item:
- KukriKnife

View File

@ -33,18 +33,18 @@
- id: MaterialCloth1
amount: 1
# stuff common to all military boots
- type: entity
abstract: true
parent: ClothingShoesBase
id: ClothingShoesStorageBase
parent: [ClothingShoesBase, ClothingSlotBase]
id: ClothingShoesMilitaryBase
components:
- type: Storage
capacity: 10
- type: ContainerContainer
containers:
storagebase: !type:Container
ents: []
- type: UserInterface
interfaces:
- key: enum.StorageUiKey.Key
type: StorageBoundUserInterface
- type: Matchbox
- type: ItemSlots
slots:
item:
name: clothing-military-boots-sidearm
whitelist:
tags:
- Knife
- Sidearm

View File

@ -11,7 +11,7 @@
- type: Matchbox
- type: entity
parent: ClothingShoesStorageBase
parent: ClothingShoesMilitaryBase
id: ClothingShoesBootsJack
name: jackboots
description: Nanotrasen-issue Security combat boots for combat scenarios or combat situations. All combat, all the time.
@ -20,12 +20,6 @@
sprite: Clothing/Shoes/Boots/jackboots.rsi
- type: Clothing
sprite: Clothing/Shoes/Boots/jackboots.rsi
- type: Matchbox
- type: Storage
whitelist:
tags:
- Knife
- Sidearm
- type: entity
parent: ClothingShoesBaseButcherable
@ -51,7 +45,7 @@
sprite: Clothing/Shoes/Boots/performer.rsi
- type: entity
parent: ClothingShoesStorageBase
parent: ClothingShoesMilitaryBase
id: ClothingShoesBootsCombat
name: combat boots
description: Robust combat boots for combat scenarios or combat situations. All combat, all the time.
@ -60,15 +54,9 @@
sprite: Clothing/Shoes/Boots/combatboots.rsi
- type: Clothing
sprite: Clothing/Shoes/Boots/combatboots.rsi
- type: Matchbox
- type: Storage
whitelist:
tags:
- Knife
- Sidearm
- type: entity
parent: ClothingShoesStorageBase
parent: ClothingShoesMilitaryBase
id: ClothingShoesBootsMerc
name: mercenary boots
description: Boots that have gone through many conflicts and that have proven their combat reliability.
@ -77,12 +65,6 @@
sprite: Clothing/Shoes/Boots/mercboots.rsi
- type: Clothing
sprite: Clothing/Shoes/Boots/mercboots.rsi
- type: Matchbox
- type: Storage
whitelist:
tags:
- Knife
- Sidearm
- type: entity
parent: ClothingShoesBaseButcherable

View File

@ -16,3 +16,14 @@
components:
- type: Geiger
attachedToSuit: true
# for clothing that has a single item slot to insert and alt click out.
# inheritors add a whitelisted slot named item
- type: entity
abstract: true
id: ClothingSlotBase
components:
- type: ItemSlots
- type: ContainerContainer
containers:
item: !type:ContainerSlot