]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Pill destruction (#15851)
authorfreeman2651 <104049107+freeman2651@users.noreply.github.com>
Sat, 29 Apr 2023 03:13:20 +0000 (23:13 -0400)
committerGitHub <noreply@github.com>
Sat, 29 Apr 2023 03:13:20 +0000 (13:13 +1000)
Resources/Prototypes/Entities/Objects/Specific/chemistry.yml

index d41aba8e9b1f3041aa0863b50ea826192b71125a..010a29269164319350ebc589e8e6cd5374185f2a 100644 (file)
     grindableSolutionName: food
   - type: StaticPrice
     price: 0
+  - type: Damageable
+    damageContainer: Inorganic
+  - type: Destructible
+    thresholds:
+    - trigger:
+        !type:DamageTrigger
+        damage: 10
+      behaviors:
+      - !type:SpillBehavior
+        solution: food
+        transferForensics: true
+      - !type:DoActsBehavior
+        acts: [ "Destruction" ]
 
 - type: entity
   name: pill canister