From 561db293948383c028f21f75629081e22424a4f8 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Sat, 22 Jan 2022 09:08:19 +0100 Subject: [PATCH] add secondary influence gain to report --- BGS/NonaDiscordLog.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/BGS/NonaDiscordLog.cs b/BGS/NonaDiscordLog.cs index a7c5c48..df02141 100644 --- a/BGS/NonaDiscordLog.cs +++ b/BGS/NonaDiscordLog.cs @@ -163,6 +163,17 @@ namespace EliteBGS.BGS { output.Append(")\n\n"); } + var support = objective.LogEntries.OfType(); + foreach (InfluenceSupport inf in support) { + output.Append(inf.ToString()); + output.Append("\n"); + total_influence += inf.Influence.Length; + } + + if (support.Count() > 0) { + output.Append("\n"); + } + if (total_influence > 0) { output.AppendFormat("Total Influence: {0}\n\n", total_influence); }