From 55677f2965eeb37dd366be5d7535430c9e9c8a51 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Fri, 24 Sep 2021 16:50:30 +0200 Subject: [PATCH] don't output total influence if it is zero --- BGS/NonaDiscordLog.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BGS/NonaDiscordLog.cs b/BGS/NonaDiscordLog.cs index 5b50729..b7772f3 100644 --- a/BGS/NonaDiscordLog.cs +++ b/BGS/NonaDiscordLog.cs @@ -119,7 +119,9 @@ namespace NonaBGS.BGS { output.Append(")\n\n"); } - output.AppendFormat("Total Influence: {0}\n\n", total_influence); + if (total_influence > 0) { + output.AppendFormat("Total Influence: {0}\n\n", total_influence); + } return output.ToString(); }