1package com.fs.starfarer.api.impl.campaign.abilities;
5import com.fs.starfarer.api.campaign.CampaignFleetAPI;
6import com.fs.starfarer.api.fleet.FleetMemberViewAPI;
7import com.fs.starfarer.api.impl.campaign.ids.Stats;
8import com.fs.starfarer.api.ui.LabelAPI;
9import com.fs.starfarer.api.ui.TooltipMakerAPI;
10import com.fs.starfarer.api.util.Misc;
54 if (fleet ==
null)
return;
58 float d = fleet.getStats().getDynamic().getValue(Stats.GO_DARK_DETECTED_AT_MULT);
66 fleet.goSlowOneFrame();
68 for (FleetMemberViewAPI view : fleet.getViews()) {
69 view.getContrailColor().shift(
getModId(),
new Color(0,0,0,0), 1f, 1f, 1f);
70 view.getContrailDurMult().shift(
getModId(), 0f, 1f, 1f, 1f);
72 view.getEngineGlowSizeMult().shift(
getModId(), 0.5f, 1f, 1f, 1f);
73 view.getEngineHeightMult().shift(
getModId(), 0.5f, 1f, 1f, 1f);
94 if (fleet ==
null)
return;
96 fleet.getStats().getDetectedRangeMod().unmodify(
getModId());
123 Color gray = Misc.getGrayColor();
124 Color highlight = Misc.getHighlightColor();
126 String status =
" (off)";
131 LabelAPI title = tooltip.addTitle(
spec.getName() + status);
132 title.highlightLast(status);
133 title.setHighlightColor(gray);
145 tooltip.addPara(
"Turns off all non-essential systems, reducing the range" +
146 " at which the fleet can be detected by %s and forcing the fleet to %s*." +
154 tooltip.addPara(
"*A fleet is considered slow-moving at a burn level of half that of its slowest ship.", gray, pad);
transient AbilitySpecAPI spec
CampaignFleetAPI getFleet()
void addIncompatibleToTooltip(TooltipMakerAPI tooltip, boolean expanded)
boolean showActiveIndicator()
static final float DETECTABILITY_MULT
String getDeactivationText()
void applyEffect(float amount, float level)
boolean showProgressIndicator()
void createTooltip(TooltipMakerAPI tooltip, boolean expanded)
String getActivationText()