30 entityPicker =
new WeightedRandomPicker<SectorEntityToken>();
32 if (system.hasTag(Tags.THEME_DERELICT_MOTHERSHIP))
continue;
33 if (system.hasTag(Tags.THEME_DERELICT_CRYOSLEEPER))
continue;
35 if (system.hasTag(Tags.THEME_DERELICT_PROBES) ||
36 system.hasTag(Tags.THEME_RUINS) ||
37 system.hasTag(Tags.THEME_REMNANT_DESTROYED)) {
40 if (system.hasTag(Tags.THEME_DERELICT_PROBES)) {
46 for (SectorEntityToken entity : system.getEntitiesWithTag(Tags.SALVAGEABLE)) {
48 if (entity.hasTag(Tags.EXPIRES))
continue;
49 if (Misc.isImportantForReason(entity.getMemoryWithoutUpdate(),
"aem"))
continue;
50 if (entity.hasTag(Tags.NOT_RANDOM_MISSION_TARGET))
continue;
51 if (entity.getMemoryWithoutUpdate() !=
null && entity.getMemoryWithoutUpdate().getBoolean(
"$ttWeaponsCache"))
continue;
52 if (entity.getCircularOrbitRadius() > 10000f)
continue;
53 if (entity.getContainingLocation() !=
null && entity.getContainingLocation().hasTag(Tags.THEME_HIDDEN))
continue;