]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
upped the bandolier slots to 14 and made it function like an ammo box (#21903)
authorBoaz1111 <149967078+Boaz1111@users.noreply.github.com>
Wed, 29 Nov 2023 22:53:50 +0000 (23:53 +0100)
committerGitHub <noreply@github.com>
Wed, 29 Nov 2023 22:53:50 +0000 (09:53 +1100)
Resources/Prototypes/Entities/Clothing/Belt/base_clothingbelt.yml
Resources/Prototypes/Entities/Clothing/Belt/belts.yml

index b53c08159d61233da47eb5ba640e54301314f5b9..6d94ab454b621f94c8b1173862fbb5996318fa72 100644 (file)
     interfaces:
     - key: enum.StorageUiKey.Key
       type: StorageBoundUserInterface
+
+- type: entity
+  abstract: true
+  parent: ClothingBeltBase
+  id: ClothingBeltAmmoProviderBase
+  components: 
+  - type: BallisticAmmoProvider
+    mayTransfer: true
+  - type: Item
+    size: Ginormous
+  - type: ContainerContainer
+    containers: 
+      ballistic-ammo: !type:Container
+      
index 2117c7916a366226197f5d864abdd28f5326c93f..ebaa8cc12388d0424ac1233fecdee21b5d654f8a 100644 (file)
 # Belts without visualizers
 
 - type: entity
-  parent: ClothingBeltStorageBase
+  parent: ClothingBeltAmmoProviderBase
   id: ClothingBeltBandolier
   name: bandolier
   description: A bandolier for holding shotgun ammunition.
     sprite: Clothing/Belt/bandolier.rsi
   - type: Item
     size: Huge
-  - type: Storage
+  - type: BallisticAmmoProvider
     whitelist:
       tags:
         - ShellShotgun
+    capacity: 14
 
 - type: entity
   parent: ClothingBeltBase