#Worms Need Nests - Factorio Mods
1 messages ยท Page 1 of 1 (latest)
Really cool idea! I see in the code the dooomed worms are killed slowly by the enemy force. That's brutal they are slowly dying due to their own killing them off for being alone ๐
Just be careful though when you clear the list of returned spawners with zero health. Removing entries from an array while iterating is not safe ๐
ah true, I'll fix that - was under the impression that it was safe to do so if you're iterating using next(), which is what pairs() does, but apparently table.remove plays silly buggers with the array indexes
and yes, that's on purpose, it's funny, and makes sense since it's the worm dying because there isn't a nearby nest to support it
Yeah of course, didn't intend that it was wrong. I found it funny 
Wh not an ArtyllerySelectorTool tho?
I would 100% use ArtillerySelectionTool even if it would be 5x less efficient then manual clicking
...
Maybe I should make one?
๐ค
Is there a way to know if the chunk was scanned after the nest spawned?
๐ค
As I dont mind efficiency drop, I can just spam down a grid if arty calls
honestly yeah, I've had thoughts about making an artillery QOL mod but I don't know how much control the API gives you over artillery beyond shoot-an-artillery-shell-here