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 function to allow worlds to easily allow self-locking items #1383

Merged
merged 17 commits into from
Mar 13, 2023

Conversation

alwaysintreble
Copy link
Collaborator

@alwaysintreble alwaysintreble commented Jan 13, 2023

What is this fixing or adding?

Title

How was this tested?

Primarily through using this function on my branch of The Messenger, but moved a few of the lttp locations that were easy enough to do this to and generated against it to verify items were self-locking and succeeding.

If this makes graphical changes, please attach screenshots.

Copy link
Member

@black-sliver black-sliver left a comment

Choose a reason for hiding this comment

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

From DMs it looks like this was properly tested by treble. I still want to give @espeon65536 and @Berserker66 time to veto before merging this. The change to can_fill should be fine, I think.

@black-sliver black-sliver merged commit 573a1a8 into ArchipelagoMW:main Mar 13, 2023
kindasneaki pushed a commit to kindasneaki/Archipelago that referenced this pull request Jun 28, 2023
…ms (ArchipelagoMW#1383)

* implement function to allow self locking items for items accessibility

* swap some lttp locations to use new functionality

* lambda capture `item_name` and `location`

* don't lambda capture location

* Revert weird visual indent

* make location.always_allow additive

* fix always_allow rule for multiple items

* don't need to lambda capture item_names

* oop

* move player assignment to the beginning

* always_allow should only be for that player so prevent non_local_items

* messenger got merged so have it use this

* Core: fix doc string indentation for allow_self_locking_items

* Core: fix doc string indentation for allow_self_locking_items, number two

---------

Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com>
@alwaysintreble alwaysintreble deleted the self_locking_items branch July 19, 2023 21:41
FlySniper pushed a commit to FlySniper/Archipelago that referenced this pull request Nov 14, 2023
…ms (ArchipelagoMW#1383)

* implement function to allow self locking items for items accessibility

* swap some lttp locations to use new functionality

* lambda capture `item_name` and `location`

* don't lambda capture location

* Revert weird visual indent

* make location.always_allow additive

* fix always_allow rule for multiple items

* don't need to lambda capture item_names

* oop

* move player assignment to the beginning

* always_allow should only be for that player so prevent non_local_items

* messenger got merged so have it use this

* Core: fix doc string indentation for allow_self_locking_items

* Core: fix doc string indentation for allow_self_locking_items, number two

---------

Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com>
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