-
Notifications
You must be signed in to change notification settings - Fork 704
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: CollectionState - Never pick up advancements #3786
base: main
Are you sure you want to change the base?
Core: CollectionState - Never pick up advancements #3786
Conversation
Sorry for the auto-request 🤷 |
worlds/AutoWorld.py
Outdated
state.prog_items[self.player][name] -= 1 | ||
if state.prog_items[self.player][name] < 1: | ||
del (state.prog_items[self.player][name]) | ||
return True # Backwards compatibility, this used to denote whether a progression item was picked up |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only part I'm not happy with - All the overridden world collects are relying on the World collect returning "True" on an advancement, so I can't get rid of return True
in favor of return
, despite the fact Python is happy with an overridden function returning something different
If someone has some idea of how to get around this, let me know
* speed up collect, will be obsolete after #3786 * vi's a meanie
398fffb
to
71ccc9d
Compare
if state.prog_items[self.player][name] < 1: | ||
del (state.prog_items[self.player][name]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3.10 should mean this is fine now?
if state.prog_items[self.player][name] < 1: | |
del (state.prog_items[self.player][name]) |
We can kinda "just do this" now, if we accept that we have to change some worlds