1package com.fs.starfarer.api.impl.campaign.missions.luddic;
7import org.lwjgl.util.vector.Vector2f;
9import com.fs.starfarer.api.Global;
10import com.fs.starfarer.api.campaign.InteractionDialogAPI;
11import com.fs.starfarer.api.campaign.econ.MarketAPI;
12import com.fs.starfarer.api.campaign.rules.MemoryAPI;
13import com.fs.starfarer.api.characters.PersonAPI;
14import com.fs.starfarer.api.impl.campaign.econ.RecentUnrest;
15import com.fs.starfarer.api.impl.campaign.ids.Factions;
16import com.fs.starfarer.api.impl.campaign.ids.FleetTypes;
17import com.fs.starfarer.api.impl.campaign.ids.People;
18import com.fs.starfarer.api.impl.campaign.missions.hub.HubMissionWithSearch;
19import com.fs.starfarer.api.ui.TooltipMakerAPI;
20import com.fs.starfarer.api.util.Misc.Token;
24 public static enum Stage {
60 if (
gilead ==
null)
return false;
64 if (
mazalot ==
null)
return false;
161 List<Token> params,
final Map<String, MemoryAPI> memoryMap) {
173 if (
"postMissionCleanup".equals(action)) {
182 else if (
"shootEm".equals(action))
187 else if (
"resumeMusic".equals(action))
193 else if (
"endMusic".equals(action))
200 else if (
"playMusicCombat".equals(action))
205 else if (
"playMusicSedge".equals(action))
210 else if (
"playMusicVirens".equals(action))
215 else if (
"playMusicJethro".equals(action))
220 else if (
"playMusicDardan".equals(action))
225 else if (
"didMazalotRaid".equals(action))
230 else if (
"doCleanup".equals(action))
244 return super.callAction(action, ruleId, dialog, params, memoryMap);
277 info.
addPara(
"Find Bornanew. His last mission was the infiltration of a Pather cell; someone must known something about where he is.", opad);
281 info.
addPara(
"You have been told to meet with someone in a spacer bar on the surface of Chalcedon, presumably a recruiter for the Luddic Path.", opad);
285 info.
addPara(
"A Pather, Sedge, claims that Jethro Bornanew travelled to Mazalot. Find him, or find where he has gone from there.", opad);
289 info.
addPara(
"Nile Virens runs the Luddic Path on Mazalot. If anyone knows where Bornanew is, it would be him or his organization. He might be persuaded to help by force or diplomacy.", opad);
295 info.
addPara(
"Nile Virens has provided you with the location of Jethro Bornanew, or so he claims. This consists of coordinates for a location on the surface of Mazalot, outside of a Luddic-majority settlement.", opad);
300 info.
addPara(
"Return with Jethro Bornanew to the office of Archcurate Jaspis.", opad);
304 info.
addPara(
"Return to the office of Archcurate Jaspis with news of Jethro Bornanew's 'death'.", opad);
315 info.
addPara(
"Go to Chalcedon and find Jethro Bornanew", tc, pad);
319 info.
addPara(
"Go to the spacer bar on Chalcedon and speak with the Luddic Path recruiter", tc, pad);
323 info.
addPara(
"Go to Mazalot and find Jethro Bornanew", tc, pad);
327 info.
addPara(
"Talk to or raid Nile Virens on Mazalot", tc, pad);
331 info.
addPara(
"Go to the alleged location of Jethro Bornanew on Mazalot", tc, pad);
335 info.
addPara(
"Return to Gilead with Bornanew", tc, pad);
339 info.
addPara(
"Return to Gilead with news of Bornanew's 'death'.", tc, pad);
357 return "Knight Errant";
365 return super.getPostfixForState();
static SoundPlayerAPI getSoundPlayer()
static SectorAPI getSector()
static RecentUnrest get(MarketAPI market)
void add(int stability, String reason)
static final String LUDDIC_PATH
static final String LUDDIC_CHURCH
static final String PERSEAN
static final String PATROL_LARGE
void addSuccessStages(Object ... ids)
boolean setGlobalReference(String key)
static float getUnits(float lightYears)
void makeImportant(PersonAPI person, String flag, Enum ... stages)
PersonAPI getImportantPerson(String id)
void setStageOnGlobalFlag(Object to, String flag)
static void addStandardMarketDesc(String prefix, MarketAPI market, TooltipMakerAPI info, float pad)
transient Object startingStage
void setStartingStage(Object startingStage)
void setRepFactionChangesNone()
void setName(String name)
void setRepPersonChangesNone()
void triggerFleetMakeFaster(boolean navigationSkill, int numTugs, boolean allowLongPursuit)
void triggerMakeLowRepImpact()
void triggerOrderFleetPatrol(final StarSystemAPI system)
void triggerMakeHostileAndAggressive()
void triggerMakeNonStoryCritical(MemoryAPI ... memoryArray)
void beginWithinHyperspaceRangeTrigger(SectorEntityToken entity, float rangeLY, boolean requirePlayerInHyperspace, Object ... stages)
void triggerSetGlobalMemoryValue(final String key, final Object value)
void triggerSetFleetAlwaysPursue()
void triggerSetFleetOfficers(OfficerNum num, OfficerQuality quality)
void triggerOrderFleetInterceptPlayer()
void beginStageTrigger(Object ... stages)
void triggerFleetMakeImportant(String flag, Enum ... stages)
void triggerPickLocationTowardsEntity(SectorEntityToken entity, float arc, float dist)
void triggerSpawnFleetAtPickedLocation()
void triggerOrderFleetEBurn(float probabilityToEBurn)
void triggerSetFleetMissionRef(final String key)
void triggerCreateFleet(FleetSize size, FleetQuality quality, String factionId, String type, StarSystemAPI roughlyWhere)
void triggerSetFleetFaction(final String factionId)
void triggerPickLocationAroundEntity(final float dist)
boolean callAction(String action, String ruleId, final InteractionDialogAPI dialog, List< Token > params, final Map< String, MemoryAPI > memoryMap)
boolean addNextStepText(TooltipMakerAPI info, Color tc, float pad)
void updateInteractionDataImpl()
void addDescriptionForNonEndStage(TooltipMakerAPI info, float width, float height)
String getPostfixForState()
boolean create(MarketAPI createdAt, boolean barEvent)
void setSuspendDefaultMusicPlayback(boolean suspendMusicPlayback)
void playCustomMusic(int fadeOutIfAny, int fadeIn, String musicSetId)
void restartCurrentMusic()
Vector2f getListenerPos()
SoundAPI playSound(String id, float pitch, float volume, Vector2f loc, Vector2f vel)
MemoryAPI getMemoryWithoutUpdate()
SectorEntityToken getHyperspaceAnchor()
MarketAPI getMarket(String id)
MemoryAPI getMemoryWithoutUpdate()
Vector2f getLocationInHyperspace()
StarSystemAPI getStarSystem()
PlanetAPI getPlanetEntity()
String getPortraitSprite()