Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: How Hard Would It Be To Make All Ships Full-Burn By Default  (Read 2153 times)

Deshara

  • Admiral
  • *****
  • Posts: 1578
  • Suggestion Writer
    • View Profile

essentially removing the max speed cap, I mean. I don't care how it affects balance, I just think it'd be cool to see
Logged
Quote from: Deshara
I cant be blamed for what I said 5 minutes ago. I was a different person back then

Nicke535

  • Commander
  • ***
  • Posts: 240
  • Degenerate Core
    • View Profile
Re: How Hard Would It Be To Make All Ships Full-Burn By Default
« Reply #1 on: June 16, 2016, 01:23:59 PM »

It would probably take a single EveryFrameCombatScript that sets all ships in combat to have infinite max speed.

So about an hour work? At most?

Blaze

  • Commander
  • ***
  • Posts: 219
    • View Profile
Re: How Hard Would It Be To Make All Ships Full-Burn By Default
« Reply #2 on: June 16, 2016, 01:49:27 PM »

Code
package data.hullmods;

import java.util.HashMap;
import java.util.Map;
import com.fs.starfarer.api.combat.BaseHullMod;
import com.fs.starfarer.api.combat.MutableShipStatsAPI;
import com.fs.starfarer.api.combat.ShipAPI;
import com.fs.starfarer.api.combat.ShipAPI.HullSize;

public class BaseHullMod implements HullModEffect {

    @Override
    public void applyEffectsBeforeShipCreation(HullSize hullSize, MutableShipStatsAPI stats, String id) {
stats.getMaxSpeed().modifyFlat(id, 500000000000f);
    }


}

Throwing that onto basehullmod should change it so every ship with a hullmod has their speed boosted to impossible levels.

Then adding it to every ship as a built-in should only take a few minutes.
« Last Edit: June 16, 2016, 03:09:33 PM by Blaze »
Logged