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;
33 if (index == 0)
return "" + (int) Math.round(
HULL_PERCENT * mult) +
"%";
34 if (index == 1)
return "" + (int) Math.round(
ARMOR_PERCENT * mult) +
"%";
47 return "Can only install one combat package on a civilian-grade hull";
50 return "Can only be installed on civilian-grade hulls with Militarized Subsystems";
52 return super.getUnapplicableReason(ship);
boolean shipHasOtherModInCategory(ShipAPI ship, String currMod, String category)
void modifyPercent(String source, float value)
void modifyPercent(String source, float value)
void modifyFlat(String source, float value)
static final String MILITARIZED_SUBSYSTEMS
static final String TAG_CIV_PACKAGE
static final String ACT_AS_COMBAT_SHIP
String getDescriptionParam(int index, HullSize hullSize)
static float ARMOR_PERCENT
String getUnapplicableReason(ShipAPI ship)
static float FLUX_CAPACITY_PERCENT
void applyEffectsBeforeShipCreation(HullSize hullSize, MutableShipStatsAPI stats, String id)
boolean isApplicableToShip(ShipAPI ship)
static float HULL_PERCENT
static float getEffectMult(MutableShipStatsAPI stats)
StatBonus getArmorBonus()
DynamicStatsAPI getDynamic()
MutableStat getFluxCapacity()
ShipVariantAPI getVariant()
boolean hasHullMod(String id)
StatBonus getMod(String id)