27 public FleetTotalItem getFleetTotalItem() {
31 public void apply(MutableShipStatsAPI stats, HullSize hullSize, String
id,
float level) {
35 stats.getFluxDissipation().modifyPercent(
id, disBonus);
36 stats.getFluxCapacity().modifyPercent(
id, capBonus);
40 public void unapply(MutableShipStatsAPI stats, HullSize hullSize, String
id) {
41 stats.getFluxDissipation().unmodifyPercent(
id);
42 stats.getFluxCapacity().unmodifyPercent(
id);
45 public String getEffectDescription(
float level) {
56 public void createCustomDescription(MutableCharacterStatsAPI stats, SkillSpecAPI skill,
57 TooltipMakerAPI info,
float width) {
67 Color c = Misc.getBasePlayerColor();
68 info.addPara(
"Affects: %s", opad + 5f, Misc.getGrayColor(), c,
"all combat ships, including carriers and militarized civilian ships");
70 info.addPara(
"+%s flux dissipation for combat ships (maximum: %s)", opad,
hc,
hc,
71 "" + (
int) disBonus +
"%",
77 info.addPara(
"+%s flux capacity for combat ships (maximum: %s)", 0f,
hc,
hc,
78 "" + (
int) capBonus +
"%",
85 public ScopeDescription getScopeDescription() {
86 return ScopeDescription.ALL_SHIPS;
90 public static class Level2
implements CharacterStatsSkillEffect {
91 public void apply(MutableCharacterStatsAPI stats, String
id,
float level) {
95 public void unapply(MutableCharacterStatsAPI stats, String
id) {
96 stats.getMaxCapacitorsBonus().unmodify(
id);
99 public String getEffectDescription(
float level) {
103 public String getEffectPerLevelDescription() {
107 public ScopeDescription getScopeDescription() {
108 return ScopeDescription.ALL_SHIPS;
112 public static class Level3
implements CharacterStatsSkillEffect {
113 public void apply(MutableCharacterStatsAPI stats, String
id,
float level) {
115 stats.getMaxVentsBonus().modifyFlat(
id,
VENTS_BONUS);
118 public void unapply(MutableCharacterStatsAPI stats, String
id) {
120 stats.getMaxVentsBonus().unmodify(
id);
123 public String getEffectDescription(
float level) {
124 return "+" + (int)
VENTS_BONUS +
" maximum flux vents";
127 public String getEffectPerLevelDescription() {
131 public ScopeDescription getScopeDescription() {
132 return ScopeDescription.ALL_SHIPS;