1package com.fs.starfarer.api.impl.campaign.intel.events;
6import com.fs.starfarer.api.campaign.econ.MarketAPI;
7import com.fs.starfarer.api.impl.campaign.ids.Industries;
8import com.fs.starfarer.api.impl.campaign.ids.Strings;
9import com.fs.starfarer.api.ui.Alignment;
10import com.fs.starfarer.api.ui.TooltipMakerAPI;
11import com.fs.starfarer.api.ui.TooltipMakerAPI.TooltipCreator;
12import com.fs.starfarer.api.ui.TooltipMakerAPI.TooltipLocation;
13import com.fs.starfarer.api.util.Misc;
27 public void createTooltip(
TooltipMakerAPI tooltip,
boolean expanded, Object tooltipParam) {
31 tooltip.
addPara(
"Defensive measures taken by your colonies.", 0f);
41 return biggest !=
null || mil !=
null;
50 if (biggest !=
null) {
58 public void createTooltip(
TooltipMakerAPI tooltip,
boolean expanded, Object tooltipParam) {
60 tooltip.
addPara(
"Based on the size and stability of the largest colony "
61 +
"under your control. If multiple colonies have the same size, the one with higher "
62 +
"stability is used.", 0f);
70 float h2 = Math.round(w / 1.6f);
95 public void createTooltip(
TooltipMakerAPI tooltip,
boolean expanded, Object tooltipParam) {
97 tooltip.
addPara(
"Based on the size the largest colony under your control that has a Patrol HQ, "
98 +
"a Military Base, or a High Command.", 0f);
100 tooltip.
addPara(
"A Patrol HQ reduces monthly progress by %s points. A Military Base and a High Command "
101 +
"reduce progress by %s and %s the colony's size, respectively. Only the highest-scoring colony is used, "
116 float h2 = Math.round(w / 1.6f);
159 if (market ==
null)
return 0;
172 return "Defensive measures";
180 return super.getDescColor(intel);
188 float size = market.getSize();
190 if (size == max && biggest !=
null) {
203 if (market ==
null)
return 0;
static final String HIGHCOMMAND
static final String PATROLHQ
Color getProgressColor(int delta)
String getProgressStr(BaseEventIntel intel)
int getProgress(BaseEventIntel intel)
Color getDescColor(BaseEventIntel intel)
float getAllProgressMult(BaseEventIntel intel)
void addExtraRows(TooltipMakerAPI info, BaseEventIntel intel)
HADefensiveMeasuresFactor()
int getColonyIncreasedDefensesScore(BaseEventIntel intel, MarketAPI market)
MarketAPI getBestMilitaryMarket()
int getMilitaryScore(MarketAPI market)
MarketAPI getBiggestColony()
String getDesc(BaseEventIntel intel)
TooltipCreator getMainRowTooltip(BaseEventIntel intel)
static int PATROL_HQ_POINTS
static float HIGH_COMMAND_SIZE_MULT
static float MILITARY_SIZE_MULT
boolean shouldShow(BaseEventIntel intel)
static Color getTextColor()
static Color getGrayColor()
static Color getHighlightColor()
static List< MarketAPI > getPlayerMarkets(boolean includeNonPlayerFaction)
static boolean isMilitary(MarketAPI market)
float getStabilityValue()
boolean hasFunctionalIndustry(String id)
StarSystemAPI getStarSystem()