]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fixes parcels and parcel wrapped humanoids being invulnerable (#40940)
authorWorldwaker <4742854+Worldwaker@users.noreply.github.com>
Thu, 16 Oct 2025 16:17:19 +0000 (11:17 -0500)
committerGitHub <noreply@github.com>
Thu, 16 Oct 2025 16:17:19 +0000 (16:17 +0000)
* Primary Commit

* Made requested changes, fixed line spacing.

Resources/Prototypes/Entities/Objects/Misc/parcel_wrap.yml

index df4b5541ff9e67890c2da84959ee46e950dfd8c8..e2130d26793c531c864861ea517989c21580465b 100644 (file)
     damageContainer: Inorganic
   - type: Destructible
     thresholds:
+    - trigger:
+        !type:DamageTrigger
+        damage: 8
+      behaviors:
+      - !type:PlaySoundBehavior
+        sound:
+          path: /Audio/Effects/poster_broken.ogg
+          params:
+            volume: -4
+      - !type:DoActsBehavior
+        acts: [ "Destruction" ]
     - trigger:
         !type:DamageTypeTrigger
         damageType: Slash
       sprite: Objects/Misc/ParcelWrap/paper_labels.rsi
       map: ["enum.PaperLabelVisuals.Layer"]
 
-
 - type: entity
   parent: BaseWrappedParcel
   id: WrappedParcelHumanoid