diff --git a/EliteBGS/LogGenerator/MurderFormat.cs b/EliteBGS/LogGenerator/MurderFormat.cs index ddb057c..f5ba7e8 100644 --- a/EliteBGS/LogGenerator/MurderFormat.cs +++ b/EliteBGS/LogGenerator/MurderFormat.cs @@ -1,9 +1,7 @@ -using EDPlayerJournal.BGS; -using System.Collections.Generic; +using EDPlayerJournal; +using EDPlayerJournal.BGS; using System.Text; -using System; using System.Linq; -using EDPlayerJournal; namespace EliteBGS.LogGenerator; @@ -36,14 +34,14 @@ public class MurderFormat : LogFormatter { type = "person"; } } - builder.AppendFormat("Murdered {0} {1} (Bounties: {2}, Fines: {3})", + long bounties = log.Value.Sum(x => x.Bounties); + builder.AppendFormat("Murdered {0} {1} (Bounties: {2})\n", log.Value.Count, type, - log.Value.Sum(x => x.Bounties), - log.Value.Sum(x => x.Fines) + Credits.FormatMillions(bounties) ); } - return builder.ToString(); + return builder.ToString().Trim(); } public string GenerateSummary(Objective objective) {