Starsector API
Loading...
Searching...
No Matches
ShipSystemStatsScript.java
Go to the documentation of this file.
1package com.fs.starfarer.api.plugins;
2
3import com.fs.starfarer.api.combat.MutableShipStatsAPI;
4import com.fs.starfarer.api.combat.ShipAPI;
5
6public interface ShipSystemStatsScript {
7 public static enum State {
8 IN,
9 ACTIVE,
10 OUT,
11 COOLDOWN,
12 IDLE;
13 }
14
15 public static class StatusData {
16 public String text;
17 public boolean isDebuff;
18 public StatusData(String text, boolean isDebuff) {
19 this.text = text;
20 this.isDebuff = isDebuff;
21 }
22 }
23
24 void apply(MutableShipStatsAPI stats, String id, State state, float effectLevel);
25 void unapply(MutableShipStatsAPI stats, String id);
26
27 StatusData getStatusData(int index, State state, float effectLevel);
28
29 float getActiveOverride(ShipAPI ship);
30 float getInOverride(ShipAPI ship);
31 float getOutOverride(ShipAPI ship);
32
33 int getUsesOverride(ShipAPI ship);
34 float getRegenOverride(ShipAPI ship);
35
36 String getDisplayNameOverride(State state, float effectLevel);
37}
void apply(MutableShipStatsAPI stats, String id, State state, float effectLevel)
void unapply(MutableShipStatsAPI stats, String id)
StatusData getStatusData(int index, State state, float effectLevel)
String getDisplayNameOverride(State state, float effectLevel)