36 StarSystemAPI system = sector.createStarSystem(
"Limbo");
37 system.addTag(Tags.THEME_HIDDEN);
38 system.addTag(Tags.THEME_SPECIAL);
41 system.getLocation().set(-w/2f + 2300f, -h/2f + 2100f);
46 system.setBackgroundTextureFilename(
"graphics/backgrounds/background4.jpg");
50 PlanetAPI star = system.initStar(
"limbo",
51 StarTypes.BROWN_DWARF,
56 system.setLightColor(
new Color(180, 205, 140));
58 Random random = StarSystemGenerator.random;
60 PlanetAPI planet = system.addPlanet(
"limbo_hades", star,
"Hades", Planets.ROCKY_METALLIC, 215, 60, 1700, 75);
61 planet.getMemoryWithoutUpdate().set(
"$hades",
true);
62 planet.setCustomDescriptionId(
"limbo_hades");
63 planet.getMarket().addCondition(Conditions.NO_ATMOSPHERE);
64 planet.getMarket().addCondition(Conditions.COLD);
65 planet.getMarket().addCondition(Conditions.POOR_LIGHT);
66 planet.getMarket().addCondition(Conditions.RARE_ORE_RICH);
68 float orbitRadius = planet.getRadius() + 300f;
69 float orbitDays = orbitRadius / (20f + random.nextFloat() * 5f);
70 EntityLocation loc =
new EntityLocation();
72 orbitRadius, orbitDays);
73 AddedEntity added = BaseThemeGenerator.addEntity(
null, system, loc, Entities.STATION_MINING, Factions.NEUTRAL);
74 added.entity.getMemoryWithoutUpdate().set(MemFlags.SALVAGE_SPEC_ID_OVERRIDE,
"limbo_mining_station");
75 added.entity.setName(
"Automated Mining Station");
76 added.entity.getMemoryWithoutUpdate().set(
"$limboMiningStation",
true);
77 added.entity.setCustomDescriptionId(
"station_mining_automated");
80 cargo.addCommodity(Commodities.RARE_METALS, 200f + random.nextInt(101));
81 BaseSalvageSpecial.addExtraSalvage(added.entity, cargo);
84 StarSystemGenerator.addStableLocations(system, 1);
87 for (SectorEntityToken curr : system.getEntitiesWithTag(Tags.STABLE_LOCATION)) {
88 curr.getMemoryWithoutUpdate().set(WormholeManager.LIMBO_STABLE_LOCATION,
true);
90 orbitRadius = curr.getRadius() + 200f;
91 orbitDays = orbitRadius / (20f + random.nextFloat() * 5f);
92 loc =
new EntityLocation();
94 orbitRadius, orbitDays);
95 added = BaseThemeGenerator.addEntity(
null, system, loc, Entities.LARGE_CACHE, Factions.NEUTRAL);
96 added.entity.getMemoryWithoutUpdate().set(MemFlags.SALVAGE_SPEC_ID_OVERRIDE, Entities.SPEC_LIMBO_WORMHOLE_CACHE);
97 added.entity.setName(
"Mothballed Equipment Cache");
98 added.entity.setCustomDescriptionId(Entities.SPEC_LIMBO_WORMHOLE_CACHE);
99 added.entity.getMemoryWithoutUpdate().set(
"$limboWormholeCache",
true);
102 SpecialItemData item = WormholeManager.createWormholeAnchor(
"foxtrot",
"Foxtrot");
103 cargo.addItems(CargoItemType.SPECIAL, item, 1);
105 item =
new SpecialItemData(Items.WORMHOLE_SCANNER,
null);
106 cargo.addItems(CargoItemType.SPECIAL, item, 1);
108 cargo.addFuel(110 + random.nextInt(21));
109 BaseSalvageSpecial.addExtraSalvage(added.entity, cargo);
117 orbitRadius = planet.getRadius() + 600f;
118 orbitDays = orbitRadius / (20f + random.nextFloat() * 5f);
119 loc =
new EntityLocation();
121 orbitRadius, orbitDays);
122 added = BaseThemeGenerator.addEntity(
null, system, loc, Entities.EQUIPMENT_CACHE, Factions.NEUTRAL);
123 added.entity.setName(
"Test Wormhole Cache");
127 WormholeItemData itemData =
new WormholeItemData(
"standard",
"bravo",
"Bravo");
128 SpecialItemData item =
new SpecialItemData(Items.WORMHOLE_ANCHOR, itemData.toJsonStr());
129 testCargo.addItems(CargoItemType.SPECIAL, item, 1);
131 itemData =
new WormholeItemData(
"standard",
"sierra",
"Sierra");
132 item =
new SpecialItemData(Items.WORMHOLE_ANCHOR, itemData.toJsonStr());
133 testCargo.addItems(CargoItemType.SPECIAL, item, 1);
135 item =
new SpecialItemData(Items.WORMHOLE_SCANNER,
null);
136 testCargo.addItems(CargoItemType.SPECIAL, item, 1);
138 BaseSalvageSpecial.addExtraSalvage(added.entity, testCargo);
141 system.autogenerateHyperspaceJumpPoints(
true,
true);