1package com.fs.starfarer.api.impl.campaign.intel.events;
6import com.fs.starfarer.api.campaign.econ.Industry;
7import com.fs.starfarer.api.campaign.econ.MarketAPI;
8import com.fs.starfarer.api.impl.campaign.ids.Industries;
9import com.fs.starfarer.api.impl.campaign.ids.Strings;
10import com.fs.starfarer.api.ui.TooltipMakerAPI;
11import com.fs.starfarer.api.ui.TooltipMakerAPI.TooltipCreator;
12import com.fs.starfarer.api.util.Misc;
20 public static class HAColonyDefenseData {
23 public float mult = 1f;
32 public void createTooltip(
TooltipMakerAPI tooltip,
boolean expanded, Object tooltipParam) {
37 tooltip.
addPara(
"The presence of military infrastructure slows down event progress, but does not actually stop or reverse it. "
38 +
"The highest level military structure present on any of your colonies determines the multiplier.", 0f);
43 20f,
"Infrastructure", 200f,
"Multiplier", 100f);
72 if (data.industry !=
null && data.market !=
null) {
73 tooltip.
addPara(
"You have a %s at %s.", opad, h,
99 }
else if (data.mult > 1) {
108 if (data.mult != 1) {
116 if (data.industry ==
null) {
117 return "Military infrastructure";
127 return super.getDescColor(intel);
131 HAColonyDefenseData best =
new HAColonyDefenseData();
151 if (industry !=
null && mult < best.mult) {
152 best.market = market;
153 best.industry = industry;
static final String HIGHCOMMAND
static final String PATROLHQ
static final String MILITARYBASE
Color getDescColor(BaseEventIntel intel)
static float HIGH_COMMAND_MULT
static float PATROL_HQ_MULT
static float MILITARY_BASE_MULT
HAColonyDefenseData getDefenseData(BaseEventIntel intel)
Color getProgressColor(BaseEventIntel intel)
float getAllProgressMult(BaseEventIntel intel)
String getDesc(BaseEventIntel intel)
boolean shouldShow(BaseEventIntel intel)
String getProgressStr(BaseEventIntel intel)
TooltipCreator getMainRowTooltip(BaseEventIntel intel)
static Color getNegativeHighlightColor()
static Color getBasePlayerColor()
static Color getGrayColor()
static Color getBrightPlayerColor()
static Color getHighlightColor()
static List< MarketAPI > getPlayerMarkets(boolean includeNonPlayerFaction)
static Color getDarkPlayerColor()
static Color getPositiveHighlightColor()
static String getRoundedValueMaxOneAfterDecimal(float value)
static boolean isMilitary(MarketAPI market)