All-surface tile damage/destruction support in API

Things that we aren't going to implement
Kusibu
Burner Inserter
Burner Inserter
Posts: 9
Joined: Tue Nov 04, 2014 4:28 pm
Contact:

All-surface tile damage/destruction support in API

Post by Kusibu »

Right now, only space platforms appear to support tile damage that I can tell. The only way to simulate it is to do a tile replacement, which doesn't (that I can tell) allow for a dying explosion, and definitely doesn't allow for dealing granular damage.

The main use case I had in mind was using "waves" based on the asteroid prototype for eroding terrain away into ocean (something that seems hard to do any other way), but I can also see it being neat for explosions.

A guess at the particulars for how it might be implemented:
  • Tile health becomes an (optional) property of the surface position, sort of like the hidden tile ID.
  • Only tiles tagged as foundations can have tile health they give to the position (it's still optional even then), and that health is used even if the foundation is covered.
  • When a tile is destroyed from losing health, with something covering a foundation (references the prototype's is_foundation), it skips the foundation and breaks down to the double-hidden tile.
  • The damage_tile method, and its interaction with asteroids, subsequently work on all surfaces.
protocol_1903
Fast Inserter
Fast Inserter
Posts: 204
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: All-surface tile damage/destruction support in API

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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15222
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: All-surface tile damage/destruction support in API

Post by Rseding91 »

Sorry but no. The current tile damaging logic was designed and implemented purely for platforms and does not integrate at all with the rest of the games systems.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Won't implement”