1package com.fs.starfarer.api.impl.campaign.missions;
5import org.lwjgl.util.vector.Vector2f;
7import com.fs.starfarer.api.campaign.SectorEntityToken;
8import com.fs.starfarer.api.campaign.StarSystemAPI;
9import com.fs.starfarer.api.campaign.econ.MarketAPI;
10import com.fs.starfarer.api.characters.PersonAPI;
11import com.fs.starfarer.api.impl.campaign.ids.Factions;
12import com.fs.starfarer.api.impl.campaign.ids.FleetTypes;
13import com.fs.starfarer.api.impl.campaign.ids.Ranks;
14import com.fs.starfarer.api.impl.campaign.ids.Tags;
15import com.fs.starfarer.api.impl.campaign.missions.hub.HubMissionWithBarEvent;
16import com.fs.starfarer.api.ui.TooltipMakerAPI;
17import com.fs.starfarer.api.util.Misc;
25 public static enum Stage {
51 "a rad-shielded salvors' TriPad",
52 "a cloudy, damaged data crystal",
53 "a small EM-shielded safe",
54 "a hardcopy book made of paper",
55 "a sewing kit with strangely curved needles",
56 "a single rose in a miniaturized stasis field",
57 "a small packet of seeds embossed with a Luddic sigil",
58 "an aged, twisted piece of wood",
59 "an irradiated bulkhead in a shielded crate",
60 "a black Volturnian lobster shell",
61 "a biosample in sealed cylinder",
62 "a peculiar vial of blood",
63 "a powdered substance in a triple-sealed container",
64 "a single vacuum-desiccated finger",
65 "a tiny unicorn pendant",
66 "a delicate crane made of folded paper",
67 "a scratched golden ring",
68 "a gravimatic trap holding some kind of glowing mote",
69 "a battered Hegemony officer's pistol",
70 "a large brilliant-cut diamond",
71 "a captain's safe cut from its bulkhead",
72 "a glowing blue crystal in a sealed tube"
76 if (person ==
null)
return false;
96 if (
system ==
null)
return false;
120 true, ComplicationRepImpact.NONE,
null);
129 super.notifyEnding();
133 if (person ==
null || person.
getMarket() ==
null)
return;
147 "the dead drop coordinates",
"they",
148 "the dead drop coordinates given to you by " + person.
getNameString(),
150 true, ComplicationRepImpact.LOW,
168 set(
"$ddro_aOrAnThing",
thing);
181 info.
addPara(
"Deliver " +
thing +
" to the dead drop location at the " +
static final String PIRATES
static final String PLAYER
static final String PATROL_LARGE
static String POST_GANGSTER
static String POST_SMUGGLER
static String POST_CRIMINAL
void addDescriptionForNonEndStage(TooltipMakerAPI info, float width, float height)
static float PROB_COMPLICATIONS
boolean addNextStepText(TooltipMakerAPI info, Color tc, float pad)
void updateInteractionDataImpl()
static float PROB_PATROL_AFTER
boolean create(MarketAPI createdAt, boolean barEvent)
static float MISSION_DAYS
void setFleetWantsThing(String originalFactionId, String thing, String thingItOrThey, String thingDesc, int paymentOffered, boolean aggressiveIfDeclined, ComplicationRepImpact repImpact, String failTrigger, PersonAPI personForRepLoss)
void triggerCreateFleet(FleetSize size, FleetQuality quality, String factionId, String type, SectorEntityToken roughlyWhere)
void triggerSetStandardAggroInterceptFlags()
static String TRIGGER_REP_LOSS_MEDIUM
void triggerSetAdjustStrengthBasedOnQuality(boolean randomize, float quality)
void setLocationInnerSector(boolean allowInsidePopulatedSystems, String requireLargestMarketNotHostileToFaction)
void setTimeLimit(Object failStage, float days, StarSystemAPI noLimitWhileInSystem, Object ... noLimitAfterStages)
boolean rollProbability(float p)
boolean setPersonMissionRef(PersonAPI person, String key)
PersonImportance pickImportance()
void setGiverPost(String giverPost)
SectorEntityToken spawnMissionNode(LocData data)
int getDistanceLY(MarketAPI market)
void makeImportant(PersonAPI person, String flag, Enum ... stages)
void setSuccessStage(Object id)
void setGiverRank(String giverRank)
void setStageOnMemoryFlag(Object to, HasMemory withMemory, String flag)
void setGiverImportance(PersonImportance giverImportance)
void setFailureStage(Object id)
void setGiverTags(String ... giverTags)
void findOrCreateGiver(MarketAPI market, boolean addToCommDirectory, boolean cleanUpOnMissionOverIfWasNewPerson)
void setGiverFaction(String factionId)
String pickOne(List< String > options)
String getWithoutArticle(String item)
boolean setEntityMissionRef(SectorEntityToken entity, String key)
void setStartingStage(Object startingStage)
void setGiverIsPotentialContactOnSuccess()
void setCreditReward(int min, int max)
StarSystemAPI pickSystem()
void preferSystemInDirectionOfOtherMissions()
void requireSystemInterestingAndNotUnsafeOrCore()
void preferSystemInInnerSector()
void preferSystemUnexplored()
void requireSystemNot(final StarSystemAPI system)
void triggerMakeLowRepImpact()
void triggerComplicationBegin(Object stage, ComplicationSpawn spawnType, StarSystemAPI system, String factionId, String thing, String thingItOrThey, String thingDesc, int paymentOffered, boolean aggressiveIfDeclined, ComplicationRepImpact repImpact, String failTrigger)
void triggerComplicationEnd(boolean randomizeAndAdjustFleetSize)
static String getWithDGS(float num)
static Color getHighlightColor()
static boolean isPirateFaction(FactionAPI faction)
String getNameWithLowercaseTypeShort()
StarSystemAPI getStarSystem()