1package com.fs.starfarer.api.impl.campaign;
4import java.util.ArrayList;
7import com.fs.starfarer.api.Global;
8import com.fs.starfarer.api.campaign.CargoAPI;
9import com.fs.starfarer.api.campaign.FactionAPI;
10import com.fs.starfarer.api.campaign.FactionProductionAPI;
11import com.fs.starfarer.api.campaign.econ.CommodityOnMarketAPI;
12import com.fs.starfarer.api.campaign.econ.MonthlyReport;
13import com.fs.starfarer.api.campaign.econ.MonthlyReport.FDNode;
14import com.fs.starfarer.api.fleet.FleetMemberAPI;
15import com.fs.starfarer.api.ui.Alignment;
16import com.fs.starfarer.api.ui.TooltipMakerAPI;
17import com.fs.starfarer.api.ui.TooltipMakerAPI.TooltipCreator;
18import com.fs.starfarer.api.util.Misc;
23 FDNode node = (FDNode) tooltipParam;
45 tooltip.
addPara(
"Fleet-related income and expenses.", 0);
47 tooltip.
addPara(
"Colony-related income and expenses.", 0);
49 tooltip.
addPara(
"Weapons and fighter LPCs installed on produced ships.", 0);
52 if (node.custom2 instanceof
CargoAPI) {
59 List<FleetMemberAPI> ships =
new ArrayList<FleetMemberAPI>();
61 if (!ships.isEmpty()) {
71 tooltip.
addPara(
"A total of %s worth of production effort has been put into projects that have not yet been " +
76 if (node.custom2 instanceof
CargoAPI) {
77 tooltip.
addPara(
"Expenses incurred due to the use of local stockpiles to counter shortages.", 0);
83 List<FleetMemberAPI> ships =
new ArrayList<FleetMemberAPI>();
85 if (!ships.isEmpty()) {
91 if (node.custom2 instanceof
CargoAPI) {
92 tooltip.
addPara(
"Expenses incurred due to the need to restock local stockpiles to replace the resources drawn by your fleet.", 0);
98 List<FleetMemberAPI> ships =
new ArrayList<FleetMemberAPI>();
100 if (!ships.isEmpty()) {
102 tooltip.
showShips(ships, 10,
true, opad);
107 "Each officer receives a base salary of %s credits per month, plus %s credits per officer level.", 0,
112 "Each administrator receives a salary that depends on their skills. " +
113 "When not assigned to govern a colony, their salary is reduced to %s.", 0,
116 tooltip.
addPara(
"Each crew member receives a monthly salary of %s credits.", 0,
119 tooltip.
addPara(
"Each marine receives a monthly salary of %s credits.", 0,
122 tooltip.
addPara(
"Unpaid debt carried over from last month.", 0);
124 tooltip.
addPara(
"Upkeep and income from industries and structures located at the outpost or colony.", 0);
126 tooltip.
addPara(
"Total spent on hazard pay and related growth incentives at the colony during the previous month.", 0);
128 tooltip.
addPara(
"Income from out-of-faction exports by this outpost or colony. " +
129 "Smuggling and in-faction exports do not produce income.", 0);
134 tooltip.
addPara(
"Fees and expenses incurred by storing crew or materiel at a location. Includes rent, security, and other such.", 0);
136 String percent =
"" + (int) (storageFreeFraction * 100f) +
"%";
137 tooltip.
addPara(
"The monthly expenses are generally %s of the base value of what's in storage.", 10f, h,
140 tooltip.
addPara(
"Storage at a colony under your control does not incur any fees.", 10f);
143 if (node.custom2 instanceof Float) {
144 quantity = (Float) node.custom2;
145 if (quantity < 1) quantity = 1;
147 String units =
"units";
148 if (quantity <= 1) units =
"unit";
static SettingsAPI getSettings()
static SectorAPI getSector()
static String STOCKPILING
static String LAST_MONTH_DEBT
static String PRODUCTION_WEAPONS
static String getDGSCredits(float num)
static String getWithDGS(float num)
static Color getHighlightColor()
float getFloat(String key)
FleetDataAPI getMothballedShips()
FactionProductionAPI getProduction()
int getAccruedProduction()
List< FleetMemberAPI > getMembersListCopy()
FactionAPI getPlayerFaction()
CommoditySpecAPI getCommodity()