27 difficulty += (int) Math.round(f * 3f);
29 if (intel.isLarge()) {
35 difficulty += random.nextInt(4);
37 FleetCreatorMission m =
new FleetCreatorMission(random);
41 m.createStandardFleet(difficulty, Factions.LUDDIC_PATH, loc);
42 m.triggerSetPirateFleet();
43 m.triggerMakeLowRepImpact();
44 m.triggerFleetAllowLongPursuit();
45 if (intel !=
null && intel.getMarket() !=
null) {
46 m.triggerSetFleetMemoryValue(MemFlags.MEMORY_KEY_SOURCE_MARKET, intel.getMarket().getId());
49 CampaignFleetAPI fleet = m.createFleet();
51 point.
where.addEntity(fleet);
52 fleet.setLocation(point.
loc.x, point.
loc.y);
53 Vector2f spawnLoc = Misc.getPointWithinRadius(point.
loc, 1000f);
54 SectorEntityToken e = point.
where.createToken(spawnLoc);
55 fleet.addAssignment(FleetAssignment.ORBIT_AGGRESSIVE, e, 30f * random.nextFloat(),
"laying in wait");
56 fleet.removeScriptsOfClass(MissionFleetAutoDespawn.class);
57 fleet.addScript(
new MissionFleetAutoDespawn(
null, fleet));