1package com.fs.starfarer.api.impl.campaign.intel.events;
7import com.fs.starfarer.api.Global;
8import com.fs.starfarer.api.campaign.StarSystemAPI;
9import com.fs.starfarer.api.campaign.econ.Industry;
10import com.fs.starfarer.api.campaign.econ.MarketAPI;
11import com.fs.starfarer.api.impl.campaign.ids.Commodities;
12import com.fs.starfarer.api.impl.campaign.ids.Factions;
13import com.fs.starfarer.api.impl.campaign.intel.PerseanLeagueMembership;
14import com.fs.starfarer.api.ui.LabelAPI;
15import com.fs.starfarer.api.ui.TooltipMakerAPI;
16import com.fs.starfarer.api.ui.TooltipMakerAPI.TooltipCreator;
17import com.fs.starfarer.api.util.Misc;
31 public void createTooltip(
TooltipMakerAPI tooltip,
boolean expanded, Object tooltipParam) {
33 tooltip.
addPara(
"The Hegemony considers the use of %s illegal, though it is unlikely "
34 +
"to take much notice of what goes on at colonies of size %s or smaller.", 0f,
39 LabelAPI label = tooltip.
addPara(
"However, your membership in the Persean League makes it politically "
40 +
"difficult for the Hegemony to pursue the matter.", opad);
41 label.
setHighlight(
"Persean League",
"politically difficult");
56 return super.getProgressStr();
62 return super.getProgressColor(
intel);
91 int reduced = Math.round(adjusted);
92 if (progress > 0 && reduced < 1) reduced = 1;
103 return "AI core use";
134 if (aiCoreId !=
null) {
139 String core = ind.getAICoreId();
166 total = Math.round(total * 100f) / 100f;
static SettingsAPI getSettings()
static SectorAPI getSector()
static final String ALPHA_CORE
static final String BETA_CORE
static final String GAMMA_CORE
static final String PERSEAN
static final String PLAYER
static boolean isLeagueMember()
HostileActivityEventIntel intel
float getTotalAICorePoints()
static int IGNORE_COLONY_THRESHOLD
static float getAICorePoints(StarSystemAPI system)
Color getProgressColor(BaseEventIntel intel)
float getMagnitudeContribution(StarSystemAPI system)
TooltipCreator getTooltip()
HegemonyAICoresActivityCause(HostileActivityEventIntel intel)
int getProgress(boolean checkNegated)
boolean isNegatedByPLMembership()
static float getAICorePoints(MarketAPI market)
static boolean isPlayerDefeatedHegemony()
static List< MarketAPI > getMarketsInLocation(LocationAPI location, String factionId)
static List< StarSystemAPI > getPlayerSystems(boolean includeNonPlayerFaction)
static Color getHighlightColor()
static Color getPositiveHighlightColor()
float getFloat(String key)
FactionAPI getFaction(String factionId)
List< Industry > getIndustries()
static String NEGATED_FACTOR_PROGRESS
void setHighlight(int start, int end)
void setHighlightColors(Color ... colors)