From f159b2919173030dc894d6ea7d3bfe7f741a45c6 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Tue, 19 Oct 2021 17:59:32 +0200 Subject: [PATCH] fix credit values in report --- BGS/NonaDiscordLog.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/BGS/NonaDiscordLog.cs b/BGS/NonaDiscordLog.cs index 5550ca0..e3b1688 100644 --- a/BGS/NonaDiscordLog.cs +++ b/BGS/NonaDiscordLog.cs @@ -40,7 +40,7 @@ namespace NonaBGS.BGS { } return string.Format("Sold {0} page(s) worth of universal cartographics\n" + - "(Total value: {1} CR)\n", pages, sum); + "(Total value: {1})\n", pages, Credits.FormatCredits(sum)); } private string BuildCargoSold(Objective objective) { @@ -74,7 +74,8 @@ namespace NonaBGS.BGS { return ""; } - return string.Format("Sold {0} CR worth of Micro Resources\n", sum); + return string.Format("Sold {0} worth of Micro Resources\n", + Credits.FormatCredits(sum)); } private string BuildKillBonds(Objective objective) { @@ -111,7 +112,7 @@ namespace NonaBGS.BGS { foreach (var mission in missions) { var m = mission as Vouchers; builder.AppendFormat("Handed in {0} vouchers for {1}\n", m.Type, m.Faction); - builder.AppendFormat("(Total value: {0} CR)\n", m.TotalSum); + builder.AppendFormat("(Total value: {0})\n", Credits.FormatCredits(m.TotalSum)); builder.AppendFormat("\n"); }