Starsector API
Loading...
Searching...
No Matches
ExperimentalPhaseCoils.java
Go to the documentation of this file.
1package com.fs.starfarer.api.impl.hullmods;
2
3import com.fs.starfarer.api.combat.BaseHullMod;
4import com.fs.starfarer.api.combat.MutableShipStatsAPI;
5import com.fs.starfarer.api.combat.ShipAPI.HullSize;
6
7public class ExperimentalPhaseCoils extends BaseHullMod {
8
9 public static float PHASE_COOLDOWN_REDUCTION = 80f;
10
11 public void applyEffectsBeforeShipCreation(HullSize hullSize, MutableShipStatsAPI stats, String id) {
12 stats.getPhaseCloakCooldownBonus().modifyMult(id, 1f - PHASE_COOLDOWN_REDUCTION / 100f);
13 }
14
15 public String getDescriptionParam(int index, HullSize hullSize) {
16 if (index == 0) return "" + (int) Math.round(PHASE_COOLDOWN_REDUCTION) + "%";
17 return null;
18 }
19
20
21// ??? this seems unnecessary, commenting it out -am
22// @Override
23// public boolean affectsOPCosts() {
24// return true;
25// }
26
27}
28
29
30
31
32
33
34
35
void applyEffectsBeforeShipCreation(HullSize hullSize, MutableShipStatsAPI stats, String id)