23 float mod = (Float) mag.get(hullSize);
24 if (stats.getVariant() !=
null) {
25 mod = Math.max(stats.getVariant().getHullSpec().getCargo() *
MIN_FRACTION, mod);
28 boolean sMod = isSMod(stats);
30 stats.getCargoMod().modifyFlat(
id, mod);
32 if (!sMod && stats.getVariant() !=
null && stats.getVariant().hasHullMod(HullMods.CIVGRADE) && !stats.getVariant().hasHullMod(HullMods.MILITARIZED_SUBSYSTEMS)) {
38 if (index == 0)
return "" + ((Float) mag.get(HullSize.FRIGATE)).intValue();
39 if (index == 1)
return "" + ((Float) mag.get(HullSize.DESTROYER)).intValue();
40 if (index == 2)
return "" + ((Float) mag.get(HullSize.CRUISER)).intValue();
41 if (index == 3)
return "" + ((Float) mag.get(HullSize.CAPITAL_SHIP)).intValue();
42 if (index == 4)
return "" + (int) Math.round(
MIN_FRACTION * 100f) +
"%";