Knuckle Cracker

Particle Fleet => Feedback, Features, and Suggestions => Topic started by: GoodMorning on November 22, 2016, 01:48:11 AM

Title: [Suggestion] IsLandFullyMired command (or one of these alternatives...)
Post by: GoodMorning on November 22, 2016, 01:48:11 AM
The GrowStruc command has a return value of whether the Struc has expanded or not, which is nice.

However, for a project, I need to be able to tell if I should have recorded part of a mire supply as being used.

I see three alternatives:

Of course, it is technically possible to script this, but as a smaller project has proven (Fog or War), this is ludicrously inefficient.
Title: Re: [Suggestion] IsLandFullyMired command (or one of these alternatives...)
Post by: knucracker on November 22, 2016, 09:08:48 AM
I'll add to my short todo list.  One or more of these should be possible, if memory serves.

The game keeps track of every connected land mass (and recalculates them if the terrain changes).  For each land mass, the game knows the total land mass in cells, as well as where all of the edges of existing mire are (and hence the count).  So when a particle hits land it can very quickly know whether it should mire or bounce.  This is important because a lot of particles could be slamming into a lot of land.
Title: Re: [Suggestion] IsLandFullyMired command (or one of these alternatives...)
Post by: GoodMorning on November 22, 2016, 05:19:31 PM
Tracking that must be a significant load, though recalculating would be more significant still...