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;
18 boolean sMod = isSMod(stats);
21 stats.getDynamic().getStat(Stats.FIGHTER_CREW_LOSS_MULT).modifyMult(
id, mult);
29 if (index == 0)
return "" + (int) ((1f -
CREW_LOSS_MULT) * 100f) +
"%";
34 if (ship.getVariant().hasHullMod(HullMods.AUTOMATED))
return false;
37 int bays = (int) ship.getMutableStats().getNumFighterBays().getModifiedValue();
41 return ship !=
null && bays > 0;
45 if (ship !=
null && ship.getVariant().hasHullMod(HullMods.AUTOMATED)) {
46 return "Can not be installed on automated ships";
48 return "Ship does not have fighter bays";
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)