Class ThreatHullmod
java.lang.Object
com.fs.starfarer.api.combat.BaseHullMod
com.fs.starfarer.api.impl.combat.threat.ThreatHullmod
- All Implemented Interfaces:
HullModEffect
Hidden hullmod for managing the special properties of Threat ships.
- Author:
- Alex
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic float
static float
static float
static float
static String
static float
static float
static String
static float
static float
static float
static float
static float
static String
Fields inherited from class com.fs.starfarer.api.combat.BaseHullMod
spec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPostDescriptionSection
(TooltipMakerAPI tooltip, ShipAPI.HullSize hullSize, ShipAPI ship, float width, boolean isForModSpec) ship may be null, will be for modspecs.void
advanceInCombat
(ShipAPI ship, float amount) Not called while paused.void
Only called once.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) void
applyEffectsToFighterSpawnedByShip
(ShipAPI fighter, ShipAPI ship, String id) float
boolean
shouldAddDescriptionToTooltip
(ShipAPI.HullSize hullSize, ShipAPI ship, boolean isForModSpec) ship may be null, will be for modspecs.Methods inherited from class com.fs.starfarer.api.combat.BaseHullMod
addRequiredItemSection, addSModEffectSection, addSModSection, advanceInCampaign, affectsOPCosts, canBeAddedOrRemovedNow, getBorderColor, getCanNotBeInstalledNowReason, getDescriptionParam, getDescriptionParam, getDisplayCategoryIndex, getDisplaySortOrder, getNameColor, getSModDescriptionParam, getSModDescriptionParam, getUnapplicableReason, hasSModEffect, hasSModEffectSection, init, isApplicableToShip, isBuiltIn, isInPlayerFleet, isInPlayerFleet, isSMod, isSMod, isSModEffectAPenalty, shipHasOtherModInCategory, 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
getRequiredItem
-
Field Details
-
SHIP_BEING_RECLAIMED
-
HIVE_UNIT
-
FABRICATOR_UNIT
-
AIM_BONUS
public static float AIM_BONUS -
MISSILE_GUIDANCE_BONUS
public static float MISSILE_GUIDANCE_BONUS -
CR_BONUS
public static float CR_BONUS -
SENSOR_PROFILE_MULT
public static float SENSOR_PROFILE_MULT -
EW_PENALTY_MULT
public static float EW_PENALTY_MULT -
HIVE_UNIT_REGEN_RATE_MULT
public static float HIVE_UNIT_REGEN_RATE_MULT -
HIVE_UNIT_SWARM_SIZE_MULT
public static float HIVE_UNIT_SWARM_SIZE_MULT -
FABRICATOR_UNIT_REGEN_RATE_MULT
public static float FABRICATOR_UNIT_REGEN_RATE_MULT -
FABRICATOR_UNIT_SWARM_SIZE_MULT
public static float FABRICATOR_UNIT_SWARM_SIZE_MULT -
MODULE_DAMAGE_TAKEN_MULT
public static float MODULE_DAMAGE_TAKEN_MULT -
EMP_DAMAGE_TAKEN_MULT
public static float EMP_DAMAGE_TAKEN_MULT
-
-
Constructor Details
-
ThreatHullmod
public ThreatHullmod()
-
-
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
-
applyEffectsAfterShipAddedToCombatEngine
Description copied from interface:HullModEffect
Only called once. Not called again if the ship is removed and then added back to the engine. -
advanceInCombat
Description copied from interface:HullModEffect
Not called while paused.- Specified by:
advanceInCombat
in interfaceHullModEffect
- Overrides:
advanceInCombat
in classBaseHullMod
-
applyEffectsToFighterSpawnedByShip
- Specified by:
applyEffectsToFighterSpawnedByShip
in interfaceHullModEffect
- Overrides:
applyEffectsToFighterSpawnedByShip
in classBaseHullMod
-
shouldAddDescriptionToTooltip
public boolean shouldAddDescriptionToTooltip(ShipAPI.HullSize hullSize, ShipAPI ship, boolean isForModSpec) Description copied from interface:HullModEffect
ship may be null, will be for modspecs. hullsize will always be CAPITAL_SHIP for modspecs.- Specified by:
shouldAddDescriptionToTooltip
in interfaceHullModEffect
- Overrides:
shouldAddDescriptionToTooltip
in classBaseHullMod
- Returns:
-
addPostDescriptionSection
public void addPostDescriptionSection(TooltipMakerAPI tooltip, ShipAPI.HullSize hullSize, ShipAPI ship, float width, boolean isForModSpec) Description copied from interface:HullModEffect
ship may be null, will be for modspecs. hullsize will always be CAPITAL_SHIP for modspecs.- Specified by:
addPostDescriptionSection
in interfaceHullModEffect
- Overrides:
addPostDescriptionSection
in classBaseHullMod
-
getTooltipWidth
public float getTooltipWidth()- Specified by:
getTooltipWidth
in interfaceHullModEffect
- Overrides:
getTooltipWidth
in classBaseHullMod
-