From: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> Date: Sat, 29 Jun 2024 17:21:47 +0000 (-0400) Subject: fix explosion resistance showing 0 values (#29572) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=eda8028dd609645c03a07421d0b57212a1f31820;p=space-station-14.git fix explosion resistance showing 0 values (#29572) * fix explosion resistance showing 0 values * markup --- diff --git a/Content.Server/Explosion/EntitySystems/ExplosionSystem.cs b/Content.Server/Explosion/EntitySystems/ExplosionSystem.cs index 8734c054d6..b9f0f6fdb7 100644 --- a/Content.Server/Explosion/EntitySystems/ExplosionSystem.cs +++ b/Content.Server/Explosion/EntitySystems/ExplosionSystem.cs @@ -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))); } }