]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix explosion resistance showing 0 values (#29572)
authorNemanja <98561806+EmoGarbage404@users.noreply.github.com>
Sat, 29 Jun 2024 17:21:47 +0000 (13:21 -0400)
committerGitHub <noreply@github.com>
Sat, 29 Jun 2024 17:21:47 +0000 (13:21 -0400)
* fix explosion resistance showing 0 values

* markup

Content.Server/Explosion/EntitySystems/ExplosionSystem.cs

index 8734c054d648fd78245a53cc013f61a58a6ad8d1..b9f0f6fdb7958ecbd738e762562c07c81c4b94ef 100644 (file)
@@ -423,7 +423,10 @@ public sealed partial class ExplosionSystem : EntitySystem
     {
         var value = MathF.Round((1f - component.DamageCoefficient) * 100, 1);
 
+        if (value == 0)
+            return;
+
         args.Msg.PushNewline();
-        args.Msg.AddMarkup(Loc.GetString(component.Examine, ("value", value)));
+        args.Msg.AddMarkupOrThrow(Loc.GetString(component.Examine, ("value", value)));
     }
 }