-
Notifications
You must be signed in to change notification settings - Fork 751
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: Set locality rules after set_rules
stage.
#2044
Conversation
generate_basic
stages.generate_basic
stages.
rules, this includes item_rules, should be set by the time set_rules is done. |
If I understand berserker correctly, I agree that the block you moved should instead be right after Looking at the blame it seems like this was originally specifically added for HK and then simply stayed there with no specific reason, so moving it is probably fine? |
So we're all in agreement basically? I moved it after |
Basic is specified as being for things that don't affect logic, so I agree with Berserker and black-sliver. |
generate_basic
stages.set_rules
stage.
Whatever, most important thing is it's after |
* Core: Set locality rules after `generate_basic`. * Move locality rules to before `generate_basic`.
* Core: Set locality rules after `generate_basic`. * Move locality rules to before `generate_basic`.
* Core: Set locality rules after `generate_basic`. * Move locality rules to before `generate_basic`.
What is this fixing or adding?
If games reassign
Location.item_rule
s inset_rules
or, thengenerate_basic
local
andnon_local
item rules will be "overwritten".For example, Clique sets an item_rule in
set_rules
(made sense to me), but another player set an item as "local_only". In the seed generated, it may still ended up on the Clique location.Since there's doesn't appear to be consensus that
item_rule
s should not be set aftercreate_items
, this should prevent weird behavior if that were to occur up untilitem plando
andfill
stages, where I argue this chance should be less likely.Since
How was this tested?
Ran unit tests and seed with known placement error, and misplacement disappeared.
If this makes graphical changes, please attach screenshots.
Spoiler:
Before fix w/ same seed:
After fix w/ same seed: