[Posting] Re: core regeneration bug?
From:Mr X
Thread:core regeneration bug?
Forum:Bugs
In reply to:core regeneration bug?
Date:Tue, 2013-02-26 09:26 GMT

i have noticed that the planet core regeneration rate is lower than THost. what is the PHost formula?

the THost formula is CoreRegenAmount = CEILING(RegenRate*(mining rate/100)), thus a mining rate of 21 with a [THost] default core regeneration rate of 5 percent gives a core regeneration of 2.

GhostWriter

PHost is almost the same, but it uses a flavour of ROUND instead of CEILING. So yes, it is a bit lower.

From the docs:

New_minerals_in_core = Trunc((TransuraniumDecayRate * Mineral_density + 50) / 100)

Or more readable

trunc(TDR*M_d/100 + 0.5)

This is a testing version.
It may be incomplete, and have more bugs (or features) than the public live version at planetscentral.com.