Skip to content

add tarot universe meropis exits #201

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gilmoa
Copy link

@gilmoa gilmoa commented May 10, 2025

added temporary exits for the tarot universe skill that were missing. previously mapper would only use the ability on mainland

Copy link
Contributor

@keneanung keneanung left a comment

Choose a reason for hiding this comment

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

This will work, but I'm not quite happy with the implementation. If you don't know what I mean, please ignore this comment and we will merge this in a few days. If you do and find the comment useful, feel free to implement it or comment that you would like to do so.

There are two things that make me unhappy. First, the actual creation of the special exits is duplicated. And second, every time a new path is calculated, one of the two tables is created from scratch. This probably doesn't matter for modern computers, but still...

You could get rid of both things by pulling the table out if the function and into the script proper, using two subtables:

local tarot locations = {
  Main = { ...},
  Meropis = { ... }
}

Then in the actual function, just check, if the subtable for the current continent exists and if it does, run the code to add the temp special exits.

yggdrasil = 12207,
}
for village, roomnum in pairs(tarotLocations) do
local continent = mmp.getareacontinents(area)[1]
Copy link
Author

Choose a reason for hiding this comment

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

I really don't like this one, but I figured the way mmp.oncontinent is implemented, at some point someone agreed for Achaea special exits to not care for multiple continent areas. Or maybe I'm missing something

@gilmoa
Copy link
Author

gilmoa commented May 11, 2025

I don't have someone to test this at the moment, also I would like an input on my comment

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