Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core: add a new API for an itempool counter #2381

Closed

Conversation

alwaysintreble
Copy link
Collaborator

What is this fixing or adding?

A new API where the World will create a self.itempool: Counter[str] instead of creating item objects and adding them to the multiworld itempool. Also adds a create_filler_items step where the amount of items still needed for that particular world is passed. This step takes place after plando and pre_fill, to give an accurate count, with the itempool being refreshed just before.
This is currently lacking using the counter in reference for plando, and the items are being created as soon as the world's create_items is done so that state can collect them as necessary.

How was this tested?

Moved messenger over to it and did some generations and ran unit tests

If this makes graphical changes, please attach screenshots.

@ScootyPuffJr1 ScootyPuffJr1 added is: enhancement Issues requesting new features or pull requests implementing new features. affects: core Issues/PRs that touch core and may need additional validation. labels Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: core Issues/PRs that touch core and may need additional validation. is: enhancement Issues requesting new features or pull requests implementing new features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants