]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Sterile swab dispenser instead of box (#24986)
authordeltanedas <39013340+deltanedas@users.noreply.github.com>
Fri, 12 Apr 2024 07:15:04 +0000 (07:15 +0000)
committerGitHub <noreply@github.com>
Fri, 12 Apr 2024 07:15:04 +0000 (17:15 +1000)
* sterile swab dispenser

* trust

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
Resources/Prototypes/Catalog/Fills/Boxes/medical.yml
Resources/Prototypes/Entities/Objects/Specific/Medical/disease.yml

index 986239977630c9e22cdee3343a3261755415abe8..d9beb724356bfb6eb7ac62593b9aa0ba534c7441 100644 (file)
       - state: box
       - state: nitrile
 
-- type: entity
-  name: sterile swab box
-  parent: BoxCardboard
-  id: BoxMouthSwab
-  components:
-  - type: Storage
-    grid:
-    - 0,0,4,3
-  - type: StorageFill
-    contents:
-      - id: DiseaseSwab
-        amount: 10
-  - type: Sprite
-    layers:
-      - state: box
-      - state: swab
-  - type: GuideHelp
-    guides:
-  # - Virology (when it's back)
-    - Botany
-
 - type: entity
   name: body bag box
   parent: BoxCardboard
index 0f03c6d8ea670338cb17a93bc014ab0b1e4d9247..ab6cdfc4e3bca9acd112e62a014ecd274abf99c6 100644 (file)
   # - Virology (when it's back)
     - Botany
 
+- type: entity
+  parent: BaseAmmoProvider # this is for cycling swabs out and not spawning 30 entities, trust
+  id: BoxMouthSwab
+  name: sterile swab dispenser
+  description: Dispenses 30 sterile swabs, extremely useful for botany.
+  components:
+  - type: Sprite
+    layers:
+    - state: boxwide
+    - state: swab
+  - type: BallisticAmmoProvider
+    whitelist:
+      components:
+      - BotanySwab
+    proto: DiseaseSwab
+    capacity: 30
+  - type: GuideHelp
+    guides:
+  # - Virology (when it's back)
+    - Botany
+
 - type: entity
   parent: BaseItem
   id: Vaccine