From 654444d39c42f24c9fadac39d64ee701531fda29 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Sat, 22 Jan 2022 09:09:08 +0100 Subject: [PATCH] also add it to the generic discord template --- BGS/GenericDiscordLog.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/BGS/GenericDiscordLog.cs b/BGS/GenericDiscordLog.cs index feed8dd..a7cadc2 100644 --- a/BGS/GenericDiscordLog.cs +++ b/BGS/GenericDiscordLog.cs @@ -164,6 +164,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); }