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;
27 if (index == 0)
return "" + (int)Math.round((1f + (
SUPPLY_USE_MULT - 1f) * effect - 1f) * 100f) +
"%";
28 if (index == 1)
return "" + (int)Math.round(
CREW_PERCENT * effect) +
"%";
29 if (index == 2)
return "" + Math.round(
MAX_CR_PENALTY * 100f * effect) +
"%";
void modifyFlat(String source, float value)
void modifyPercent(String source, float value)
void modifyPercent(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)
String getDescriptionParam(int index, HullSize hullSize, ShipAPI ship)
void applyEffectsBeforeShipCreation(HullSize hullSize, MutableShipStatsAPI stats, String id)
static float CREW_PERCENT
static float MAX_CR_PENALTY
static float SUPPLY_USE_MULT
MutableStat getMaxCombatReadiness()
MutableStat getSuppliesPerMonth()
DynamicStatsAPI getDynamic()
StatBonus getMinCrewMod()
MutableShipStatsAPI getMutableStats()
float getValue(String id)