26 public void apply(MutableShipStatsAPI stats, String
id, State state,
float effectLevel) {
27 if (state == ShipSystemStatsScript.State.OUT) {
28 stats.getMaxSpeed().unmodify(
id);
29 stats.getMaxTurnRate().unmodify(
id);
32 stats.getAcceleration().modifyPercent(
id,
SPEED_BONUS * 3f * effectLevel);
33 stats.getDeceleration().modifyPercent(
id,
SPEED_BONUS * 3f * effectLevel);
34 stats.getTurnAcceleration().modifyFlat(
id,
TURN_BONUS * effectLevel);
35 stats.getTurnAcceleration().modifyPercent(
id,
TURN_BONUS * 5f * effectLevel);
36 stats.getMaxTurnRate().modifyFlat(
id, 15f);
37 stats.getMaxTurnRate().modifyPercent(
id, 100f);
40 if (stats.getEntity() instanceof ShipAPI) {
41 ShipAPI ship = (ShipAPI) stats.getEntity();
43 ship.getEngineController().fadeToOtherColor(
this, color,
new Color(0,0,0,0), effectLevel, 0.67f);
45 ship.getEngineController().extendFlame(
this, 2f * effectLevel, 0f * effectLevel, 0f * effectLevel);
64 public void unapply(MutableShipStatsAPI stats, String
id) {
65 stats.getMaxSpeed().unmodify(
id);
66 stats.getMaxTurnRate().unmodify(
id);
67 stats.getTurnAcceleration().unmodify(
id);
68 stats.getAcceleration().unmodify(
id);
69 stats.getDeceleration().unmodify(
id);