Skip to content

Resource collection obeys HUD limits - #365

Merged
blkerby merged 4 commits into
blkerby:mainfrom
aquanight:resource_collection_hudcap
Aug 1, 2026
Merged

Resource collection obeys HUD limits#365
blkerby merged 4 commits into
blkerby:mainfrom
aquanight:resource_collection_hudcap

Conversation

@aquanight

Copy link
Copy Markdown
Contributor

Adds patch and randomizer/logic support for in-game limitation of resource collection based on HUD display limits:

  • If a resource expansion causes the max capacity to exceed the HUD's display limit, the amount is capped at that limit (999 missiles, 99 supers/power bombs)
  • "Current" resource added is still the full amount, up to the HUD limit
  • Removes enforcement of the HUD caps via "pruning" the item pool.

Example logic, based on a 400-unit Missile Expansion:
1st pack: 000/000 -> 400/400, 2nd pack: 400/400 -> 800/800
3rd pack:

  • At full missiles: 800/800 -> 999/999
  • Some missiles used: 643/800 -> 999/999
  • Many missiles used: 143/800 -> 543/999

@aquanight
aquanight marked this pull request as ready for review July 28, 2026 02:42
Comment thread patches/src/resource_collection_hudcap.asm Outdated
@blkerby
blkerby merged commit 49c8b3f into blkerby:main Aug 1, 2026
5 checks passed
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.

3 participants