]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Jugs are destructible (#24719)
authorliltenhead <104418166+liltenhead@users.noreply.github.com>
Tue, 30 Jan 2024 08:11:43 +0000 (00:11 -0800)
committerGitHub <noreply@github.com>
Tue, 30 Jan 2024 08:11:43 +0000 (19:11 +1100)
* destructible jug

* destruction

* Update Resources/Prototypes/Entities/Objects/Specific/chemical-containers.yml

---------

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Resources/Prototypes/Entities/Objects/Specific/chemical-containers.yml

index 31af4d206a05de999e2b5b099428faf2c11198a5..027ff206f8d9b2e0a74302001afdbdf433937673 100644 (file)
       inHandsFillBaseName: -fill-
     - type: StaticPrice
       price: 60
+    - type: Damageable
+      damageContainer: Inorganic
+    - type: Destructible
+      thresholds:
+      - trigger:
+          !type:DamageTrigger
+          damage: 200
+        behaviors:
+          - !type:DoActsBehavior
+            acts: [ "Destruction" ]
+      - trigger:
+          !type:DamageTrigger
+          damage: 20
+        behaviors:
+        - !type:PlaySoundBehavior
+          sound:
+            collection: MetalBreak
+            params:
+              volume: -4
+        - !type:SpillBehavior { }
+        - !type:SpawnEntitiesBehavior
+          spawn:
+            SheetPlastic1:
+              min: 0
+              max: 1
+          transferForensics: true
+        - !type:DoActsBehavior
+          acts: [ "Destruction" ]
     - type: Label
       originalName: jug
     - type: Tag