From 39fc1030895a27f4a363670a1ca2c0c8508e2b47 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Tue, 26 Aug 2025 12:37:14 -0700 Subject: implement showing estimate of number of matches to be played --- Malmstone/Plugin.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'Malmstone/Plugin.cs') diff --git a/Malmstone/Plugin.cs b/Malmstone/Plugin.cs index f9b366a..bb877fd 100644 --- a/Malmstone/Plugin.cs +++ b/Malmstone/Plugin.cs @@ -190,6 +190,11 @@ private void OnCommand(string command, string args) { seString.Append(new TextPayload($"Lose: {xpResult.CrystallineConflictLose} " + (xpResult.CrystallineConflictLose == 1 ? "time" : "times") + "\n")); } + + if(xpResult.CrystallineConflictExpectedMatches > 0) + { + seString.Append(new TextPayload($"Estimate: {xpResult.CrystallineConflictExpectedMatches} " + (xpResult.CrystallineConflictExpectedMatches == 1 ? "match" : "matches") + "\n")); + } seString.Append(UIForegroundPayload.UIForegroundOff); } @@ -214,6 +219,11 @@ private void OnCommand(string command, string args) { seString.Append(new TextPayload($"Take 3rd Place: {xpResult.FrontlineLose3rd} " + (xpResult.FrontlineLose3rd == 1 ? "time" : "times") + "\n")); } + + if (xpResult.FrontlineExpectedMatches > 0) + { + seString.Append(new TextPayload($"Estimate: {xpResult.FrontlineExpectedMatches} " + (xpResult.FrontlineExpectedMatches == 1 ? "match" : "matches") + "\n")); + } seString.Append(UIForegroundPayload.UIForegroundOff); @@ -234,6 +244,11 @@ private void OnCommand(string command, string args) { seString.Append(new TextPayload($"Take 3rd Place: {xpResult.FrontlineDailyLose3rd} " + (xpResult.FrontlineDailyLose3rd == 1 ? "time" : "times") + "\n")); } + + if (xpResult.FrontlineDailyExpectedMatches > 0) + { + seString.Append(new TextPayload($"Estimate: {xpResult.FrontlineDailyExpectedMatches} " + (xpResult.FrontlineDailyExpectedMatches == 1 ? "match" : "matches") + "\n")); + } seString.Append(UIForegroundPayload.UIForegroundOff); } @@ -253,6 +268,11 @@ private void OnCommand(string command, string args) { seString.Append(new TextPayload($"Lose: {xpResult.RivalWingsLose} " + (xpResult.RivalWingsLose == 1 ? "time" : "times") + "\n")); } + + if (xpResult.RivalWingsExpectedMatches > 0) + { + seString.Append(new TextPayload($"Estimate: {xpResult.RivalWingsExpectedMatches} " + (xpResult.RivalWingsExpectedMatches == 1 ? "match" : "matches") + "\n")); + } seString.Append(UIForegroundPayload.UIForegroundOff); } -- cgit v1.2.3