Commit 4d8765d 1 parent d79657c commit 4d8765d Copy full SHA for 4d8765d
File tree 4 files changed +27
-3
lines changed
4 files changed +27
-3
lines changed Original file line number Diff line number Diff line change @@ -1205,3 +1205,14 @@ https://github.com/SpaceTradersAPI/api-docs/wiki/Travel-Fuel-and-Time
1205
1205
### Build a profit/loss statement.
1206
1206
1207
1207
### Build a cash flow statement.
1208
+
1209
+ ### This seems wrong? Is it considering jumping?
1210
+
1211
+ Found 3 deals for ESEIDEL-49 from AQ24-I53
1212
+ 🛸#49 Found deal: LIQUID_HYDROGEN AQ24-C40 3c -> AQ24-G48 32c +3,648c (414%) 9m 6c/s 882c
1213
+ 🛸#49 ⛽ 4 FUEL +3% +2c per 4 x 74c = -296c -> 🏦 1,667c
1214
+ 🛸#49 Market at AQ24-I53 doesn't buy FABRICS
1215
+ 🛸#49 Cargo hold not empty, finding market to sell FABRICS.
1216
+ 🛸#49 Selecting AQ24-K85 earns 28,650c extra (including 14,147c for fuel) over 6s (4775.0/s)
1217
+ 🛸#49 Beginning route to AQ24-K85 (5m)
1218
+ 🛸#49 🛫 to AQ24-K85 PLANET (5m) spent 366 fuel
Original file line number Diff line number Diff line change @@ -106,7 +106,8 @@ class CentralCommand {
106
106
107
107
/// Returns true if we should chart asteroids in the given [systemSymbol] .
108
108
bool chartAsteroidsInSystem (SystemSymbol systemSymbol) {
109
- return _chartAsteroidsInSystem[systemSymbol] ?? false ;
109
+ return _chartAsteroidsInSystem[systemSymbol] ??
110
+ config.chartAsteroidsByDefault;
110
111
}
111
112
112
113
/// Sets whether we should chart asteroids in the given [systemSymbol] .
@@ -165,7 +166,7 @@ class CentralCommand {
165
166
final miningBehaviors = {
166
167
Behavior .miner,
167
168
Behavior .minerHauler,
168
- // Behavior.siphoner,
169
+ Behavior .siphoner,
169
170
Behavior .surveyor,
170
171
};
171
172
if (! config.enableMining && miningBehaviors.contains (behavior)) {
Original file line number Diff line number Diff line change @@ -33,6 +33,12 @@ class Config {
33
33
/// planning (assigning ships to squads, planning mounts, etc.)
34
34
final int centralPlanningInterval = 20 ;
35
35
36
+ /// Used to slow down charters and have them spend less money on jumps.
37
+ bool chartAsteroidsByDefault = false ;
38
+
39
+ /// findBetterTradeLocation is too slow when we have lots of systems
40
+ bool disableFindBetterTradeLocation = true ;
41
+
36
42
/// The number of requests per second allowed by the api.
37
43
/// Version 2.1 allows:
38
44
/// - 2 requests per second
@@ -58,11 +64,13 @@ class Config {
58
64
ShipType .MINING_DRONE ,
59
65
ShipType .SURVEYOR ,
60
66
for (int i = 0 ; i < 13 ; i++ ) ShipType .LIGHT_HAULER ,
67
+ // Only buy after gate opens.
61
68
for (int i = 0 ; i < 20 ; i++ ) ShipType .PROBE ,
62
69
for (int i = 0 ; i < 10 ; i++ ) ShipType .REFINING_FREIGHTER ,
70
+ // Only buy with 3m in cash?
63
71
for (int i = 0 ; i < 20 ; i++ ) ShipType .PROBE ,
72
+ // Only buy with 3m in cash?
64
73
for (int i = 0 ; i < 20 ; i++ ) ShipType .EXPLORER ,
65
- // ShipType.EXPLORER,
66
74
];
67
75
68
76
// TODO(eseidel): Should be some dynamic min count of light-haulers before we
Original file line number Diff line number Diff line change 1
1
import 'package:cli/caches.dart' ;
2
+ import 'package:cli/config.dart' ;
2
3
import 'package:cli/logger.dart' ;
3
4
import 'package:cli/logic/printing.dart' ;
4
5
import 'package:cli/plan/trading.dart' ;
@@ -18,6 +19,9 @@ WaypointSymbol? findBetterTradeLocation(
18
19
required Set <SystemSymbol > avoidSystems,
19
20
required int profitPerSecondThreshold,
20
21
}) {
22
+ if (config.disableFindBetterTradeLocation) {
23
+ return null ;
24
+ }
21
25
final search = _MarketSearch .start (
22
26
marketPrices,
23
27
systemsCache,
You can’t perform that action at this time.
0 commit comments