Class BaseSkillEffectDescription
java.lang.Object
com.fs.starfarer.api.impl.campaign.skills.BaseSkillEffectDescription
- All Implemented Interfaces:
CustomSkillDescription
,LevelBasedEffect
- Direct Known Subclasses:
AutomatedShips.Level1
,AutomatedShips.Level2
,AuxiliarySupport.Level1
,BulkTransport.BaseCapacityModifierEffect
,BulkTransport.Level4
,CarrierGroup.Level1
,CombatEndurance.Level4
,ContainmentProcedures.Level1
,ContainmentProcedures.Level4
,ContainmentProcedures.Level5
,CoordinatedManeuvers.Level1A
,CoordinatedManeuvers.Level1B
,CoordinatedManeuvers.Level1C
,CrewTraining.Level1
,CrewTraining.Level2
,CyberneticAugmentation.Level2
,CyberneticAugmentation.Level3
,DamageControl.Level6
,DerelictContingent.Level1
,EnergyWeaponMastery.Level1
,FieldRepairs.Level1
,FieldRepairs.Level2
,FighterUplink.Level1
,FighterUplink.Level2
,FluxRegulation.Level1
,ForceConcentration.Level4
,HullRestoration.Level5
,IndustrialPlanning.Level2
,MakeshiftEquipment.Level3
,Navigation.Level4
,NeuralLink.Level1
,PhaseCorps.Level3
,PlanetaryOperations.Level3
,RangedSpecialization.Level1
,Salvaging.Level4
,SupportDoctrine.Level3
,TacticalDrills.Level1
,TacticalDrills.Level2
,WeaponDrills.Level1
,WolfpackTactics.Level1C
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
static interface
Nested classes/interfaces inherited from interface com.fs.starfarer.api.characters.LevelBasedEffect
LevelBasedEffect.ScopeDescription
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAutomatedThresholdInfo
(TooltipMakerAPI info, FleetDataAPI data, MutableCharacterStatsAPI cStats) void
addFighterBayThresholdInfo
(TooltipMakerAPI info, FleetDataAPI data) void
addMilitarizedOPThresholdInfo
(TooltipMakerAPI info, FleetDataAPI data, MutableCharacterStatsAPI cStats) void
addOPThresholdAll
(TooltipMakerAPI info, FleetDataAPI data, MutableCharacterStatsAPI cStats, float threshold) void
addOPThresholdInfo
(TooltipMakerAPI info, FleetDataAPI data, MutableCharacterStatsAPI cStats) void
addOPThresholdInfo
(TooltipMakerAPI info, FleetDataAPI data, MutableCharacterStatsAPI cStats, float threshold) void
addPhaseOPThresholdInfo
(TooltipMakerAPI info, FleetDataAPI data, MutableCharacterStatsAPI cStats) protected float
computeAndCacheThresholdBonus
(FleetDataAPI data, MutableCharacterStatsAPI cStats, String key, float maxBonus, BaseSkillEffectDescription.ThresholdBonusType type) protected float
computeAndCacheThresholdBonus
(MutableShipStatsAPI stats, String key, float maxBonus, BaseSkillEffectDescription.ThresholdBonusType type) void
createCustomDescription
(MutableCharacterStatsAPI stats, SkillSpecAPI skill, TooltipMakerAPI info, float width) static float
getAutomatedPoints
(FleetDataAPI data, MutableCharacterStatsAPI stats) getAutomatedPointsDetail
(FleetDataAPI data, MutableCharacterStatsAPI stats) static MutableCharacterStatsAPI
getEffectDescription
(float level) static FleetDataAPI
getFleetData
(MutableShipStatsAPI stats) static float
getMilitarizedOP
(FleetDataAPI data, MutableCharacterStatsAPI stats) getMilitarizedOPDetail
(FleetDataAPI data, MutableCharacterStatsAPI stats) static float
static float
static float
getPhaseOP
(FleetDataAPI data, MutableCharacterStatsAPI stats) getPhaseOPDetail
(FleetDataAPI data, MutableCharacterStatsAPI stats) protected static float
getPoints
(FleetMemberAPI member, MutableCharacterStatsAPI stats) float
getThresholdBasedBonus
(float maxBonus, float value, float threshold) float
getThresholdBasedRoundedBonus
(float maxBonus, float value, float threshold) static float
getTotalCombatOP
(FleetDataAPI data, MutableCharacterStatsAPI stats) getTotalCombatOPDetail
(FleetDataAPI data, MutableCharacterStatsAPI stats) static float
getTotalOP
(FleetDataAPI data, MutableCharacterStatsAPI stats) getTotalOPDetail
(FleetDataAPI data, MutableCharacterStatsAPI stats) static String
getValueLabelForMember
(FleetMemberAPI member) boolean
static boolean
static boolean
hasFighterBays
(FleetMemberAPI member) void
init
(MutableCharacterStatsAPI stats, SkillSpecAPI skill) void
initElite
(MutableCharacterStatsAPI stats, SkillSpecAPI skill) static boolean
isCivilian
(MutableShipStatsAPI stats) static boolean
isCivilian
(FleetMemberAPI member) static boolean
static boolean
isMilitarized
(MutableShipStatsAPI stats) static boolean
isMilitarized
(FleetMemberAPI member)
-
Field Details
-
TOOLTIP_WIDTH
public static float TOOLTIP_WIDTH -
FIGHTER_BAYS_THRESHOLD
public static float FIGHTER_BAYS_THRESHOLD -
OP_THRESHOLD
public static float OP_THRESHOLD -
OP_LOW_THRESHOLD
public static float OP_LOW_THRESHOLD -
OP_ALL_LOW_THRESHOLD
public static float OP_ALL_LOW_THRESHOLD -
OP_ALL_THRESHOLD
public static float OP_ALL_THRESHOLD -
PHASE_OP_THRESHOLD
public static float PHASE_OP_THRESHOLD -
MILITARIZED_OP_THRESHOLD
public static float MILITARIZED_OP_THRESHOLD -
AUTOMATED_POINTS_THRESHOLD
public static float AUTOMATED_POINTS_THRESHOLD -
USE_RECOVERY_COST
public static boolean USE_RECOVERY_COST -
RECOVERY_COST
-
tc
-
dtc
-
hc
-
dhc
-
indent
-
alpha
protected int alpha
-
-
Constructor Details
-
BaseSkillEffectDescription
public BaseSkillEffectDescription()
-
-
Method Details
-
init
-
initElite
-
addFighterBayThresholdInfo
-
addOPThresholdInfo
public void addOPThresholdInfo(TooltipMakerAPI info, FleetDataAPI data, MutableCharacterStatsAPI cStats) -
addOPThresholdInfo
public void addOPThresholdInfo(TooltipMakerAPI info, FleetDataAPI data, MutableCharacterStatsAPI cStats, float threshold) -
addOPThresholdAll
public void addOPThresholdAll(TooltipMakerAPI info, FleetDataAPI data, MutableCharacterStatsAPI cStats, float threshold) -
addPhaseOPThresholdInfo
public void addPhaseOPThresholdInfo(TooltipMakerAPI info, FleetDataAPI data, MutableCharacterStatsAPI cStats) -
addAutomatedThresholdInfo
public void addAutomatedThresholdInfo(TooltipMakerAPI info, FleetDataAPI data, MutableCharacterStatsAPI cStats) -
addMilitarizedOPThresholdInfo
public void addMilitarizedOPThresholdInfo(TooltipMakerAPI info, FleetDataAPI data, MutableCharacterStatsAPI cStats) -
computeAndCacheThresholdBonus
protected float computeAndCacheThresholdBonus(MutableShipStatsAPI stats, String key, float maxBonus, BaseSkillEffectDescription.ThresholdBonusType type) -
computeAndCacheThresholdBonus
protected float computeAndCacheThresholdBonus(FleetDataAPI data, MutableCharacterStatsAPI cStats, String key, float maxBonus, BaseSkillEffectDescription.ThresholdBonusType type) -
getOPTotal
-
getCombatOPTotal
-
getAutomatedPointsTotal
-
getPhaseOPTotal
-
getMilitarizedOPTotal
-
getFighterBaysTotal
-
getTooltipCreator
public TooltipMakerAPI.TooltipCreator getTooltipCreator(BaseSkillEffectDescription.TooltipCreatorSkillEffectPlugin plugin) -
getValueLabelForMember
-
getThresholdBasedBonus
public float getThresholdBasedBonus(float maxBonus, float value, float threshold) -
getThresholdBasedRoundedBonus
public float getThresholdBasedRoundedBonus(float maxBonus, float value, float threshold) -
isMilitarized
-
isMilitarized
-
isCivilian
-
isCivilian
-
hasFighterBays
-
hasFighterBays
-
getPoints
-
getTotalOP
-
getTotalOPDetail
public static List<BaseSkillEffectDescription.FleetMemberPointContrib> getTotalOPDetail(FleetDataAPI data, MutableCharacterStatsAPI stats) -
getTotalCombatOP
-
getTotalCombatOPDetail
public static List<BaseSkillEffectDescription.FleetMemberPointContrib> getTotalCombatOPDetail(FleetDataAPI data, MutableCharacterStatsAPI stats) -
getPhaseOP
-
getPhaseOPDetail
public static List<BaseSkillEffectDescription.FleetMemberPointContrib> getPhaseOPDetail(FleetDataAPI data, MutableCharacterStatsAPI stats) -
getMilitarizedOP
-
getMilitarizedOPDetail
public static List<BaseSkillEffectDescription.FleetMemberPointContrib> getMilitarizedOPDetail(FleetDataAPI data, MutableCharacterStatsAPI stats) -
getNumFighterBays
-
getNumBaysIncludingModules
-
getNumFighterBaysDetail
public static List<BaseSkillEffectDescription.FleetMemberPointContrib> getNumFighterBaysDetail(FleetDataAPI data) -
getAutomatedPoints
-
getAutomatedPointsDetail
public static List<BaseSkillEffectDescription.FleetMemberPointContrib> getAutomatedPointsDetail(FleetDataAPI data, MutableCharacterStatsAPI stats) -
isInCampaign
public static boolean isInCampaign() -
getCommanderStats
-
getFleetData
-
hasCustomDescription
public boolean hasCustomDescription()- Specified by:
hasCustomDescription
in interfaceCustomSkillDescription
-
createCustomDescription
public void createCustomDescription(MutableCharacterStatsAPI stats, SkillSpecAPI skill, TooltipMakerAPI info, float width) - Specified by:
createCustomDescription
in interfaceCustomSkillDescription
-
getEffectDescription
- Specified by:
getEffectDescription
in interfaceLevelBasedEffect
-
getEffectPerLevelDescription
- Specified by:
getEffectPerLevelDescription
in interfaceLevelBasedEffect
-
getScopeDescription
- Specified by:
getScopeDescription
in interfaceLevelBasedEffect
-