Class ConvertedHangar
java.lang.Object
com.fs.starfarer.api.combat.BaseHullMod
com.fs.starfarer.api.impl.hullmods.ConvertedHangar
- All Implemented Interfaces:
HullModEffect
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic float
static int
static float
static int
static float
static float
static float
static float
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
applyEffectsBeforeShipCreation
(ShipAPI.HullSize hullSize, MutableShipStatsAPI stats, String id) void
applyEffectsToFighterSpawnedByShip
(ShipAPI fighter, ShipAPI ship, String id) float
computeCRMult
(float suppliesPerDep, float dpMod) static int
computeDPModifier
(float fighterOPCost) static float
static SpriteAPI
getFighterSkin
(ShipAPI fighter, ShipAPI carrier) static SpriteAPI
getFighterSkin
(String cat, ShipAPI fighter, ShipAPI carrier) getSModDescriptionParam
(int index, ShipAPI.HullSize hullSize, ShipAPI ship) getUnapplicableReason
(ShipAPI ship) boolean
isApplicableToShip
(ShipAPI ship) static void
setFighterSkin
(ShipAPI fighter, ShipAPI carrier) 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, advanceInCombat, affectsOPCosts, applyEffectsAfterShipCreation, canBeAddedOrRemovedNow, getBorderColor, getCanNotBeInstalledNowReason, getDescriptionParam, getDescriptionParam, getDisplayCategoryIndex, getDisplaySortOrder, getNameColor, getSModDescriptionParam, getTooltipWidth, hasSModEffect, hasSModEffectSection, init, 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
applyEffectsAfterShipAddedToCombatEngine, getRequiredItem
-
Field Details
-
FIGHTER_OP_PER_DP
public static float FIGHTER_OP_PER_DP -
MIN_DP
public static int MIN_DP -
REPLACEMENT_TIME_MULT
public static float REPLACEMENT_TIME_MULT -
CREW_REQ
public static int CREW_REQ -
REARM_TIME_FRACTION
public static float REARM_TIME_FRACTION -
SMOD_CRUISER
public static float SMOD_CRUISER -
SMOD_CAPITAL
public static float SMOD_CAPITAL -
CR_THRESHOLD_UNINSTALLABLE
public static float CR_THRESHOLD_UNINSTALLABLE
-
-
Constructor Details
-
ConvertedHangar
public ConvertedHangar()
-
-
Method Details
-
computeDPModifier
public static int computeDPModifier(float fighterOPCost) -
getFighterOPCost
-
getFighterWings
-
computeCRMult
public float computeCRMult(float suppliesPerDep, float dpMod) -
applyEffectsBeforeShipCreation
public void applyEffectsBeforeShipCreation(ShipAPI.HullSize hullSize, MutableShipStatsAPI stats, String id) - Specified by:
applyEffectsBeforeShipCreation
in interfaceHullModEffect
- Overrides:
applyEffectsBeforeShipCreation
in classBaseHullMod
-
isApplicableToShip
- Specified by:
isApplicableToShip
in interfaceHullModEffect
- Overrides:
isApplicableToShip
in classBaseHullMod
-
getUnapplicableReason
- Specified by:
getUnapplicableReason
in interfaceHullModEffect
- Overrides:
getUnapplicableReason
in classBaseHullMod
-
applyEffectsToFighterSpawnedByShip
- Specified by:
applyEffectsToFighterSpawnedByShip
in interfaceHullModEffect
- Overrides:
applyEffectsToFighterSpawnedByShip
in classBaseHullMod
-
setFighterSkin
-
getFighterSkin
-
getFighterSkin
-
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
-
getSModDescriptionParam
- Specified by:
getSModDescriptionParam
in interfaceHullModEffect
- Overrides:
getSModDescriptionParam
in classBaseHullMod
-