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

Feature request: lua-callable function to return all plots of a specific trade route #11324

Open
Tekamthi opened this issue Oct 12, 2024 · 0 comments

Comments

@Tekamthi
Copy link

I have a few mods that apply special rules to trade route plots. It's not very efficient however: afaik (memory is a little foggy on the details) mod checks all plots at start and builds table for all players tr plots. From there it rechecks all plots each time a tr starts or ends using Lua hooks, and rebuilds that players table. There is no way of which I am aware to return just the plots affected of the new/ending TR -- we can be notified of some of the details but not the plots

So request is to have some kind of function that returns an array of plots when given a tr identifier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants