Starsector API
Loading...
Searching...
No Matches
KantasProtectionOneTimeFactor.java
Go to the documentation of this file.
1package com.fs.starfarer.api.impl.campaign.intel.events;
2
3import java.awt.Color;
4
5import com.fs.starfarer.api.ui.TooltipMakerAPI;
6import com.fs.starfarer.api.ui.TooltipMakerAPI.TooltipCreator;
7
9
11 super(points);
12 }
13
14 @Override
15 public String getDesc(BaseEventIntel intel) {
16 return "Kanta's protection gained";
17 }
18
19 @Override
20 public Color getDescColor(BaseEventIntel intel) {
21 return super.getDescColor(intel);
22 }
23
24 @Override
25 public TooltipCreator getMainRowTooltip(BaseEventIntel intel) {
26 return new BaseFactorTooltip() {
27 @Override
28 public void createTooltip(TooltipMakerAPI tooltip, boolean expanded, Object tooltipParam) {
29 tooltip.addPara("You've recently gained Kanta's protection, and it's had a chilling effect on "
30 + "hostile activity in and around your systems.",
31 0f);
32 }
33
34 };
35 }
36
37}