36 protected boolean create(MarketAPI createdAt,
boolean barEvent) {
38 if (!setGlobalReference(
"$gaData_ref")) {
43 target = pickOne(
"library",
"datavault",
"archive",
"laboratory");
45 requireSystemTags(ReqMode.ANY, Tags.THEME_REMNANT_RESURGENT, Tags.THEME_REMNANT_SUPPRESSED,
46 Tags.THEME_DERELICT, Tags.THEME_MISC, Tags.THEME_RUINS);
47 requireSystemTags(ReqMode.NOT_ANY, Tags.THEME_REMNANT_SECONDARY);
49 requirePlanetUnpopulated();
50 requirePlanetWithRuins();
51 preferPlanetNotFullySurveyed();
52 preferPlanetUnexploredRuins();
59 setStartingStage(Stage.GO_TO_RUINS);
60 addSuccessStages(Stage.COMPLETED);
61 addFailureStages(Stage.FAIL_TIME);
63 connectWithGlobalFlag(Stage.GO_TO_RUINS, Stage.GET_IN_COMMS_RANGE,
"$gaData_gotData");
64 connectWithInRangeOfCommRelay(Stage.GET_IN_COMMS_RANGE, Stage.COMPLETED);
66 makeImportant(
planet,
"$gaData_targetPlanet", Stage.GO_TO_RUINS);
68 setTimeLimit(Stage.FAIL_TIME,
MISSION_DAYS,
planet.getStarSystem(), Stage.GET_IN_COMMS_RANGE);
70 setCreditReward(CreditReward.AVERAGE);
72 beginWithinHyperspaceRangeTrigger(
planet, 1f,
false, Stage.GO_TO_RUINS);
73 triggerCreateFleet(FleetSize.MEDIUM, FleetQuality.DEFAULT, Factions.PIRATES, FleetTypes.PATROL_MEDIUM,
planet);
74 triggerSetStandardAggroPirateFlags();
76 triggerPickLocationAtInSystemJumpPoint(
planet.getStarSystem());
77 triggerSpawnFleetAtPickedLocation(
"$gaData_pirate",
null);
78 triggerOrderFleetPatrol(
planet);
96 Color h = Misc.getHighlightColor();
97 if (currentStage == Stage.GO_TO_RUINS) {
98 info.addPara(
"Go to " +
planet.getName() +
" and retrieve the data from the ruins.", opad);
99 }
else if (currentStage == Stage.GET_IN_COMMS_RANGE) {
100 info.addPara(
"Get within range of a functional comm relay to complete the mission and receive " +
101 "your reward.", opad);
103 super.addDescriptionForCurrentStage(info, width, height);
109 Color h = Misc.getHighlightColor();
110 if (currentStage == Stage.GO_TO_RUINS) {
111 info.addPara(
"Go to " +
planet.getName() +
"", tc, pad);
113 }
else if (currentStage == Stage.GET_IN_COMMS_RANGE) {
114 info.addPara(
"Get within comms range to complete the mission", tc, pad);