Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Author Topic: Possible Bug with Heavy Industry Pather Interest  (Read 868 times)

Wyvern

  • Admiral
  • *****
  • Posts: 3786
    • View Profile
Possible Bug with Heavy Industry Pather Interest
« on: January 23, 2019, 09:03:28 PM »

The code for this looks a bit odd:
Code
	public float getPatherInterest() {
float base = 2f;
if (nanoforge != null) base += 4f;
return 2f + super.getPatherInterest();
}
Which seems to return a constant of 2 + value-of-installed-AI-core, completely ignoring whether there's a nanoforge installed, what sort of nanoforge, or whether or not it's been upgraded to an orbital works.
Logged
Wyvern is 100% correct about the math.

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23988
    • View Profile
Re: Possible Bug with Heavy Industry Pather Interest
« Reply #1 on: January 23, 2019, 09:33:34 PM »

Thank you! It was indeed supposed to return base + instead of 2f +; fixed this up.
Logged