diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-08-26 12:37:14 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-08-26 12:45:15 -0700 |
| commit | 39fc1030895a27f4a363670a1ca2c0c8508e2b47 (patch) | |
| tree | e30f3afb73b858bc703cff804584e19612dd58e9 /Malmstone/Plugin.cs | |
| parent | 26a0ade115f6d12cd67d8bcc2f31d367a5e70fee (diff) | |
implement showing estimate of number of matches to be played
Diffstat (limited to 'Malmstone/Plugin.cs')
| -rw-r--r-- | Malmstone/Plugin.cs | 20 |
1 files changed, 20 insertions, 0 deletions
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); } |
