For salvage expeditions, alignment now only considers the largest grid for bounding box alignment.
Why / Balance
Buggy. If bits of the ship fall off, the overall bounding box might be huge, because you flew kilometers away from it. Your ship might then be at one of the corners of that km-wide box, and very far away from the actual dungeon when it spawns.
How to test
Spawn at the Expeditionary Lodge.
Purchase a ship.
Climb aboard, add a lattice extension out from the ship, only needs to be a few tiles.
Snip the lattice from the ship, creating a new grid.
Pilot the ship several hundred meters away from your new grid, making sure not to bring it along with you.
Warp out to expedition.
When you arrive, the dungeon should be close to one of the sides of your ship with this fix. Without the fix, the dungeon will likely be far away (check the transform in the F7 admin panel, dungeon should be close to 0, 0 vs. your ship's coords).
Media
[X] I have added screenshots/videos to this PR showcasing its changes ingame, orthis PR does not require an ingame showcase
Breaking changes
Changelog
Might not add a changelog for this, difficult to explain. TBD.
About the PR
For salvage expeditions, alignment now only considers the largest grid for bounding box alignment.
Why / Balance
Buggy. If bits of the ship fall off, the overall bounding box might be huge, because you flew kilometers away from it. Your ship might then be at one of the corners of that km-wide box, and very far away from the actual dungeon when it spawns.
How to test
Media
Breaking changes
Changelog
Might not add a changelog for this, difficult to explain. TBD.