public class CRPluginImpl extends java.lang.Object implements CombatReadinessPlugin
CombatReadinessPlugin.CREffectDescriptionForTooltip, CombatReadinessPlugin.CREffectDetail, CombatReadinessPlugin.CREffectDetailType, CombatReadinessPlugin.CRStatusItemData| Modifier and Type | Field and Description |
|---|---|
static float |
CRITICAL_MALFUNCTION_START |
static float |
DEGRADE_START |
static float |
IMPROVE_START |
static float |
MALFUNCTION_START |
static float |
MAX_CRITICAL_MALFUNCTION_CHANCE |
static float |
MAX_DAMAGE_CHANGE |
static float |
MAX_DAMAGE_TAKEN_CHANGE |
static float |
MAX_ENGINE_MALFUNCTION_CHANCE |
static float |
MAX_MOVEMENT_CHANGE |
static float |
MAX_REFIT_CHANGE |
static float |
MAX_SHIELD_MALFUNCTION_CHANCE |
static float |
MAX_WEAPON_MALFUNCTION_CHANCE |
static float |
MISSILE_AMMO_REDUCTION_START |
static float |
NO_SYSTEM_THRESHOLD |
static float |
SHIELD_MALFUNCTION_START |
protected static java.lang.Object[] |
statusKeys |
| Constructor and Description |
|---|
CRPluginImpl() |
public static float NO_SYSTEM_THRESHOLD
public static float IMPROVE_START
public static float DEGRADE_START
public static float SHIELD_MALFUNCTION_START
public static float CRITICAL_MALFUNCTION_START
public static float MALFUNCTION_START
public static float MISSILE_AMMO_REDUCTION_START
public static float MAX_MOVEMENT_CHANGE
public static float MAX_DAMAGE_TAKEN_CHANGE
public static float MAX_DAMAGE_CHANGE
public static float MAX_REFIT_CHANGE
public static float MAX_SHIELD_MALFUNCTION_CHANCE
public static float MAX_CRITICAL_MALFUNCTION_CHANCE
public static float MAX_ENGINE_MALFUNCTION_CHANCE
public static float MAX_WEAPON_MALFUNCTION_CHANCE
protected static java.lang.Object[] statusKeys
public CRPluginImpl()
public void applyMaxCRCrewModifiers(FleetMemberAPI member)
applyMaxCRCrewModifiers in interface CombatReadinessPluginpublic java.util.List<CombatReadinessPlugin.CRStatusItemData> getCRStatusDataForShip(ShipAPI ship)
getCRStatusDataForShip in interface CombatReadinessPluginpublic void applyCRToStats(float cr, MutableShipStatsAPI stats, ShipAPI.HullSize hullSize)
applyCRToStats in interface CombatReadinessPluginpublic void applyCRToShip(float cr, ShipAPI ship)
applyCRToShip in interface CombatReadinessPluginpublic float getMissileLoadedFraction(MutableShipStatsAPI stats, float cr)
getMissileLoadedFraction in interface CombatReadinessPluginpublic float getMalfunctionThreshold(MutableShipStatsAPI stats)
getMalfunctionThreshold in interface CombatReadinessPluginpublic float getCriticalMalfunctionThreshold(MutableShipStatsAPI stats)
getCriticalMalfunctionThreshold in interface CombatReadinessPluginpublic float getShieldMalfunctionThreshold(MutableShipStatsAPI stats)
public float getMissileAmmoReductionThreshold(MutableShipStatsAPI stats)
public float getDegradeThreshold(MutableShipStatsAPI stats)
public float getImproveThreshold(MutableShipStatsAPI stats)
public CombatReadinessPlugin.CREffectDescriptionForTooltip getCREffectDescription(float cr, java.lang.String shipOrWing, FleetMemberAPI member)
CombatReadinessPlugingetCREffectDescription in interface CombatReadinessPlugincr - from 0 to 1shipOrWing - "ship" or "fighter wing".public java.util.List<CombatReadinessPlugin.CREffectDetail> getCREffectDetails(float cr, FleetMemberAPI member)
getCREffectDetails in interface CombatReadinessPluginpublic boolean isOkToPermanentlyDisable(ShipAPI ship, java.lang.Object module)
isOkToPermanentlyDisable in interface CombatReadinessPluginpublic static boolean isOkToPermanentlyDisableStatic(ShipAPI ship, java.lang.Object module)