]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
EntityTables for sec belts and webbing (#30900)
authorPlykiya <58439124+Plykiya@users.noreply.github.com>
Sun, 11 Aug 2024 09:16:46 +0000 (02:16 -0700)
committerGitHub <noreply@github.com>
Sun, 11 Aug 2024 09:16:46 +0000 (19:16 +1000)
* EntityTables for sec belts and webbing

* update name

---------

Co-authored-by: plykiya <plykiya@protonmail.com>
Resources/Prototypes/Catalog/Fills/Items/belt.yml

index 6915f321c97ec0c51e29b5963d91104ff7811e85..d905350cded0bae7c2435b80f13348c6e6ab8737 100644 (file)
       - id: GasAnalyzer
       - id: trayScanner
 
+- type: entityTable
+  id: BeltSecurityEntityTable
+  table: !type:AllSelector
+    children:
+    - id: Stunbaton
+    - id: GrenadeFlashBang
+    - id: TearGasGrenade
+    - id: Handcuffs
+    - id: Handcuffs
+
 - type: entity
   id: ClothingBeltSecurityFilled
   parent: ClothingBeltSecurity
   suffix: Filled
   components:
-  - type: StorageFill
-    contents:
-      - id: GrenadeFlashBang
-      - id: TearGasGrenade
-      - id: Stunbaton
-      - id: Handcuffs
-      - id: Handcuffs
+  - type: EntityTableContainerFill
+    containers:
+      storagebase: !type:NestedSelector
+        tableId: BeltSecurityEntityTable
 
 - type: entity
   id: ClothingBeltSecurityWebbingFilled
   parent: ClothingBeltSecurityWebbing
   suffix: Filled
   components:
-  - type: StorageFill
-    contents:
-    - id: GrenadeFlashBang
-    - id: TearGasGrenade
-    - id: Stunbaton
-    - id: Handcuffs
-    - id: Handcuffs
+  - type: EntityTableContainerFill
+    containers:
+      storagebase: !type:NestedSelector
+        tableId: BeltSecurityEntityTable
 
 - type: entity
   id: ClothingBeltJanitorFilled