Paradise icon indicating copy to clipboard operation
Paradise copied to clipboard

refactor: turn /proc/findEventArea() into a global list

Open warriorstar-orion opened this issue 4 months ago • 0 comments

What Does This PR Do

This PR refactors /proc/findEventArea() and /proc/findUnrestrictedEventArea() into lists generated once after the station is loaded.

Why It's Good For The Game

/proc/findEventArea() has to do a bunch of work and iteration every time it's called. Turning it into a global list makes it faster and more straightforward to use, and hopefully encourages its further use where needed.

Testing

Tested running events that currently use it.

Changelog

NPFC

warriorstar-orion avatar Mar 07 '24 14:03 warriorstar-orion