1package com.fs.starfarer.api.impl.hullmods;
3import com.fs.starfarer.api.Global;
4import com.fs.starfarer.api.combat.BaseHullMod;
5import com.fs.starfarer.api.combat.ShipAPI;
6import com.fs.starfarer.api.impl.campaign.ids.HullMods;
7import com.fs.starfarer.api.impl.campaign.ids.Stats;
8import com.fs.starfarer.api.loading.HullModSpecAPI;
15 return (
int) Math.round(ship.getMutableStats().getDynamic().getMod(Stats.MAX_LOGISTICS_HULLMODS_MOD).computeEffective(
MAX_MODS));
20 boolean has = spec !=
null && ship.getVariant().hasHullMod(spec.getId());
26 if (max == 1) text =
"one";
27 else if (max == 2) text =
"two";
28 else if (max == 3) text =
"three";
29 else if (max == 4) text =
"four";
34 return "Maximum of " + text +
" non-built-in \"Logistics\" hullmods per hull";
36 return "Maximum of " + text +
" non-built-in \"Logistics\" hullmods for this hull";
39 return super.getUnapplicableReason(ship);
44 boolean has = spec !=
null && ship.getVariant().hasHullMod(spec.getId());
51 return super.isApplicableToShip(ship);
57 for (String
id : ship.getVariant().getHullMods()) {
58 if (ship.getHullSpec().isBuiltInMod(
id))
continue;
59 if (ship.getVariant().getPermaMods().contains(
id))
continue;
62 if (mod.hasUITag(HullMods.TAG_UI_LOGISTICS)) {
static SettingsAPI getSettings()
int getNumLogisticsMods(ShipAPI ship)
boolean isApplicableToShip(ShipAPI ship)
String getUnapplicableReason(ShipAPI ship)
HullModSpecAPI getHullModSpec(String modId)