24 if (stats.getEntity() instanceof ShipAPI) {
25 ShipAPI ship = (ShipAPI) stats.getEntity();
26 if (!ship.isFrigate())
return false;
27 return !ship.getCaptain().isDefault();
29 FleetMemberAPI member = stats.getFleetMember();
30 if (member ==
null)
return false;
31 if (!member.isFrigate())
return false;
32 return !member.getCaptain().isDefault();
37 if (stats.getEntity() instanceof ShipAPI) {
38 ShipAPI ship = (ShipAPI) stats.getEntity();
39 if (!ship.isDestroyer())
return false;
40 return !ship.getCaptain().isDefault();
42 FleetMemberAPI member = stats.getFleetMember();
43 if (member ==
null)
return false;
44 if (!member.isDestroyer())
return false;
45 return !member.getCaptain().isDefault();
88 public static class Level1A
implements ShipSkillEffect {
89 public void apply(MutableShipStatsAPI stats, HullSize hullSize, String
id,
float level) {
106 public void unapply(MutableShipStatsAPI stats, HullSize hullSize, String
id) {
107 stats.getDamageToDestroyers().unmodifyPercent(
id);
108 stats.getDamageToCruisers().unmodifyPercent(
id);
109 stats.getDamageToCapital().unmodifyPercent(
id);
111 stats.getPeakCRDuration().unmodifyPercent(
id);
115 public String getEffectDescription(
float level) {
118 return "+" + (int)Math.round(
DAMAGE_TO_LARGER_BONUS) +
"% damage to ships larger than frigates if frigate, " +
120 "+" + (int)(
PEAK_TIME_BONUS) +
"% seconds peak operating time if frigate, " +
127 public String getEffectPerLevelDescription() {
131 public ScopeDescription getScopeDescription() {
132 return ScopeDescription.PILOTED_SHIP;
183 public static class Level1C
extends BaseSkillEffectDescription implements AfterShipCreationSkillEffect {
184 public void applyEffectsAfterShipCreation(ShipAPI ship, String
id) {
200 public void unapplyEffectsAfterShipCreation(ShipAPI ship, String
id) {
210 public void createCustomDescription(MutableCharacterStatsAPI stats, SkillSpecAPI skill,
211 TooltipMakerAPI info,
float width) {
232 public void apply(MutableShipStatsAPI stats, HullSize hullSize, String
id,
float level) {
235 public void unapply(MutableShipStatsAPI stats, HullSize hullSize, String
id) {