]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
[Fix] Chemical bottles (#15198)
authorPuro <103608145+PuroSlavKing@users.noreply.github.com>
Sun, 9 Apr 2023 21:58:22 +0000 (00:58 +0300)
committerGitHub <noreply@github.com>
Sun, 9 Apr 2023 21:58:22 +0000 (15:58 -0600)
* [Fix] Chemical bottles

* Min 0

Resources/Prototypes/Entities/Objects/Specific/chemistry-bottles.yml

index 42408dd180c106b89b608893761b1bb57be82e59..3c255483d44cf5f2384fbb4ccffb9c2f0a15fc29 100644 (file)
     solution: drink
   - type: StaticPrice
     price: 0
+  - type: DamageOnLand
+    damage:
+      types:
+        Blunt: 5
+  - type: DamageOtherOnHit
+    damage:
+      types:
+        Blunt: 4
+  - type: Damageable
+    damageContainer: Inorganic
+  - type: Destructible
+    thresholds:
+    - trigger:
+        !type:DamageTrigger
+        damage: 5
+      behaviors:
+      - !type:PlaySoundBehavior
+        sound:
+          collection: GlassBreak
+      - !type:SpillBehavior { }
+      - !type:SpawnEntitiesBehavior
+        spawn:
+          ShardGlass:
+            min: 0
+            max: 1
+        transferForensics: true
+      - !type:DoActsBehavior
+        acts: [ "Destruction" ]
 
 - type: entity
   name: bottle