Commit 49e25cd
authored
added hasgridtype condition (#180)
When using !cleanup delete hasownertype npc everything will be deleted that is npc owned, so stations and ships. This is not a good behavior as NPC stations that are protected by safezoned may not want to be deleted.
You of course can remove them and use the shitty commands to remove the now empty safezones as well but players may want to expect a consistent location of these NPCs, as common points of interest.
So with this new condition you can
!cleanup delete hasownertype npc hasgridtype ship
which will only remove npc ships and leave the stations.
Similar to all other conditions a grid will only be deleted if all subgrids match this condition. So it works best for ships, as all subgrids of a ship usually are ships as well. However a station with a rotor head wont be removed by "static" condition as long as the rotor head is there.
This could be changed in the future but personally I dont think its needed to build something inconsistent there.1 parent abdb5c5 commit 49e25cd
1 file changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
226 | 248 | | |
227 | 249 | | |
228 | 250 | | |
| |||
0 commit comments