Starsector API
Loading...
Searching...
No Matches
FGBlockadePlanetAction.java
Go to the documentation of this file.
1package com.fs.starfarer.api.impl.campaign.intel.group;
2
3import java.util.ArrayList;
4
5import com.fs.starfarer.api.campaign.SectorEntityToken;
6import com.fs.starfarer.api.impl.campaign.command.WarSimScript;
7import com.fs.starfarer.api.impl.campaign.ids.Tags;
8
10
11 protected float successFractionOverride = -1;
12
13 public FGBlockadePlanetAction(FGBlockadeParams params, float duration) {
14 super(params, duration);
15 }
16
17 @Override
18 public void computeInitial() {
19 computedInitial = true;
20
21 primary = params.specificMarket.getPrimaryEntity();
22
23 blockadePoints = new ArrayList<SectorEntityToken>();
25
26 // otherwise, WasSimScript adds extra MilitaryResponseScripts for objectives and
27 // attacking fleets go there almost to the exclusion of other targets
30 }
31
32// origDuration = 3f;
33// setDurDays(3f);
34 }
35
36 @Override
37 public float getSuccessFraction() {
38 if (successFractionOverride >= 0) {
40 }
41 return super.getSuccessFraction();
42 }
43
46 }
47
49 this.successFractionOverride = successFractionOverride;
50 }
51
52}
53
54
55
static void setNoFightingForObjective(SectorEntityToken objective, FactionAPI faction, float timeout)
List< SectorEntityToken > getEntitiesWithTag(String tag)