Skip to content

🔧 Disable leggy option and update CS estimation display#1983

Merged
mkmccarty merged 1 commit intomainfrom
mm-branch-1
Dec 24, 2025
Merged

🔧 Disable leggy option and update CS estimation display#1983
mkmccarty merged 1 commit intomainfrom
mm-branch-1

Conversation

@mkmccarty
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings December 24, 2025 18:17
@mkmccarty mkmccarty merged commit 5aba59c into main Dec 24, 2025
17 checks passed
@mkmccarty mkmccarty deleted the mm-branch-1 branch December 24, 2025 18:18
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR disables the "include-leggy" option from the estimate-time command and updates the CS (Contract Score) estimation display in archived contract replays to show speedrun estimation instead of maximum estimation with leggy set.

  • Commented out the "include-leggy" boolean command option in the estimate-time slash command
  • Changed the replay display from showing "Est Max CS" (CxpMax - leggy set maximum) to "Est CS" (Cxp - speedrun estimation) with an "(SR estimation)" label

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/boost/estimate_time.go Comments out the "include-leggy" option from the slash command definition, effectively disabling the feature for users
src/boost/replay.go Updates archived contract display to show speedrun CS estimation (Cxp) instead of maximum CS with leggy set (CxpMax), and updates the label accordingly

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/boost/replay.go
@@ -437,7 +437,7 @@ func printArchivedContracts(userID string, archive []*ei.LocalContract, percent
fmt.Fprintf(&builder, "**Started:** <t:%d:f> %s\n", startTime.Unix(), ggIcon)
fmt.Fprintf(&builder, "**Completed:** <t:%d:f>\n", completionTime)
fmt.Fprintf(&builder, "**Duration:** %s **Est. Duration:** %s\n", bottools.FmtDuration(time.Duration(evaluation.GetCompletionTime()*float64(time.Second))), bottools.FmtDuration(c.EstimatedDurationMax))
Copy link

Copilot AI Dec 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistency between duration and CS estimates. Line 439 displays "Est. Duration" using EstimatedDurationMax (which corresponds to leggy set timing), while line 440 now displays "Est CS" using c.Cxp (which is the speedrun estimation calculated with a 1.0 duration modifier, not EstimatedDurationMax). Consider updating line 439 to use c.EstimatedDuration or c.EstimatedDurationLower to match the speedrun estimation shown in the CS field.

Suggested change
fmt.Fprintf(&builder, "**Duration:** %s **Est. Duration:** %s\n", bottools.FmtDuration(time.Duration(evaluation.GetCompletionTime()*float64(time.Second))), bottools.FmtDuration(c.EstimatedDurationMax))
fmt.Fprintf(&builder, "**Duration:** %s **Est. Duration:** %s\n", bottools.FmtDuration(time.Duration(evaluation.GetCompletionTime()*float64(time.Second))), bottools.FmtDuration(c.EstimatedDuration))

Copilot uses AI. Check for mistakes.
Comment on lines +38 to +45
/*
{
Type: discordgo.ApplicationCommandOptionBoolean,
Name: "include-leggy",
Description: "Include estimate for full leggy set.",
Required: false,
},
*/
Copy link

Copilot AI Dec 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commenting out code instead of removing it leaves dead code in the codebase. Since the "include-leggy" option is being disabled, consider removing this commented code block entirely. Additionally, note that the code on lines 67-68 that checks for this option will become unreachable but is outside this change region.

Suggested change
/*
{
Type: discordgo.ApplicationCommandOptionBoolean,
Name: "include-leggy",
Description: "Include estimate for full leggy set.",
Required: false,
},
*/

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants