1package com.fs.starfarer.api.impl.campaign.econ;
5import com.fs.starfarer.api.impl.campaign.intel.events.PiracyRespiteScript;
6import com.fs.starfarer.api.impl.campaign.rulecmd.KantaCMD;
7import com.fs.starfarer.api.ui.TooltipMakerAPI;
8import com.fs.starfarer.api.util.Misc;
33 text +=
" (with Kanta's Protection)";
46 if (script ==
null)
return;
54 tooltip.
addPara(
"Your colonies have %s, and pirates are wary of "
55 +
"attacking trade fleets serving them lest they attract her wrath. "
57 "Kanta's Protection");
59 tooltip.
addPara(
"You've defeated a large armada sent against your colonies, and pirates are wary of "
60 +
"attacking trade fleets serving them, "
61 +
"resulting in a greatly reduced number of shipping disruptions.", opad);
65 String days = rem == 1 ?
"day" :
"days";
68 tooltip.
addPara(
"Your colonies have %s, resulting in an "
70 "Kanta's Protection");
74 tooltip.
addPara(
"%s accessibility (%s " + days +
" remaining).",
76 "+" + (
int)Math.round(
getBonus() * 100f) +
"%",
"" + rem);
78 tooltip.
addPara(
"%s accessibility.",
80 "+" + (
int)Math.round(
getBonus() * 100f) +
"%");
void modifyFlat(String source, float value)
void unmodifyFlat(String source)
boolean hasCustomTooltip()
static float ACCESSIBILITY_BONUS_KANTA
static float ACCESSIBILITY_BONUS
void createTooltipAfterDescription(TooltipMakerAPI tooltip, boolean expanded)
static PiracyRespiteScript get()
static boolean playerHasProtection()
static String ucFirst(String str)
static Color getHighlightColor()
static Color getPositiveHighlightColor()
StatBonus getAccessibilityMod()