1package com.fs.starfarer.api.impl.combat.threat;
5import com.fs.starfarer.api.Global;
6import com.fs.starfarer.api.combat.BaseHullMod;
7import com.fs.starfarer.api.combat.CombatEngineAPI;
8import com.fs.starfarer.api.combat.MutableShipStatsAPI;
9import com.fs.starfarer.api.combat.ShipAPI;
10import com.fs.starfarer.api.combat.ShipAPI.HullSize;
11import com.fs.starfarer.api.impl.campaign.ids.Stats;
12import com.fs.starfarer.api.ui.Alignment;
13import com.fs.starfarer.api.ui.TooltipMakerAPI;
14import com.fs.starfarer.api.util.Misc;
77 if (hullSize != HullSize.FIGHTER) {
121 super.advanceInCombat(ship, amount);
126 float elapsedAsHulk = 0f;
127 String key =
"elapsedAsHulkKey";
131 elapsedAsHulk += amount;
133 if (elapsedAsHulk > 1f) {
136 boolean found =
false;
138 if (curr == ship || curr.
getOwner() != owner)
continue;
139 if (curr.isHulk() || curr.getOwner() == 100)
continue;
141 if (curr.getCurrentCR() >= 1f)
continue;
173 tooltip.
addPara(
"Threat hulls have a number of shared properties.", opad);
176 tooltip.
addPara(
"Sensor profile reduced to %s.", opad, h,
"0");
179 tooltip.
addPara(
"Target leading accuracy increased to maximum for all weapons, including missiles. Effect "
180 +
"of enemy ECM rating reduced by %s.", opad, h,
"" + (
int) Math.round(
EW_PENALTY_MULT * 100f) +
"%");
181 tooltip.
addPara(
"Weapon and engine damage taken is reduced by %s. EMP damage taken is reduced by %s. In "
182 +
"addition, repairs of damaged but functional weapons and engines can continue while they are under fire.",
191 return super.getTooltipWidth();
static CombatEngineAPI getCombatEngine()
void modifyFlat(String source, float value)
void modifyMult(String source, float value)
void modifyMult(String source, float value)
void modifyFlat(String source, float value)
static final String ELECTRONIC_WARFARE_PENALTY_MOD
static final String CAN_REPAIR_MODULES_UNDER_FIRE
static final String FRAGMENT_SWARM_RESPAWN_RATE_MULT
static final String FRAGMENT_SWARM_SIZE_MOD
static boolean isFabricator(ShipAPI ship)
boolean shouldAddDescriptionToTooltip(HullSize hullSize, ShipAPI ship, boolean isForModSpec)
static float SENSOR_PROFILE_MULT
static float EW_PENALTY_MULT
static float HIVE_UNIT_REGEN_RATE_MULT
static String FABRICATOR_UNIT
static float MODULE_DAMAGE_TAKEN_MULT
static String SHIP_BEING_RECLAIMED
void applyEffectsAfterShipAddedToCombatEngine(ShipAPI ship, String id)
static float FABRICATOR_UNIT_SWARM_SIZE_MULT
static float EMP_DAMAGE_TAKEN_MULT
static float MISSILE_GUIDANCE_BONUS
static float HIVE_UNIT_SWARM_SIZE_MULT
void applyEffectsAfterShipCreation(ShipAPI ship, String id)
void applyEffectsToFighterSpawnedByShip(ShipAPI fighter, ShipAPI ship, String id)
void applyEffectsBeforeShipCreation(HullSize hullSize, MutableShipStatsAPI stats, String id)
void advanceInCombat(ShipAPI ship, float amount)
static float FABRICATOR_UNIT_REGEN_RATE_MULT
void addPostDescriptionSection(TooltipMakerAPI tooltip, HullSize hullSize, ShipAPI ship, float width, boolean isForModSpec)
static Color getTextColor()
static Color getNegativeHighlightColor()
static Color getGrayColor()
static Color getHighlightColor()
boolean hasPluginOfClass(Class c)
void addPlugin(EveryFrameCombatPlugin plugin)
List< ShipAPI > getShips()
void setCustomData(String key, Object data)
Map< String, Object > getCustomData()
MutableStat getEngineDamageTakenMult()
MutableStat getEmpDamageTakenMult()
MutableStat getMaxCombatReadiness()
DynamicStatsAPI getDynamic()
MutableStat getMissileGuidance()
MutableStat getWeaponDamageTakenMult()
MutableStat getAutofireAimAccuracy()
ShipVariantAPI getVariant()
MutableStat getSensorProfile()
boolean hasTag(String tag)
ShipHullSpecAPI getHullSpec()
MutableStat getStat(String id)
StatBonus getMod(String id)