add secondary influence gain to report

This commit is contained in:
Florian Stinglmayr 2022-01-22 09:08:19 +01:00
parent d789c75116
commit 561db29394

View File

@ -163,6 +163,17 @@ namespace EliteBGS.BGS {
output.Append(")\n\n"); output.Append(")\n\n");
} }
var support = objective.LogEntries.OfType<InfluenceSupport>();
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) { if (total_influence > 0) {
output.AppendFormat("Total Influence: {0}\n\n", total_influence); output.AppendFormat("Total Influence: {0}\n\n", total_influence);
} }