Make platform.destroy_asteroid_chunks() return how many chunks are destroyed

RockPaperKatana
Inserter
Inserter
Posts: 26
Joined: Thu Dec 23, 2021 4:59 am
Contact:

Make platform.destroy_asteroid_chunks() return how many chunks are destroyed

Post by RockPaperKatana »

Currently the only way to access this information is by calling find_asteroid_chunks_filtered() and count the table size before calling destroy_asteroid_chunks(), which is not performance-friendly.
protocol_1903
Filter Inserter
Filter Inserter
Posts: 316
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: Make platform.destroy_asteroid_chunks() return how many chunks are destroyed

Post by protocol_1903 »

+1
If you need to reach me, message me on discord.

I make qol mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
If you have a mod idea, I can look into it.
Bilka
Factorio Staff
Factorio Staff
Posts: 3562
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Make platform.destroy_asteroid_chunks() return how many chunks are destroyed

Post by Bilka »

Okay, added for 2.0.67.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Implemented mod requests”