Skip to content

Conversation

ArcanoxDragon
Copy link
Contributor

There is a well-known quirk when you have four or more Speed Booster Upgrades that causes Speed Booster to sometimes fail to activate when buffering it while Samus turns around. Bumping the minimum charge time up to 0.55 seconds seems to fix this in all of my testing, and there's nowhere in logic that requires >= 4 upgrades, so this shouldn't have any logical implications at all. The "effective" maximum number of upgrades you can collect is now 4 instead of 5, but 5 was even buggier than 4 was, so I don't think this is a bad thing.

Copy link

codecov bot commented Apr 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.97%. Comparing base (dac29d6) to head (c4acb81).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #398   +/-   ##
=======================================
  Coverage   91.97%   91.97%           
=======================================
  Files          38       38           
  Lines        2156     2156           
=======================================
  Hits         1983     1983           
  Misses        173      173           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

local chargeTime = math.max(0.25, 1.5 - quantity * 0.25)
-- Cannot be <= 0 or else all hell breaks loose.
-- SB activation is very buggy <= 0.5, so we clamp it a tiny bit higher.
local chargeTime = math.max(0.55, 1.5 - quantity * 0.25)
Copy link
Contributor

Choose a reason for hiding this comment

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

would 0.51 work?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I haven't tried it, but that would only be one extra frame beyond when it has a problem (technically it'd be effectively rounded up to 0.5167). 0.55 is 3-4 frames extra.

ArcanoxDragon added a commit to ArcanoxDragon/randovania that referenced this pull request Apr 23, 2025
… quirk where SB sometimes won't activate correctly after Samus turns around
@ArcanoxDragon ArcanoxDragon force-pushed the fix/speed-booster-upgrades branch from 51b8688 to c4acb81 Compare April 26, 2025 04:04
zarakava pushed a commit to zarakava/randovania that referenced this pull request May 1, 2025
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