fix explosion resistance showing 0 values (#29572)

* fix explosion resistance showing 0 values

* markup
This commit is contained in:
Nemanja
2024-07-25 01:55:09 +02:00
committed by null
parent fdd1f80fe7
commit 09d5711680
@@ -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)));
}
}