001package com.fs.starfarer.api.impl.campaign.missions.cb;
002
003import java.util.ArrayList;
004import java.util.List;
005
006import com.fs.starfarer.api.campaign.econ.MarketAPI;
007import com.fs.starfarer.api.impl.campaign.ids.Factions;
008import com.fs.starfarer.api.impl.campaign.ids.Ranks;
009import com.fs.starfarer.api.impl.campaign.ids.Tags;
010
011public class UnderworldCustomBounty extends BaseCustomBounty {
012
013        public static List<CustomBountyCreator> CREATORS = new ArrayList<CustomBountyCreator>();
014        static {
015                CREATORS.add(new CBTrader());
016                CREATORS.add(new CBPatrol());
017                CREATORS.add(new CBMercUW());
018        }
019        
020        @Override
021        public List<CustomBountyCreator> getCreators() {
022                return CREATORS;
023        }
024
025        @Override
026        protected boolean create(MarketAPI createdAt, boolean barEvent) {
027                return super.create(createdAt, barEvent);
028        }
029        
030        @Override
031        protected void createBarGiver(MarketAPI createdAt) {
032                setGiverRank(Ranks.CITIZEN);
033                setGiverPost(pickOne(Ranks.POST_SMUGGLER, Ranks.POST_GANGSTER, 
034                                                         Ranks.POST_FENCE, Ranks.POST_CRIMINAL));
035                setGiverImportance(pickImportance());
036                setGiverFaction(Factions.PIRATES);
037                setGiverTags(Tags.CONTACT_UNDERWORLD);
038                findOrCreateGiver(createdAt, false, false);
039                setGiverIsPotentialContactOnSuccess();
040        }
041
042        
043}
044
045
046
047
048
049
050
051
052
053
054
055
056