@@ -91,21 +91,22 @@ public async Task getRavenColonizeTargets()
91
91
Game . log ( txt ) ; // JsonConvert.SerializeObject(colonizationTargets, Formatting.Indented));
92
92
}
93
93
94
- public async Task getMinorFactionSystems ( )
94
+ public async Task queryMinorFactionSystems ( )
95
95
{
96
96
Game . log ( $ "Requesting api/systems/search for factions by body") ;
97
97
98
98
var factions = new List < string > ( )
99
99
{
100
100
"Raven Colonial Corporation" ,
101
101
"Steven Gordon Jolliffe" ,
102
+ "Sap Core Legion" ,
102
103
"Elite Secret Service" ,
103
- "The Blue Brotherhood " ,
104
- "Guardians of Cygnus "
104
+ "Razorback Astronautics " ,
105
+ "The Buurian Protectorate "
105
106
} ;
106
107
107
108
var factionsTxt = string . Join ( "," , factions . Select ( _ => $ "\" { _ } \" ") ) ;
108
- var json = "{\" filters\" :{\" minor_faction_presences\" :{\" value\" :[" + factionsTxt + "]}},\" sort\" :[{\" distance\" :{\" direction\" :\" asc\" }}],\" size\" :200 ,\" page\" :0,\" reference_system\" :\" Banka\" }" ;
109
+ var json = "{\" filters\" :{\" minor_faction_presences\" :{\" value\" :[" + factionsTxt + "]}},\" sort\" :[{\" distance\" :{\" direction\" :\" asc\" }}],\" size\" :500 ,\" page\" :0,\" reference_system\" :\" Banka\" }" ;
109
110
110
111
var body = new StringContent ( json , Encoding . ASCII , "application/json" ) ;
111
112
@@ -140,16 +141,6 @@ public async Task getMinorFactionSystems()
140
141
}
141
142
}
142
143
143
- switch ( system . name )
144
- {
145
- case "Banka" : // Raven Colonial Corporation
146
- case "Hungalun" : //Steven Gordon Jolliffe
147
- case "Loperada" : // Elite Secret Service
148
- case "Bhumians" : // The Blue Brotherhood
149
- case "Dyavansana" : // Guardians of Cygnus
150
- foo . cat [ 0 ] = 99 ;
151
- break ;
152
- }
153
144
154
145
foos . Add ( foo ) ;
155
146
}
@@ -158,7 +149,7 @@ public async Task getMinorFactionSystems()
158
149
. Replace ( "]}," , "]},\r \n " ) ;
159
150
txt = txt . Insert ( 1 , "\r \n " ) ;
160
151
txt = txt . Insert ( txt . Length - 1 , "\r \n " ) ;
161
- Clipboard . SetText ( txt ) ;
152
+ Program . defer ( ( ) => Clipboard . SetText ( txt ) ) ;
162
153
163
154
Game . log ( $ "Processed { results . size } of { results . count } results") ;
164
155
}
0 commit comments