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;
18 float effect = ship.getMutableStats().getDynamic().getValue(Stats.DMOD_EFFECT_MULT);
20 MutableShipStatsAPI stats = fighter.getMutableStats();
24 stats.getArmorDamageTakenMult().modifyPercent(
id,
DAMAGE_INCREASE * 100f * effect);
25 stats.getShieldDamageTakenMult().modifyPercent(
id,
DAMAGE_INCREASE * 100f * effect);
26 stats.getHullDamageTakenMult().modifyPercent(
id,
DAMAGE_INCREASE * 100f * effect);
29 fighter.setLightDHullOverlay();
39 if (ship !=
null) effect = ship.getMutableStats().getDynamic().getValue(Stats.DMOD_EFFECT_MULT);
41 if (index == 0)
return "" + (int) Math.round(
SPEED_REDUCTION * 100f * effect) +
"%";
42 if (index == 1)
return "" + (int) Math.round(
DAMAGE_INCREASE * 100f * effect) +
"%";
static String getCostDescParam(int index, int startIndex)
static void modifyCost(HullSize hullSize, MutableShipStatsAPI stats, String id)
static float SPEED_REDUCTION
void applyEffectsBeforeShipCreation(HullSize hullSize, MutableShipStatsAPI stats, String id)
static float DAMAGE_INCREASE
String getDescriptionParam(int index, HullSize hullSize, ShipAPI ship)
void applyEffectsToFighterSpawnedByShip(ShipAPI fighter, ShipAPI ship, String id)