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.Stats;
30 if (index == 0)
return "" + (int)Math.round((1f - crewMult) * 100f) +
"%";
31 if (index == 1)
return "" + Math.round(
MAX_CR_PENALTY * 100f * effect) +
"%";
void modifyFlat(String source, float value)
void modifyMult(String source, float value)
static final String DMOD_EFFECT_MULT
static String getCostDescParam(int index, int startIndex)
static void modifyCost(HullSize hullSize, MutableShipStatsAPI stats, String id)
static float MAX_CREW_MULT
String getDescriptionParam(int index, HullSize hullSize, ShipAPI ship)
void applyEffectsBeforeShipCreation(HullSize hullSize, MutableShipStatsAPI stats, String id)
static float MAX_CR_PENALTY
MutableStat getMaxCombatReadiness()
DynamicStatsAPI getDynamic()
StatBonus getMaxCrewMod()
MutableShipStatsAPI getMutableStats()
float getValue(String id)