Starsector API
Loading...
Searching...
No Matches
UnderworldCustomBounty.java
Go to the documentation of this file.
1package com.fs.starfarer.api.impl.campaign.missions.cb;
2
3import java.util.ArrayList;
4import java.util.List;
5
6import com.fs.starfarer.api.campaign.econ.MarketAPI;
7import com.fs.starfarer.api.impl.campaign.ids.Factions;
8import com.fs.starfarer.api.impl.campaign.ids.Ranks;
9import com.fs.starfarer.api.impl.campaign.ids.Tags;
10
12
13 public static List<CustomBountyCreator> CREATORS = new ArrayList<CustomBountyCreator>();
14 static {
15 CREATORS.add(new CBTrader());
16 CREATORS.add(new CBPatrol());
17 CREATORS.add(new CBMercUW());
18 }
19
20 @Override
21 public List<CustomBountyCreator> getCreators() {
22 return CREATORS;
23 }
24
25 @Override
26 protected boolean create(MarketAPI createdAt, boolean barEvent) {
27 return super.create(createdAt, barEvent);
28 }
29
30 @Override
31 protected void createBarGiver(MarketAPI createdAt) {
32 setGiverRank(Ranks.CITIZEN);
33 setGiverPost(pickOne(Ranks.POST_SMUGGLER, Ranks.POST_GANGSTER,
34 Ranks.POST_FENCE, Ranks.POST_CRIMINAL));
35 setGiverImportance(pickImportance());
36 setGiverFaction(Factions.PIRATES);
37 setGiverTags(Tags.CONTACT_UNDERWORLD);
38 findOrCreateGiver(createdAt, false, false);
39 setGiverIsPotentialContactOnSuccess();
40 }
41
42
43}
44
45
46
47
48
49
50
51
52
53
54
55
56