From a3e8de0749614269fcffd4b66d89eb2d133dc3e0 Mon Sep 17 00:00:00 2001 From: Michael McCarty Date: Fri, 10 Jul 2026 07:47:49 -0700 Subject: [PATCH] feat: include calculated leggy boost in estimates --- src/boost/rerun-active.go | 3 ++- src/boost/rerun-chart.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/boost/rerun-active.go b/src/boost/rerun-active.go index 9f256626..32aee5b6 100644 --- a/src/boost/rerun-active.go +++ b/src/boost/rerun-active.go @@ -249,7 +249,8 @@ func printActiveContractDetails(userID string, archive []*ei.LocalContract, cont } } - fmt.Fprintf(&builder, "-# Est duration/CS based on 1.0 fair share, 5%s boosts (w/50%sIHR), 6%s/hr rate and leggy artifacts.\n", ei.GetBotEmojiMarkdown("token"), ei.GetBotEmojiMarkdown("egg_truth"), ei.GetBotEmojiMarkdown("token")) + leggyTokens, _ := calcLeggyBoost(DefaultLeggyTE) + fmt.Fprintf(&builder, "-# Est duration/CS based on 1.0 fair share, %.0f%s boosts (w/%.0f%s TE), 6%s/hr rate and leggy artifacts.\n", leggyTokens, ei.GetBotEmojiMarkdown("token"), DefaultLeggyTE, ei.GetBotEmojiMarkdown("egg_truth"), ei.GetBotEmojiMarkdown("token")) if builder.Len() > 0 { components = append(components, &discordgo.TextDisplay{ diff --git a/src/boost/rerun-chart.go b/src/boost/rerun-chart.go index 7b0855f2..4cb161ca 100644 --- a/src/boost/rerun-chart.go +++ b/src/boost/rerun-chart.go @@ -568,7 +568,8 @@ func renderChartSession(session *chartSession) []discordgo.MessageComponent { rateVal = "12" ggSuffix = " (GG x2)" } - fmt.Fprintf(&builder, "-# Est duration/CS based on 1.0 fair share, 5%s boosts (w/50%sIHR), %s%s/hr%s rate and leggy artifacts.\n", ei.GetBotEmojiMarkdown("token"), ei.GetBotEmojiMarkdown("egg_truth"), rateVal, ei.GetBotEmojiMarkdown("token"), ggSuffix) + leggyTokens, _ := calcLeggyBoost(DefaultLeggyTE) + fmt.Fprintf(&builder, "-# Est duration/CS based on 1.0 fair share, %.0f%s boosts (w/%.0f%s TE), %s%s/hr%s rate and leggy artifacts.\n", leggyTokens, ei.GetBotEmojiMarkdown("token"), DefaultLeggyTE, ei.GetBotEmojiMarkdown("egg_truth"), rateVal, ei.GetBotEmojiMarkdown("token"), ggSuffix) components = append(components, &discordgo.TextDisplay{Content: builder.String()}) components = append(components, buildChartControls(session, totalPages)...)