1package com.fs.starfarer.api.impl.campaign.intel.events;
7import com.fs.starfarer.api.campaign.StarSystemAPI;
8import com.fs.starfarer.api.campaign.econ.MarketAPI;
9import com.fs.starfarer.api.impl.campaign.fleets.EconomyFleetRouteManager;
10import com.fs.starfarer.api.impl.campaign.ids.Factions;
11import com.fs.starfarer.api.impl.campaign.rulecmd.KantaCMD;
12import com.fs.starfarer.api.ui.MapParams;
13import com.fs.starfarer.api.ui.TooltipMakerAPI;
14import com.fs.starfarer.api.ui.TooltipMakerAPI.TooltipCreator;
15import com.fs.starfarer.api.ui.UIPanelAPI;
16import com.fs.starfarer.api.util.Misc;
29 public void createTooltip(
TooltipMakerAPI tooltip,
boolean expanded, Object tooltipParam) {
31 tooltip.
addPara(
"Any colony, especially one outside the core, attracts some degree of piracy."
32 +
" %s and %s colonies attract more pirates.", 0f,
34 tooltip.
addPara(
"Event progress value is based on the size and stability of the largest colony "
35 +
"under your control. If multiple colonies have the same size, the one with higher "
36 +
"stability is used.", opad);
48 float h = Math.round(w / 1.6f);
62 float size = market.getSize();
64 if (size == max && biggest !=
null) {
84 return super.getProgressStr();
91 return super.getProgressColor(
intel);
98 if (biggest ==
null)
return 0;
104 return "Colony presence and instability";
129 max = Math.max(val, max);
134 max = Math.round(max * 100f) / 100f;
static boolean ENEMY_STRENGTH_CHECK_EXCLUDE_PIRATES
static final String PLAYER
HostileActivityEventIntel intel
MarketAPI getBiggestColony()
float getMagnitudeContribution(StarSystemAPI system)
Color getProgressColor(BaseEventIntel intel)
StandardPirateActivityCause2(HostileActivityEventIntel intel)
TooltipCreator getTooltip()
float getMagForMarket(MarketAPI market)
static boolean playerHasProtection()
void showSystem(StarSystemAPI system)
void positionToShowAllMarkersAndSystems(boolean showPlayerFleet, float heightOnScreen)
static List< MarketAPI > getMarketsInLocation(LocationAPI location, String factionId)
static Color getHighlightColor()
static List< MarketAPI > getPlayerMarkets(boolean includeNonPlayerFaction)
static Color getPositiveHighlightColor()
String getNameWithLowercaseTypeShort()
float getStabilityValue()
StarSystemAPI getStarSystem()
static String NEGATED_FACTOR_PROGRESS