29 public static class Level0
implements DescriptionSkillEffect {
30 public String getString() {
37 return "*The total nav rating for the deployed ships of the fleet increases the top speed of all ships " +
38 "in the fleet, up to a maximum of " +
39 "" + max +
". Does not apply to fighters.";
41 public Color[] getHighlightColors() {
42 Color h = Misc.getHighlightColor();
43 h = Misc.getDarkHighlightColor();
44 return new Color[] {h, h};
46 public String[] getHighlights() {
49 return new String [] {jammer, max};
51 public Color getTextColor() {
57 FleetMemberAPI member = stats.getFleetMember();
58 if (member ==
null)
return false;
62 return !member.getCaptain().isDefault();
66 public void apply(MutableShipStatsAPI stats, HullSize hullSize, String
id,
float level) {
71 if (hullSize == HullSize.CRUISER || hullSize == HullSize.CAPITAL_SHIP) bonus =
NAV_OTHER;
73 stats.getDynamic().getMod(Stats.COORDINATED_MANEUVERS_FLAT).modifyFlat(
id, bonus);
77 public void unapply(MutableShipStatsAPI stats, HullSize hullSize, String
id) {
78 stats.getDynamic().getMod(Stats.COORDINATED_MANEUVERS_FLAT).unmodify(
id);
80 public String getEffectDescription(
float level) {
86 public void createCustomDescription(MutableCharacterStatsAPI stats, SkillSpecAPI skill,
87 TooltipMakerAPI info,
float width) {
91 info.addPara(
"+%s to nav rating* of fleet for deployed frigates, " +
92 "+%s for destroyers, +%s for larger hulls", 0f,
hc,
hc,
104 public String getEffectPerLevelDescription() {
107 public ScopeDescription getScopeDescription() {
108 return ScopeDescription.PILOTED_SHIP;
112 public static class Level1B
extends BaseSkillEffectDescription implements CharacterStatsSkillEffect {
114 public void apply(MutableCharacterStatsAPI stats, String
id,
float level) {
115 stats.getCommandPoints().modifyFlat(
id,
CP_BONUS);
118 public void unapply(MutableCharacterStatsAPI stats, String
id) {
119 stats.getCommandPoints().unmodify(
id);
122 public void createCustomDescription(MutableCharacterStatsAPI stats, SkillSpecAPI skill,
123 TooltipMakerAPI info,
float width) {
130 info.addPara(
"+%s command points", 0f,
hc,
hc,
134 public String getEffectDescription(
float level) {
135 return "+" + (int)
CP_BONUS +
" command points";
138 public String getEffectPerLevelDescription() {
142 public ScopeDescription getScopeDescription() {
143 return ScopeDescription.FLEET;
147 public static class Level1C
extends BaseSkillEffectDescription implements ShipSkillEffect {
148 public void apply(MutableShipStatsAPI stats, HullSize hullSize, String
id,
float level) {
154 stats.getDynamic().getMod(Stats.COMMAND_POINT_RATE_FLAT).modifyFlat(
id, bonus * 0.01f);
158 public void unapply(MutableShipStatsAPI stats, HullSize hullSize, String
id) {
159 stats.getDynamic().getMod(Stats.COMMAND_POINT_RATE_FLAT).unmodify(
id);
161 public String getEffectDescription(
float level) {
165 public void createCustomDescription(MutableCharacterStatsAPI stats, SkillSpecAPI skill,
166 TooltipMakerAPI info,
float width) {
169 info.addPara(
"+%s to command point recovery rate from deployed frigates, " +
170 "+%s from destroyers", 0f,
hc,
hc,
175 public String getEffectPerLevelDescription() {
178 public ScopeDescription getScopeDescription() {
179 return ScopeDescription.PILOTED_SHIP;