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;
12 public static void modifyCost(HullSize hullSize, MutableShipStatsAPI stats, String
id) {
15 float effect = stats.getDynamic().getValue(Stats.DMOD_REDUCE_MAINTENANCE, 0);
21 if (index - startIndex == 0) {
32 float effect = stats.getDynamic().getValue(Stats.DMOD_EFFECT_MULT);
36 stats.getArmorBonus().modifyMult(
id, armorMult);
37 stats.getHullBonus().modifyMult(
id, hullMult);
43 if (ship !=
null) effect = ship.getMutableStats().getDynamic().getValue(Stats.DMOD_EFFECT_MULT);
48 if (index == 0)
return "" + (int) Math.round((1f - armorMult) * 100f) +
"%";
49 if (index == 1)
return "" + (int) Math.round((1f - hullMult) * 100f) +
"%";
static String getCostDescParam(int index, int startIndex)
static void modifyCost(HullSize hullSize, MutableShipStatsAPI stats, String id)
static float ARMOR_PENALTY_MULT
void applyEffectsBeforeShipCreation(HullSize hullSize, MutableShipStatsAPI stats, String id)
static float HULL_PENALTY_MULT
static float DEPLOYMENT_COST_MULT
String getDescriptionParam(int index, HullSize hullSize, ShipAPI ship)