]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Remove non-lethal vector variant (#16076)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Thu, 4 May 2023 14:06:01 +0000 (00:06 +1000)
committerGitHub <noreply@github.com>
Thu, 4 May 2023 14:06:01 +0000 (00:06 +1000)
Resources/Prototypes/Entities/Objects/Weapons/Guns/SMGs/smgs.yml
Resources/migration.yml

index 47c77d6f772f8252fa4e0a17e2e137ef3fdc4b64..7974785e9be370722f3d2a3b659286fc1f2b6640 100644 (file)
           whitelist:
             tags:
               - CartridgePistol
-    - type: ContainerContainer
-      containers:
-        gun_magazine: !type:ContainerSlot
-        gun_chamber: !type:ContainerSlot
     - type: MagazineVisuals
       magState: mag
       steps: 1
         whitelist:
           tags:
             - CartridgeMagnum
-  - type: ContainerContainer
-    containers:
-      gun_magazine: !type:ContainerSlot
-      gun_chamber: !type:ContainerSlot
   - type: MagazineVisuals
     magState: mag
     steps: 1
     zeroVisible: true
   - type: Appearance
 
+# Rubber
+- type: entity
+  name: Drozd
+  parent: WeaponSubMachineGunDrozd
+  id: WeaponSubMachineGunDrozdRubber
+  suffix: Non-Lethal
+  components:
+    - type: ItemSlots
+      slots:
+        gun_magazine:
+          name: Magazine
+          startingItem: MagazinePistolSubMachineGunRubber
+          insertSound: /Audio/Weapons/Guns/MagIn/smg_magin.ogg
+          ejectSound: /Audio/Weapons/Guns/MagOut/smg_magout.ogg
+          priority: 2
+          whitelist:
+            tags:
+              - MagazinePistolSubMachineGun
+        gun_chamber:
+          name: Chamber
+          startingItem: CartridgePistolRubber
+          priority: 1
+          whitelist:
+            tags:
+              - CartridgePistol
+
 - type: entity
   name: Vector
   parent: WeaponSubMachineGunVector
         whitelist:
           tags:
             - CartridgeMagnum
-  - type: ContainerContainer
-    containers:
-      gun_magazine: !type:ContainerSlot
-      gun_chamber: !type:ContainerSlot
index 2e3b0bef124b8152acad5aeea4dbfb624be3fb02..ec7ece673014866172d868baa77b60b8aedafc8d 100644 (file)
@@ -42,6 +42,7 @@ MagazineMagnumSubMachineGunHighVelocity: MagazinePistolSubMachineGunHighVelocity
 MagazineMagnumSubMachineGunPractice: MagazinePistolSubMachineGunPractice
 MagazineMagnumSubMachineGunRubber: MagazinePistolSubMachineGunRubber
 WeaponSubMachineGunVector: WeaponSubMachineGunDrozd
+WeaponSubMachineGunVectorRubber: WeaponSubMachineGunDrozdRubber
 
 MagazineBoxAntiMaterial: MagazineBoxAntiMateriel
 CartridgeAntiMaterial: CartridgeAntiMateriel