Upgrading planet infrastructure (emergency facilities) while it is being bombed
Does it help?
Does upgrading planet infrastructure while it is being bombed prolong its survival? I mean if you start the upgrade after the bombs started to hit the surface. I've looked in the planet entity files, and while the planet max health obviously increases, there's nothing about its rate of infra growth (self-repair rate) there, unlike the rate of growth for the population, which is specified in those files. (Pop growth is specified at every population level in fact, but those numbers are set same at every level for every planet I looked at; only the asteroids get less than the rest.) So infra growth rate is probably a constant: either in gameplay.constants or hardcoded. Does anyone know how it works? Does it grow at an absolute constant rate or does it grow at a fraction of max infra every second? I can obviously sandbox test these hypotheses, but hopefully someone already knows the answer given that planet glassing is such an important aspect of the game.
A quick update: in gameplay.constants I found the following in the PlanetData section:
healthRegenRatePercWhenBombed .000
considerBeingBombedTimeForHealthRegen 20
So it seems that a planet's infra growth is completely disabled while it is being bombed, therefore infra upgrades bought during bombardment are a complete waste of credits unless you get the bombardment to lift at some point thereafter (but before the planet dies). So you might as well save your credits until you can actually end the bombardment.
But what about the rate of infra growth while not being bombed? It doesn't seem to be spelled out in gameplay.constants at all. The fact that the regen rate during bombardment is specified in percentage (albeit set to 0%) does suggest that planets with greater infra also recover/grow it faster while they are not bombed, but this remains to be tested in actual gameplay. This may matter in a situation where you managed to end the bombardment, the planet survived, but it is obviously less than full health. Assuming it's plausible that it may come under bombardment again in the future, does it pay off to begin infra upgrade immediately or you might just as well wait until it recovers to its maximum health already purchased before spending anymore on it?
Updated: Edited the title to make it less confusing by adding the "emergency facilities" parenthetical, which is what these are called in game (but not in any of the the entity/galaxy/gameplay.constats files.)