Class GenerateSlipsurgeAbility
java.lang.Object
com.fs.starfarer.api.impl.campaign.abilities.BaseAbilityPlugin
com.fs.starfarer.api.impl.campaign.abilities.BaseDurationAbility
com.fs.starfarer.api.impl.campaign.abilities.DurationAbilityWithCost2
com.fs.starfarer.api.impl.campaign.abilities.GenerateSlipsurgeAbility
- All Implemented Interfaces:
AbilityPlugin
,EveryFrameScript
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic float
static float
protected Boolean
static boolean
static String
static float
static float
protected org.lwjgl.util.vector.Vector2f
static float
static String
protected JumpPointAPI
Fields inherited from class com.fs.starfarer.api.impl.campaign.abilities.BaseDurationAbility
activeDaysLeft, cooldownLeft, fadingOut, level, LOOP_FADE_TIME_DAYS, loopFadeLeft, turnedOn
Fields inherited from class com.fs.starfarer.api.impl.campaign.abilities.BaseAbilityPlugin
disableFrames, entity, id, PLAY_UI_SOUNDS_IN_WORLD_SOURCES, spec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
addInitialDescription
(TooltipMakerAPI tooltip, boolean expanded) boolean
addNotUsableReasonBeforeFuelCost
(TooltipMakerAPI tooltip, boolean expanded) protected void
applyStatsEffect
(float amount, float level) boolean
protected void
float
float
float
float
boolean
isUsable()
Whether the ability can be activated / the UI button corresponding to it is enabled.protected void
Methods inherited from class com.fs.starfarer.api.impl.campaign.abilities.DurationAbilityWithCost2
addNotUsableReasonAfterFuelCost, applyEffect, applyFleetVisual, cleanupImpl, computeFuelCost, computeSupplyCost, createTooltip, deactivateImpl, deductCost, fleetLeftBattle, fleetOpenedMarket, getActivationAtLowCRShipDamageProbability, getCooldownColor, getCooldownFraction, getCRCost, getNonReadyShips, hasTooltip, isCooldownRenderingAdditive, isOnCooldown, showAlarm
Methods inherited from class com.fs.starfarer.api.impl.campaign.abilities.BaseDurationAbility
activate, addIncompatibleToTooltip, advance, cleanup, deactivate, getActivationDays, getActiveDaysLeft, getCooldownDays, getCooldownLeft, getDeactivationDays, getDurationDays, getLevel, getLoopSoundUIPitch, getLoopSoundUIVolume, getLoopSoundWorldPitch, getLoopSoundWorldVolume, getProgressFraction, getTotalDurationDays, hasCustomButtonPressSounds, isActive, isFadingOut, isInProgress, pressButton, runWhilePaused, setActiveDaysLeft, setCooldownLeft, showActiveIndicator, showProgressIndicator
Methods inherited from class com.fs.starfarer.api.impl.campaign.abilities.BaseAbilityPlugin
addIncompatibleToTooltip, disableIncompatible, fleetJoinedBattle, forceDisable, getActivationText, getActiveColor, getActiveLayers, getDeactivationText, getEntity, getFleet, getId, getInterruptedList, getLoopSoundUI, getLoopSoundWorld, getModId, getOffSoundUI, getOffSoundWorld, getOnSoundUI, getOnSoundWorld, getProgressColor, getSpec, getSpriteName, getTooltipWidth, init, interruptIncompatible, isActiveOrInProgress, isCompatible, isDone, isTooltipExpandable, readResolve, render, showCooldownIndicator
-
Field Details
-
REQUIRE_GIANT_STARS_OR_STRONGER
public static boolean REQUIRE_GIANT_STARS_OR_STRONGER -
SLIPSURGE_STRENGTH
-
SLIPSURGE_STRENGTH_MULT
public static float SLIPSURGE_STRENGTH_MULT -
TRANSIT_MUSIC_SUPPRESSION
public static float TRANSIT_MUSIC_SUPPRESSION -
TRANSIT_SOUND_LOOP
-
FUEL_COST_MULT
public static float FUEL_COST_MULT -
CR_COST_MULT
public static float CR_COST_MULT -
SENSOR_RANGE_MULT
public static float SENSOR_RANGE_MULT -
SENSOR_MOD_ID
-
primed
-
startLoc
protected org.lwjgl.util.vector.Vector2f startLoc -
well
-
-
Constructor Details
-
GenerateSlipsurgeAbility
public GenerateSlipsurgeAbility()
-
-
Method Details
-
getFuelCostMult
public float getFuelCostMult()- Overrides:
getFuelCostMult
in classDurationAbilityWithCost2
-
getCRCostMult
public float getCRCostMult()- Overrides:
getCRCostMult
in classDurationAbilityWithCost2
-
getActivationDamageLevel
- Overrides:
getActivationDamageLevel
in classDurationAbilityWithCost2
-
canRecoverCRWhileActive
public boolean canRecoverCRWhileActive()- Overrides:
canRecoverCRWhileActive
in classDurationAbilityWithCost2
-
activateImpl
protected void activateImpl()- Overrides:
activateImpl
in classDurationAbilityWithCost2
-
applyStatsEffect
protected void applyStatsEffect(float amount, float level) - Overrides:
applyStatsEffect
in classDurationAbilityWithCost2
-
generateSlipstream
protected void generateSlipstream() -
unapplyStatsEffect
protected void unapplyStatsEffect()- Overrides:
unapplyStatsEffect
in classDurationAbilityWithCost2
-
isUsable
public boolean isUsable()Description copied from interface:AbilityPlugin
Whether the ability can be activated / the UI button corresponding to it is enabled.- Specified by:
isUsable
in interfaceAbilityPlugin
- Overrides:
isUsable
in classDurationAbilityWithCost2
- Returns:
-
addInitialDescription
- Overrides:
addInitialDescription
in classDurationAbilityWithCost2
-
addNotUsableReasonBeforeFuelCost
- Overrides:
addNotUsableReasonBeforeFuelCost
in classDurationAbilityWithCost2
-
findGravityWell
-
getStrengthForGravityWell
-
getStrengthForStellarObject
-