Starsector API
Loading...
Searching...
No Matches
TTCRIndustryDisruptedFactor.java
Go to the documentation of this file.
1package com.fs.starfarer.api.impl.campaign.intel.events.ttcr;
2
3import com.fs.starfarer.api.impl.campaign.intel.events.BaseEventIntel;
4import com.fs.starfarer.api.impl.campaign.intel.events.BaseFactorTooltip;
5import com.fs.starfarer.api.impl.campaign.intel.events.BaseOneTimeFactor;
6import com.fs.starfarer.api.ui.TooltipMakerAPI;
7import com.fs.starfarer.api.ui.TooltipMakerAPI.TooltipCreator;
8
10
11 protected String desc;
12
14 super(points);
15 this.desc = desc;
16 }
17
18 @Override
19 public String getDesc(BaseEventIntel intel) {
20 return desc;
21 }
22
23 @Override
24 public TooltipCreator getMainRowTooltip(BaseEventIntel intel) {
25 return new BaseFactorTooltip() {
26 @Override
27 public void createTooltip(TooltipMakerAPI tooltip, boolean expanded, Object tooltipParam) {
28 tooltip.addPara("Disrupted non-military industrial operations "
29 + "on Tri-Tachyon colonies, through raids or bombardment. More effective and longer lasting"
30 + " disruptions result in more event progress points.",
31 0f);
32 tooltip.addPara("Repeatedly disrupting the same industry will have no additional effect.",
33 0f);
34 }
35
36 };
37 }
38
39}