Update CP14MagicManacostModifySystem.cs (#987)

This commit is contained in:
Link
2025-03-07 17:14:29 +03:00
committed by GitHub
parent d0602d7d1d
commit 15798a44df

View File

@@ -47,7 +47,8 @@ public sealed partial class CP14MagicManacostModifySystem : EntitySystem
msg.PushNewline();
var plus = (float)comp.GlobalModifier > 1 ? "+" : "";
msg.AddMarkupOrThrow($"{Loc.GetString("cp14-clothing-magic-global")}: {plus}{((float)comp.GlobalModifier - 1)*100}%");
msg.AddMarkupOrThrow(
$"{Loc.GetString("cp14-clothing-magic-global")}: {plus}{MathF.Round((float)(comp.GlobalModifier - 1) * 100, MidpointRounding.AwayFromZero)}%");
}
foreach (var modifier in comp.Modifiers)