From 9d4342a6f80a40c41ecf383999023b29ad173b2d Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Sun, 22 Aug 2021 11:50:43 +0200 Subject: [PATCH] add a influence total for soft caps --- BGS/NonaDiscordLog.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BGS/NonaDiscordLog.cs b/BGS/NonaDiscordLog.cs index 1fbf8d4..7d3a34f 100644 --- a/BGS/NonaDiscordLog.cs +++ b/BGS/NonaDiscordLog.cs @@ -83,6 +83,7 @@ namespace NonaBGS.BGS { private string BuildMissionList(Objective objective) { Dictionary> collated = new Dictionary>(); StringBuilder output = new StringBuilder(); + int total_influence = 0; var missions = from entries in objective.LogEntries where entries.GetType() == typeof(MissionCompleted) @@ -102,6 +103,8 @@ namespace NonaBGS.BGS { } ++collated[m.MissionName][m.Influence]; + + total_influence += m.Influence.Length; } foreach (var mission in collated) { @@ -118,6 +121,8 @@ namespace NonaBGS.BGS { output.Append(")\n\n"); } + output.AppendFormat("Total Influence: {0}\n", total_influence); + return output.ToString(); }