Starsector API
Loading...
Searching...
No Matches
FlightControl.java
Go to the documentation of this file.
1
package
com.fs.starfarer.api.impl.hullmods;
2
3
import
com.fs.starfarer.api.combat.BaseHullMod;
4
5
public
class
FlightControl
extends
BaseHullMod {
6
7
// public static float ENGAGEMENT_REDUCTION = 0.4f;
8
// public static float REARM_TIME_MULT = 0.1f;
9
//
10
//
11
// public void applyEffectsBeforeShipCreation(HullSize hullSize, MutableShipStatsAPI stats, String id) {
12
//
13
// // doesn't work
14
// //stats.getDynamic().getStat(Stats.FIGHTER_REARM_TIME_MULT).modifyMult(id, REARM_TIME_MULT);
15
//
16
//
17
// float effect = stats.getDynamic().getValue(Stats.DMOD_EFFECT_MULT);
18
//
19
// stats.getFighterWingRange().modifyMult(id, 1f - ENGAGEMENT_REDUCTION * effect);
20
// CompromisedStructure.modifyCost(hullSize, stats, id);
21
// }
22
//
23
// @Override
24
// public void applyEffectsToFighterSpawnedByShip(ShipAPI fighter, ShipAPI ship, String id) {
25
// super.applyEffectsToFighterSpawnedByShip(fighter, ship, id);
26
// }
27
//
28
//
29
//
30
// public String getDescriptionParam(int index, HullSize hullSize, ShipAPI ship) {
31
// float effect = 1f;
32
// if (ship != null) effect = ship.getMutableStats().getDynamic().getValue(Stats.DMOD_EFFECT_MULT);
33
//
34
// if (index == 0) return "" + (int) Math.round(ENGAGEMENT_REDUCTION * 100f * effect) + "%";
35
// if (index >= 1) return CompromisedStructure.getCostDescParam(index, 1);
36
// return null;
37
// }
38
}
39
40
41
42
com.fs.starfarer.api.impl.hullmods.FlightControl
Definition
FlightControl.java:5
src
com
fs
starfarer
api
impl
hullmods
FlightControl.java
Generated by
1.9.8