Skip to content

Add "poweredgriddistancegreaterthan" cleanup filter.#217

Merged
Casimir255 merged 2 commits intoTorchAPI:masterfrom
FerrenF:master
Aug 9, 2025
Merged

Add "poweredgriddistancegreaterthan" cleanup filter.#217
Casimir255 merged 2 commits intoTorchAPI:masterfrom
FerrenF:master

Conversation

@FerrenF
Copy link
Copy Markdown
Contributor

@FerrenF FerrenF commented Jul 12, 2025

This PR introduces a condition implementation for grids which are nearby another grid that is powered (excluding itself): "poweredgriddistancegreaterthan". On the server this was made for, cleanup conditions include:

"Must not have 'Grid' in the name"
"Must not have the starter ship name"
"Must have a beacon"

Grids not matching all of these conditions are removed. This can lead to some rather unfortunate situations with players starting builds at their base at the wrong time or with looting wrecks. A condition that checks for nearby powered grids would go significant lengths towards reducing the amount of 'oopsie' player grid deletions.

Let the roast begin... ?

FerrenF added 2 commits July 10, 2025 22:49
Added condition: "poweredgriddistancegreaterthan". This condition finds grids that are farther than x distance from nearby powered grids.
Oops. We want to test that no nearby grids are powered, not unpowered.
@StalkR
Copy link
Copy Markdown

StalkR commented Jul 12, 2025

Basically: we can use the existing condition nopower to find and cleanup all unpowered grids, but we want to avoid cleaning up the unpowered grids (e.g. rover) at your (powered) base grid. This is the condition that implements it: clean up all the unpowered grids but only the ones that are all alone. Thanks for your consideration!

@Casimir255 Casimir255 merged commit 77dc497 into TorchAPI:master Aug 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants