fix explosion resistance showing 0 values (#29572)

* fix explosion resistance showing 0 values

* markup
This commit is contained in:
Nemanja
2024-06-29 13:21:47 -04:00
committed by GitHub
parent 6af418663e
commit eda8028dd6

View File

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