Author Topic: Formula for engine BP cost?  (Read 1662 times)

0 Members and 1 Guest are viewing this topic.

Offline db48x (OP)

  • Commodore
  • **********
  • d
  • Posts: 641
  • Thanked: 200 times
Formula for engine BP cost?
« 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?
 

Offline sublight

  • Pulsar 4x Dev
  • Captain
  • *
  • s
  • Posts: 592
  • Thanked: 17 times
Re: Formula for engine BP cost?
« Reply #1 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)
 

Offline db48x (OP)

  • Commodore
  • **********
  • d
  • Posts: 641
  • Thanked: 200 times
Re: Formula for engine BP cost?
« Reply #2 on: February 16, 2016, 12:34:42 AM »
Hmm. That's not coming out right at all...
 

Offline db48x (OP)

  • Commodore
  • **********
  • d
  • Posts: 641
  • Thanked: 200 times
Re: Formula for engine BP cost?
« Reply #3 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))