]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Make bloodloss and asphyxiation damage not ignore resistances (#21665)
authorDrSmugleaf <DrSmugleaf@users.noreply.github.com>
Wed, 15 Nov 2023 10:03:02 +0000 (02:03 -0800)
committerGitHub <noreply@github.com>
Wed, 15 Nov 2023 10:03:02 +0000 (21:03 +1100)
Content.Server/Body/Systems/BloodstreamSystem.cs
Content.Server/Body/Systems/RespiratorSystem.cs

index 39403288e95fdf6f16b5f9bff153a1a5b23b8312..ddc32ab01526e32ed1bad62e981925fbfeea8cab 100644 (file)
@@ -10,16 +10,16 @@ using Content.Shared.Chemistry.EntitySystems;
 using Content.Shared.Chemistry.Reaction;
 using Content.Shared.Damage;
 using Content.Shared.Damage.Prototypes;
+using Content.Shared.Drunk;
 using Content.Shared.FixedPoint;
 using Content.Shared.IdentityManagement;
-using Content.Shared.Popups;
-using Content.Shared.Drunk;
 using Content.Shared.Mobs.Systems;
+using Content.Shared.Popups;
 using Content.Shared.Rejuvenate;
+using Content.Shared.Speech.EntitySystems;
 using Robust.Server.GameObjects;
 using Robust.Shared.Prototypes;
 using Robust.Shared.Random;
-using Content.Shared.Speech.EntitySystems;
 
 namespace Content.Server.Body.Systems;
 
@@ -114,7 +114,7 @@ public sealed class BloodstreamSystem : EntitySystem
                 // bloodloss damage is based on the base value, and modified by how low your blood level is.
                 var amt = bloodstream.BloodlossDamage / (0.1f + bloodPercentage);
 
-                _damageableSystem.TryChangeDamage(uid, amt, true, false);
+                _damageableSystem.TryChangeDamage(uid, amt, false, false);
 
                 // Apply dizziness as a symptom of bloodloss.
                 // The effect is applied in a way that it will never be cleared without being healthy.
index 58f803acdc6e140050d9b90569ef93b9998abe4c..3fa8f59a1d4f55f47b9d61f64cc1ac4277abe870 100644 (file)
@@ -160,7 +160,7 @@ namespace Content.Server.Body.Systems
                 _alertsSystem.ShowAlert(uid, AlertType.LowOxygen);
             }
 
-            _damageableSys.TryChangeDamage(uid, respirator.Damage, true, false);
+            _damageableSys.TryChangeDamage(uid, respirator.Damage, false, false);
         }
 
         private void StopSuffocation(EntityUid uid, RespiratorComponent respirator)
@@ -170,7 +170,7 @@ namespace Content.Server.Body.Systems
 
             _alertsSystem.ClearAlert(uid, AlertType.LowOxygen);
 
-            _damageableSys.TryChangeDamage(uid, respirator.DamageRecovery, true);
+            _damageableSys.TryChangeDamage(uid, respirator.DamageRecovery);
         }
 
         public void UpdateSaturation(EntityUid uid, float amount,