37 StarSystemAPI system = sector.createStarSystem(
"Deep Space");
39 system.setName(
"Deep Space");
40 system.setType(StarSystemType.DEEP_SPACE);
41 system.addTag(Tags.THEME_HIDDEN);
42 system.addTag(Tags.THEME_SPECIAL);
46 system.setBackgroundTextureFilename(
"graphics/backgrounds/background5.jpg");
48 Random random = StarSystemGenerator.random;
52 float angle = 180f + random.nextFloat() * 90f;
53 float systemDist = 4000f + random.nextFloat() * 2000f;
54 Vector2f systemLoc = Misc.getUnitVectorAtDegreeAngle(angle);
55 systemLoc.scale(systemDist);
58 system.getLocation().set(-w/2f + systemLoc.x, -h/2f + systemLoc.y);
63 SectorEntityToken center = system.initNonStarCenter();
66 center.addTag(Tags.AMBIENT_LS);
68 String name = Misc.genEntityCatalogId(3125, 6, 11, CatalogEntryType.GIANT);
70 PlanetAPI giant = system.addPlanet(
"nameless_ice_giant",
null, name, Planets.ICE_GIANT, 0, 450, 0, 0);
73 giant.getMemoryWithoutUpdate().set(
"$gateHaulerIceGiant",
true);
75 giant.getMarket().addCondition(Conditions.DENSE_ATMOSPHERE);
76 giant.getMarket().addCondition(Conditions.COLD);
77 giant.getMarket().addCondition(Conditions.DARK);
78 giant.getMarket().addCondition(Conditions.VOLATILES_TRACE);
79 giant.getMarket().addCondition(Conditions.HIGH_GRAVITY);
82 giant.setLocation(0, 0);
85 EntityLocation loc =
new EntityLocation();
86 float orbitRadius = 7000f;
87 float orbitDays = orbitRadius / (20f + 5f * StarSystemGenerator.random.nextFloat());
89 StarSystemGenerator.random.nextFloat() * 360f, orbitRadius, orbitDays);
90 AddedEntity added = BaseThemeGenerator.addNonSalvageEntity(system, loc, Entities.STABLE_LOCATION, Factions.NEUTRAL);
93 for (SectorEntityToken curr : system.getEntitiesWithTag(Tags.STABLE_LOCATION)) {
94 SpecialItemData item = WormholeManager.createWormholeAnchor(
"charlie",
"Charlie");
95 JumpPointAPI wormhole = WormholeManager.get().addWormhole(item, curr,
null);
102 orbitRadius = giant.getRadius() + 250f;
103 orbitDays = orbitRadius / (20f + random.nextFloat() * 5f);
105 loc =
new EntityLocation();
107 orbitRadius, orbitDays, spin);
108 added = BaseThemeGenerator.addEntity(
null, system, loc, Entities.DERELICT_GATEHAULER, Factions.NEUTRAL);
109 added.entity.getMemoryWithoutUpdate().set(
"$gateHauler",
true);
120 system.autogenerateHyperspaceJumpPoints(
true,
false);
123 AbyssalRogueStellarObjectEPEC.setAbyssalDetectedRanges(system);