Aurora 4x

VB6 Aurora => Bureau of Ship Design => Topic started by: db48x on February 15, 2016, 01:41:04 PM

Title: Formula for engine BP cost?
Post by: db48x on February 15, 2016, 01:41:04 PM
I found an old post that gives a formula for the crew required, but I can't find the formula for the BP cost. Does anyone know it?
Title: Re: Formula for engine BP cost?
Post by: sublight on February 15, 2016, 02:56:44 PM
It isn't linear.

If memory serves cost is:

Cost = max(5, power_mod < 1.0 ? hs*tech*power_mod^2 : hs*tech*power_mod)
Title: Re: Formula for engine BP cost?
Post by: db48x on February 16, 2016, 12:34:42 AM
Hmm. That's not coming out right at all...
Title: Re: Formula for engine BP cost?
Post by: db48x on February 17, 2016, 02:41:32 AM
It turns out that you were only out by a factor of two:

Code: [Select]
Cost = max(5, power_mod < 1.0 ? hs*tech*power_mod^2/2 : hs*tech*power_mod/2)
or in spreadsheet terms:

Code: [Select]
=MAX(5, IF(ChosenPowerMod<1, ChosenEngineSize*ChosenPowerPerHS*ChosenPowerMod^2/2, ChosenEngineSize*ChosenPowerPerHS*ChosenPowerMod/2))