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 void applyMaxCRCrewModifiers(FleetMemberAPI member)
applyMaxCRCrewModifiers
in interface CombatReadinessPlugin
public java.util.List<CombatReadinessPlugin.CRStatusItemData> getCRStatusDataForShip(ShipAPI ship)
getCRStatusDataForShip
in interface CombatReadinessPlugin
public void applyCRToStats(float cr, MutableShipStatsAPI stats, ShipAPI.HullSize hullSize)
applyCRToStats
in interface CombatReadinessPlugin
public void applyCRToShip(float cr, ShipAPI ship)
applyCRToShip
in interface CombatReadinessPlugin
public float getMissileLoadedFraction(MutableShipStatsAPI stats, float cr)
getMissileLoadedFraction
in interface CombatReadinessPlugin
public float getMalfunctionThreshold(MutableShipStatsAPI stats)
getMalfunctionThreshold
in interface CombatReadinessPlugin
public float getCriticalMalfunctionThreshold(MutableShipStatsAPI stats)
getCriticalMalfunctionThreshold
in interface CombatReadinessPlugin
public 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)
CombatReadinessPlugin
getCREffectDescription
in interface CombatReadinessPlugin
cr
- from 0 to 1shipOrWing
- "ship" or "fighter wing".public java.util.List<CombatReadinessPlugin.CREffectDetail> getCREffectDetails(float cr, FleetMemberAPI member)
getCREffectDetails
in interface CombatReadinessPlugin
public boolean isOkToPermanentlyDisable(ShipAPI ship, java.lang.Object module)
isOkToPermanentlyDisable
in interface CombatReadinessPlugin
public static boolean isOkToPermanentlyDisableStatic(ShipAPI ship, java.lang.Object module)
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.