Class FragmentSwarmHullmod
java.lang.Object
com.fs.starfarer.api.combat.BaseHullMod
com.fs.starfarer.api.impl.combat.threat.FragmentSwarmHullmod
- All Implemented Interfaces:
HullModEffect
Hullmod that creates a fragment swarm around the ship. This swarm is required to power "fragment" weapons.
- Author:
- Alex
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic String
static String
static String
static boolean
static float
static float
static String
static String
static Object
Fields inherited from class com.fs.starfarer.api.combat.BaseHullMod
spec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
advanceInCombat
(ShipAPI ship, float amount) Not called while paused.void
applyEffectsAfterShipCreation
(ShipAPI ship, String id) Effects applied here should NOT affect ship stats as this does not get called from the campaign.void
applyEffectsBeforeShipCreation
(ShipAPI.HullSize hullSize, MutableShipStatsAPI stats, String id) static RoilingSwarmEffect
createSwarmFor
(ShipAPI ship) static float
static int
getDescriptionParam
(int index, ShipAPI.HullSize hullSize) getSModDescriptionParam
(int index, ShipAPI.HullSize hullSize, ShipAPI ship) getUnapplicableReason
(ShipAPI ship) boolean
isApplicableToShip
(ShipAPI ship) boolean
Methods inherited from class com.fs.starfarer.api.combat.BaseHullMod
addPostDescriptionSection, addRequiredItemSection, addSModEffectSection, addSModSection, advanceInCampaign, affectsOPCosts, applyEffectsToFighterSpawnedByShip, canBeAddedOrRemovedNow, getBorderColor, getCanNotBeInstalledNowReason, getDescriptionParam, getDisplayCategoryIndex, getDisplaySortOrder, getNameColor, getSModDescriptionParam, getTooltipWidth, hasSModEffect, hasSModEffectSection, init, isBuiltIn, isInPlayerFleet, isInPlayerFleet, isSMod, isSMod, shipHasOtherModInCategory, shouldAddDescriptionToTooltip, showInRefitScreenModPickerFor
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.fs.starfarer.api.combat.HullModEffect
applyEffectsAfterShipAddedToCombatEngine
-
Field Details
-
STANDARD_SWARM_EXCHANGE_CLASS
-
STANDARD_SWARM_FLOCKING_CLASS
-
CONSTRUCTION_SWARM_FLOCKING_CLASS
-
RECLAMATION_SWARM_FLOCKING_CLASS
-
RECLAMATION_SWARM_EXCHANGE_CLASS
-
SHOW_OVERLAY_ON_THREAT_SHIPS
public static boolean SHOW_OVERLAY_ON_THREAT_SHIPS -
SMOD_CR_PENALTY
public static float SMOD_CR_PENALTY -
SMOD_MAINTENANCE_PENALTY
public static float SMOD_MAINTENANCE_PENALTY -
STATUS_KEY1
-
-
Constructor Details
-
FragmentSwarmHullmod
public FragmentSwarmHullmod()
-
-
Method Details
-
applyEffectsBeforeShipCreation
public void applyEffectsBeforeShipCreation(ShipAPI.HullSize hullSize, MutableShipStatsAPI stats, String id) - Specified by:
applyEffectsBeforeShipCreation
in interfaceHullModEffect
- Overrides:
applyEffectsBeforeShipCreation
in classBaseHullMod
-
applyEffectsAfterShipCreation
Description copied from interface:HullModEffect
Effects applied here should NOT affect ship stats as this does not get called from the campaign. Apply stat changes in applyEffectsBeforeShipCreation() instead, as that does affect the campaign.- Specified by:
applyEffectsAfterShipCreation
in interfaceHullModEffect
- Overrides:
applyEffectsAfterShipCreation
in classBaseHullMod
-
advanceInCombat
Description copied from interface:HullModEffect
Not called while paused.- Specified by:
advanceInCombat
in interfaceHullModEffect
- Overrides:
advanceInCombat
in classBaseHullMod
-
createSwarmFor
-
getBaseSwarmSize
-
getBaseSwarmRespawnRateMult
-
getRequiredItem
-
isApplicableToShip
- Specified by:
isApplicableToShip
in interfaceHullModEffect
- Overrides:
isApplicableToShip
in classBaseHullMod
-
getUnapplicableReason
- Specified by:
getUnapplicableReason
in interfaceHullModEffect
- Overrides:
getUnapplicableReason
in classBaseHullMod
-
getDescriptionParam
- Specified by:
getDescriptionParam
in interfaceHullModEffect
- Overrides:
getDescriptionParam
in classBaseHullMod
-
getSModDescriptionParam
- Specified by:
getSModDescriptionParam
in interfaceHullModEffect
- Overrides:
getSModDescriptionParam
in classBaseHullMod
-
isSModEffectAPenalty
public boolean isSModEffectAPenalty()- Specified by:
isSModEffectAPenalty
in interfaceHullModEffect
- Overrides:
isSModEffectAPenalty
in classBaseHullMod
-