1package com.fs.starfarer.api.impl.campaign.intel.events;
3import com.fs.starfarer.api.Global;
4import com.fs.starfarer.api.campaign.FactionAPI;
5import com.fs.starfarer.api.campaign.StarSystemAPI;
6import com.fs.starfarer.api.campaign.econ.MarketAPI;
7import com.fs.starfarer.api.impl.campaign.ids.Conditions;
8import com.fs.starfarer.api.impl.campaign.ids.Factions;
9import com.fs.starfarer.api.ui.TooltipMakerAPI;
10import com.fs.starfarer.api.ui.TooltipMakerAPI.TooltipCreator;
11import com.fs.starfarer.api.util.Misc;
24 public void createTooltip(TooltipMakerAPI tooltip,
boolean expanded, Object tooltipParam) {
26 tooltip.addPara(
"Negotiating with the Luddic Church about controlling the "
27 +
"immigration of the faithful to your colonies "
28 +
"is likely to get this harassment to stop. If "
29 +
"left unchecked, this low-grade conflict will eventually come to a head and is likely to "
30 +
"be resolved one way or another.", 0f, Misc.getHighlightColor(),
34 tooltip.addPara(
"Event progress value is based on the number and size of colonies "
35 +
"with the \"Luddic Majority\" condition.", opad, f.getBaseUIColor(),
47 for (MarketAPI market : Misc.getPlayerMarkets(
false)) {
48 if (!market.hasCondition(Conditions.LUDDIC_MAJORITY))
continue;
50 int size = market.getSize();
70 return "Colonies with a Luddic Majority";
79 for (MarketAPI market : Misc.getMarketsInLocation(system, Factions.PLAYER)) {
80 if (!market.hasCondition(Conditions.LUDDIC_MAJORITY))
continue;
81 total += market.getSize();
static SectorAPI getSector()
HostileActivityEventIntel intel
static boolean isDefeatedExpedition()
static boolean isMadeDeal()
TooltipCreator getTooltip()
float getMagnitudeContribution(StarSystemAPI system)
LuddicChurchStandardActivityCause(HostileActivityEventIntel intel)