Package com.fs.starfarer.api.impl.combat
Class CRPluginImpl
java.lang.Object
com.fs.starfarer.api.impl.combat.CRPluginImpl
- All Implemented Interfaces:
CombatReadinessPlugin
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.fs.starfarer.api.combat.CombatReadinessPlugin
CombatReadinessPlugin.CREffectDescriptionForTooltip, CombatReadinessPlugin.CREffectDetail, CombatReadinessPlugin.CREffectDetailType, CombatReadinessPlugin.CRStatusItemData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic float
static float
static float
static float
static float
static float
static float
static float
static float
static float
static float
static float
static float
static float
static float
protected static Object[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyCRToShip
(float cr, ShipAPI ship) void
applyCRToStats
(float cr, MutableShipStatsAPI stats, ShipAPI.HullSize hullSize) void
getCREffectDescription
(float cr, String shipOrWing, FleetMemberAPI member) Used to construct part of the CR tooltip in the fleet view.getCREffectDetails
(float cr, FleetMemberAPI member) float
float
float
float
float
float
getMissileLoadedFraction
(MutableShipStatsAPI stats, float cr) float
boolean
isOkToPermanentlyDisable
(ShipAPI ship, Object module) static boolean
isOkToPermanentlyDisableStatic
(ShipAPI ship, Object module)
-
Field Details
-
NO_SYSTEM_THRESHOLD
public static float NO_SYSTEM_THRESHOLD -
IMPROVE_START
public static float IMPROVE_START -
DEGRADE_START
public static float DEGRADE_START -
SHIELD_MALFUNCTION_START
public static float SHIELD_MALFUNCTION_START -
CRITICAL_MALFUNCTION_START
public static float CRITICAL_MALFUNCTION_START -
MALFUNCTION_START
public static float MALFUNCTION_START -
MISSILE_AMMO_REDUCTION_START
public static float MISSILE_AMMO_REDUCTION_START -
MAX_MOVEMENT_CHANGE
public static float MAX_MOVEMENT_CHANGE -
MAX_DAMAGE_TAKEN_CHANGE
public static float MAX_DAMAGE_TAKEN_CHANGE -
MAX_DAMAGE_CHANGE
public static float MAX_DAMAGE_CHANGE -
MAX_REFIT_CHANGE
public static float MAX_REFIT_CHANGE -
MAX_SHIELD_MALFUNCTION_CHANCE
public static float MAX_SHIELD_MALFUNCTION_CHANCE -
MAX_CRITICAL_MALFUNCTION_CHANCE
public static float MAX_CRITICAL_MALFUNCTION_CHANCE -
MAX_ENGINE_MALFUNCTION_CHANCE
public static float MAX_ENGINE_MALFUNCTION_CHANCE -
MAX_WEAPON_MALFUNCTION_CHANCE
public static float MAX_WEAPON_MALFUNCTION_CHANCE -
statusKeys
-
-
Constructor Details
-
CRPluginImpl
public CRPluginImpl()
-
-
Method Details
-
applyMaxCRCrewModifiers
- Specified by:
applyMaxCRCrewModifiers
in interfaceCombatReadinessPlugin
-
getCRStatusDataForShip
- Specified by:
getCRStatusDataForShip
in interfaceCombatReadinessPlugin
-
applyCRToStats
- Specified by:
applyCRToStats
in interfaceCombatReadinessPlugin
-
applyCRToShip
- Specified by:
applyCRToShip
in interfaceCombatReadinessPlugin
-
getMissileLoadedFraction
- Specified by:
getMissileLoadedFraction
in interfaceCombatReadinessPlugin
-
getMalfunctionThreshold
- Specified by:
getMalfunctionThreshold
in interfaceCombatReadinessPlugin
-
getCriticalMalfunctionThreshold
- Specified by:
getCriticalMalfunctionThreshold
in interfaceCombatReadinessPlugin
-
getShieldMalfunctionThreshold
-
getMissileAmmoReductionThreshold
-
getDegradeThreshold
-
getImproveThreshold
-
getCREffectDescription
public CombatReadinessPlugin.CREffectDescriptionForTooltip getCREffectDescription(float cr, String shipOrWing, FleetMemberAPI member) Description copied from interface:CombatReadinessPlugin
Used to construct part of the CR tooltip in the fleet view.- Specified by:
getCREffectDescription
in interfaceCombatReadinessPlugin
- Parameters:
cr
- from 0 to 1shipOrWing
- "ship" or "fighter wing".- Returns:
-
getCREffectDetails
public List<CombatReadinessPlugin.CREffectDetail> getCREffectDetails(float cr, FleetMemberAPI member) - Specified by:
getCREffectDetails
in interfaceCombatReadinessPlugin
-
isOkToPermanentlyDisable
- Specified by:
isOkToPermanentlyDisable
in interfaceCombatReadinessPlugin
-
isOkToPermanentlyDisableStatic
-