Class EnergyLashSystemScript
java.lang.Object
com.fs.starfarer.api.impl.combat.BaseShipSystemScript
com.fs.starfarer.api.impl.combat.threat.EnergyLashSystemScript
- All Implemented Interfaces:
ShipSystemStatsScript
,ShipSystemStatsScriptAdvanced
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.fs.starfarer.api.plugins.ShipSystemStatsScript
ShipSystemStatsScript.State, ShipSystemStatsScript.StatusData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic float
protected float
static float
static float
static float
protected WeaponSlotAPI
static float
static float
static float
static float
static float
static float
protected boolean
protected float
protected List<WeaponSlotAPI>
static float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(MutableShipStatsAPI stats, String id, ShipSystemStatsScript.State state, float effectLevel) protected void
applyEffectToTarget
(ShipAPI ship, ShipAPI target) protected void
protected ShipAPI
findTarget
(ShipAPI ship) getInfoText
(ShipSystemAPI system, ShipAPI ship) If null, uses "READY" and "ACTIVE" as appropritate in the ship info widget.static float
getStatusData
(int index, ShipSystemStatsScript.State state, float effectLevel) boolean
boolean
isUsable
(ShipSystemAPI system, ShipAPI ship) boolean
isValidLashTarget
(ShipAPI ship, ShipAPI other) void
unapply
(MutableShipStatsAPI stats, String id) Methods inherited from class com.fs.starfarer.api.impl.combat.BaseShipSystemScript
getActiveOverride, getDisplayNameOverride, getInOverride, getOutOverride, getRegenOverride, getUsesOverride
-
Field Details
-
MAX_LASH_RANGE
public static float MAX_LASH_RANGE -
DAMAGE
public static float DAMAGE -
EMP_DAMAGE
public static float EMP_DAMAGE -
MIN_COOLDOWN
public static float MIN_COOLDOWN -
MAX_COOLDOWN
public static float MAX_COOLDOWN -
COOLDOWN_DP_MULT
public static float COOLDOWN_DP_MULT -
MIN_HIT_ENEMY_COOLDOWN
public static float MIN_HIT_ENEMY_COOLDOWN -
MAX_HIT_ENEMY_COOLDOWN
public static float MAX_HIT_ENEMY_COOLDOWN -
HIT_PHASE_ENEMY_COOLDOWN_MULT
public static float HIT_PHASE_ENEMY_COOLDOWN_MULT -
SWARM_TIMEOUT
public static float SWARM_TIMEOUT -
PHASE_OVERLOAD_DUR
public static float PHASE_OVERLOAD_DUR -
mainSlot
-
slots
-
readyToFire
protected boolean readyToFire -
sinceSwarmTargeted
protected float sinceSwarmTargeted -
cooldownToSet
protected float cooldownToSet
-
-
Constructor Details
-
EnergyLashSystemScript
public EnergyLashSystemScript()
-
-
Method Details
-
findSlots
-
apply
public void apply(MutableShipStatsAPI stats, String id, ShipSystemStatsScript.State state, float effectLevel) - Specified by:
apply
in interfaceShipSystemStatsScript
- Overrides:
apply
in classBaseShipSystemScript
-
applyEffectToTarget
-
unapply
- Specified by:
unapply
in interfaceShipSystemStatsScript
- Overrides:
unapply
in classBaseShipSystemScript
-
getStatusData
public ShipSystemStatsScript.StatusData getStatusData(int index, ShipSystemStatsScript.State state, float effectLevel) - Specified by:
getStatusData
in interfaceShipSystemStatsScript
- Overrides:
getStatusData
in classBaseShipSystemScript
-
getInfoText
Description copied from interface:ShipSystemStatsScriptAdvanced
If null, uses "READY" and "ACTIVE" as appropritate in the ship info widget.- Specified by:
getInfoText
in interfaceShipSystemStatsScriptAdvanced
- Overrides:
getInfoText
in classBaseShipSystemScript
- Returns:
-
isInRange
-
isValidLashTarget
-
findTarget
-
isUsable
- Specified by:
isUsable
in interfaceShipSystemStatsScriptAdvanced
- Overrides:
isUsable
in classBaseShipSystemScript
-
getRange
-