]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Make boots with storage use itemslot (#22186)
authordeltanedas <39013340+deltanedas@users.noreply.github.com>
Wed, 6 Dec 2023 21:58:25 +0000 (21:58 +0000)
committerGitHub <noreply@github.com>
Wed, 6 Dec 2023 21:58:25 +0000 (08:58 +1100)
Co-authored-by: deltanedas <@deltanedas:kde.org>
Resources/Locale/en-US/clothing/boots.ftl [new file with mode: 0644]
Resources/Prototypes/Catalog/Fills/Items/misc.yml
Resources/Prototypes/Entities/Clothing/Shoes/base_clothingshoes.yml
Resources/Prototypes/Entities/Clothing/Shoes/boots.yml
Resources/Prototypes/Entities/Clothing/base_clothing.yml

diff --git a/Resources/Locale/en-US/clothing/boots.ftl b/Resources/Locale/en-US/clothing/boots.ftl
new file mode 100644 (file)
index 0000000..05322d6
--- /dev/null
@@ -0,0 +1 @@
+clothing-military-boots-sidearm = Sidearm
index 8f58df7ce5b18796d51a84d1f9580ef9789e284d..543cd604a2fb0b22e58512f61a0b940d9a44b8b6 100644 (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
 
index 35c3d1393cb5328850d3eb29e75766184e04f741..9b224954260cfd7c5c5b11c12e56068916d725ed 100644 (file)
     - 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
-    grid:
-    - 0,0,0,1
-    maxItemSize: Normal
-  - 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
index 94da672961f26b83b01af921a9a171c638f222af..e2eb4d89e192c3494716968eeee674ca5413f868 100644 (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.
     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.
     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.
     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
index 7e9d6e9568111ce31cdb2d934ef1010d2215a26d..df22b9b40d373976190d684e327b50987c25f2ec 100644 (file)
   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