1package com.fs.starfarer.api.impl.hullmods;
3import com.fs.starfarer.api.combat.BaseHullMod;
4import com.fs.starfarer.api.combat.MutableShipStatsAPI;
5import com.fs.starfarer.api.combat.ShipAPI;
6import com.fs.starfarer.api.combat.ShipAPI.HullSize;
7import com.fs.starfarer.api.impl.campaign.ids.HullMods;
8import com.fs.starfarer.api.impl.campaign.ids.Stats;
9import com.fs.starfarer.api.util.Misc;
19 boolean sMod =
isSMod(stats);
30 if (index == 0)
return "" + (int) ((1f -
CREW_LOSS_MULT) * 100f) +
"%";
44 return ship !=
null && bays > 0;
49 return "Can not be installed on automated ships";
51 return "Ship does not have fighter bays";
boolean isSMod(MutableShipStatsAPI stats)
void modifyMult(String source, float value)
static final String CONVERTED_HANGAR
static final String FIGHTER_CREW_LOSS_MULT
String getSModDescriptionParam(int index, HullSize hullSize)
String getUnapplicableReason(ShipAPI ship)
boolean isApplicableToShip(ShipAPI ship)
static float SMOD_CREW_LOSS_MULT
void applyEffectsBeforeShipCreation(HullSize hullSize, MutableShipStatsAPI stats, String id)
static float CREW_LOSS_MULT
String getDescriptionParam(int index, HullSize hullSize)
static boolean isAutomated(MutableShipStatsAPI stats)
MutableStat getNumFighterBays()
DynamicStatsAPI getDynamic()
MutableShipStatsAPI getMutableStats()
ShipVariantAPI getVariant()
boolean hasHullMod(String id)
MutableStat getStat(String id)