Starsector API
Loading...
Searching...
No Matches
PEAssembleStage.java
Go to the documentation of this file.
1package com.fs.starfarer.api.impl.campaign.intel.punitive;
2
3import java.awt.Color;
4
5import com.fs.starfarer.api.campaign.SectorEntityToken;
6import com.fs.starfarer.api.impl.campaign.ids.FleetTypes;
7import com.fs.starfarer.api.impl.campaign.intel.raid.AssembleStage;
8import com.fs.starfarer.api.impl.campaign.intel.raid.RaidIntel;
9import com.fs.starfarer.api.impl.campaign.intel.raid.RaidIntel.RaidStageStatus;
10import com.fs.starfarer.api.ui.TooltipMakerAPI;
11import com.fs.starfarer.api.util.Misc;
12
13public class PEAssembleStage extends AssembleStage {
14
15 public PEAssembleStage(RaidIntel raid, SectorEntityToken gatheringPoint) {
16 super(raid, gatheringPoint);
17 }
18
19 public void showStageInfo(TooltipMakerAPI info) {
20 int curr = intel.getCurrentStage();
21 int index = intel.getStageIndex(this);
22
23 Color h = Misc.getHighlightColor();
24 Color g = Misc.getGrayColor();
25 Color tc = Misc.getTextColor();
26 float pad = 3f;
27 float opad = 10f;
28
29 if (status == RaidStageStatus.FAILURE) {
30 info.addPara("The expeditionary force has failed to successfully assemble at the rendezvous point.", opad);
31 } else if (curr == index) {
32 if (isSourceKnown()) {
33 info.addPara("The expeditionary force is currently assembling in the " + gatheringPoint.getContainingLocation().getNameWithLowercaseType() + ".", opad);
34 } else {
35 info.addPara("The expeditionary force is currently assembling at an unknown location.", opad);
36 }
37 }
38 }
39
40
41 @Override
42 protected String pickNextType() {
43 return FleetTypes.TASK_FORCE;
44 }
45
46 @Override
47 protected float getFP(String type) {
48 float fp = getLargeSize(true);
49 spawnFP -= fp;
50 return fp;
51// float base = 100f;
52// if (spawnFP < base * 1.5f) {
53// base = spawnFP;
54// }
55// if (base > spawnFP) base = spawnFP;
56//
57// spawnFP -= base;
58// return base;
59 }
60}
61
62
63
64
65
PEAssembleStage(RaidIntel raid, SectorEntityToken gatheringPoint)