29 public FleetTotalItem getFleetTotalItem() {
33 public void apply(MutableShipStatsAPI stats, HullSize hullSize, String
id,
float level) {
36 stats.getBallisticWeaponDamageMult().modifyPercent(
id, damBonus);
37 stats.getEnergyWeaponDamageMult().modifyPercent(
id, damBonus);
38 stats.getMissileWeaponDamageMult().modifyPercent(
id, damBonus);
42 public void unapply(MutableShipStatsAPI stats, HullSize hullSize, String
id) {
43 stats.getBallisticWeaponDamageMult().unmodifyPercent(
id);
44 stats.getEnergyWeaponDamageMult().unmodifyPercent(
id);
45 stats.getMissileWeaponDamageMult().unmodifyPercent(
id);
48 public String getEffectDescription(
float level) {
52 public void createCustomDescription(MutableCharacterStatsAPI stats, SkillSpecAPI skill,
53 TooltipMakerAPI info,
float width) {
59 info.addPara(
"+%s weapon damage for combat ships (maximum: %s)", 0f,
hc,
hc,
60 "" + (
int) damBonus +
"%",
67 public ScopeDescription getScopeDescription() {
68 return ScopeDescription.ALL_SHIPS;
74 public void apply(MutableFleetStatsAPI stats, String
id,
float level) {
75 stats.getDynamic().getMod(Stats.PLANETARY_OPERATIONS_MOD).modifyPercent(
id,
ATTACK_BONUS,
"Tactical drills");
78 public void unapply(MutableFleetStatsAPI stats, String
id) {
79 stats.getDynamic().getMod(Stats.PLANETARY_OPERATIONS_MOD).unmodifyPercent(
id);
82 public void createCustomDescription(MutableCharacterStatsAPI stats, SkillSpecAPI skill,
83 TooltipMakerAPI info,
float width) {
87 Color c = Misc.getBasePlayerColor();
89 info.addPara(
"Affects: %s", opad + 5f, Misc.getGrayColor(), c,
"ground operations");
91 info.addPara(
"+%s effectiveness of ground operations such as raids", 0f,
hc,
hc,
95 public String getEffectDescription(
float level) {
96 return "+" + (int)(
ATTACK_BONUS) +
"% effectiveness of ground operations such as raids";
99 public String getEffectPerLevelDescription() {
103 public ScopeDescription getScopeDescription() {
104 return ScopeDescription.FLEET;
108 public static class Level3
implements FleetStatsSkillEffect {
109 public void apply(MutableFleetStatsAPI stats, String
id,
float level) {
110 stats.getDynamic().getStat(Stats.PLANETARY_OPERATIONS_CASUALTIES_MULT).modifyMult(
id,
CASUALTIES_MULT,
"Tactical drills");
113 public void unapply(MutableFleetStatsAPI stats, String
id) {
114 stats.getDynamic().getStat(Stats.PLANETARY_OPERATIONS_CASUALTIES_MULT).unmodifyMult(
id);
117 public String getEffectDescription(
float level) {
118 return "-" + (int)Math.round((1f -
CASUALTIES_MULT) * 100f) +
"% marine casualties suffered during ground operations such as raids";
121 public String getEffectPerLevelDescription() {
125 public ScopeDescription getScopeDescription() {
126 return ScopeDescription.FLEET;