fix explosion resistance showing 0 values (#29572)
* fix explosion resistance showing 0 values * markup
This commit is contained in:
@@ -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)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user