Starsector API
Loading...
Searching...
No Matches
HighEfficiencyDriveField.java
Go to the documentation of this file.
1package com.fs.starfarer.api.impl.hullmods;
2
3import com.fs.starfarer.api.combat.MutableShipStatsAPI;
4import com.fs.starfarer.api.combat.ShipAPI.HullSize;
5
7
8 public static final float REDUCTION = 0.333333f;
9
10 public void applyEffectsBeforeShipCreation(HullSize hullSize, MutableShipStatsAPI stats, String id) {
11 stats.getFuelUseMod().modifyMult(id, 1f - REDUCTION);
12 }
13
14 public String getDescriptionParam(int index, HullSize hullSize) {
15 if (index == 0) return "" + (int) Math.round(REDUCTION * 100f) + "%";
16 return null;
17 }
18}
19
20
21
22
void applyEffectsBeforeShipCreation(HullSize hullSize, MutableShipStatsAPI stats, String id)