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

Use of portals #5

Open
ebuchmann opened this issue Jan 12, 2021 · 1 comment
Open

Use of portals #5

ebuchmann opened this issue Jan 12, 2021 · 1 comment

Comments

@ebuchmann
Copy link

ebuchmann commented Jan 12, 2021

I noticed the TODO section listed portals. For my own use I wanted to figure this out and added it in. If you're open to PRs I can put my work together and push something up. I started building it on the side from this package, but can move things around so it can be included with this, which is mainly moving the data to the aard object and adding something in the config to handle a portal bag variable for your character.

The general idea is that it adds the portal rooms as a special exit right before calculating the path and then removes it. So far it's been working out for me, though trying to run to a place in a no-portal area will fail if it decides the portal is the better path. I also don't have a complete list of portals since I just started, but added in what I have so far.

In game my name is Swifin, feel free to send me a tell and we can talk. I didn't see any mention of your in game name in the readme.

@Jieiku
Copy link
Owner

Jieiku commented May 14, 2021

Absolutely! Please send the pull request.

I think the quick and dirty solution for it trying to run someplace from a no-portal room, would be to simply have a toggle-able option that turns portals on and off, then you could toggle this if you happen to be a no-portal room or area.

The better way would be to have all rooms that are no-portal marked in the mapper, but that might be a lot of work.

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

No branches or pull requests

2 participants