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: Make Asteroid Impact Code Accessible  (Read 672 times)

SafariJohn

  • Admiral
  • *****
  • Posts: 3010
    • View Profile
Make Asteroid Impact Code Accessible
« on: December 27, 2021, 02:15:05 PM »

I want to do an insurance program that covers when your ships get damaged by asteroid impacts for my Roider Union mod, but the code for asteroid impacts is such a closed mess that I literally can't. It's barely even possible to detect individual hits.

Please revisit AsteroidBeltTerrainPlugin.java and make it possible to interact with the asteroid impact code.


I would like to see:
- modify chance of impact
- modify chance of damage
- modify damage
- modify impact force
- modify impact duration
- report (damaging) impact to listener
  - what ship was affected and how much damage it took
- probably more that I've forgotten
Logged

Wyvern

  • Admiral
  • *****
  • Posts: 3784
    • View Profile
Re: Make Asteroid Impact Code Accessible
« Reply #1 on: December 27, 2021, 02:18:30 PM »

You know, I like this idea. Would open up a niche for an asteroid-mining ship that can reduce the incidence/severity of impacts for your fleet.
Logged
Wyvern is 100% correct about the math.

JUDGE! slowpersun

  • Admiral
  • *****
  • Posts: 614
    • View Profile
Re: Make Asteroid Impact Code Accessible
« Reply #2 on: December 27, 2021, 03:32:51 PM »

Yes, please, tired of advocating for ox drive field stabilizer hull mod not reducing asteroid hit chance.  Might just mod it in myself if necessary.
Logged
I wasn't always a Judge...