|
@@ -60,8 +60,7 @@ def main() -> None:
|
|
|
if weight_used > args.weight:
|
|
if weight_used > args.weight:
|
|
|
print(yellow('warning'), f'need additional {weight_used - args.weight:.1f}t to pick up exports at {planet.name}')
|
|
print(yellow('warning'), f'need additional {weight_used - args.weight:.1f}t to pick up exports at {planet.name}')
|
|
|
if volume_used > args.volume:
|
|
if volume_used > args.volume:
|
|
|
- print(yellow('warning'), f'need additional {volume_used - args.volume:.1f}㎥ to pick up exports at {planet.name}')
|
|
|
|
|
-
|
|
|
|
|
|
|
+ print(yellow('warning'), f'need additional {volume_used - args.volume:.1f}m³ to pick up exports at {planet.name}')
|
|
|
print(cyan('\nload at CX:\n') + json.dumps({
|
|
print(cyan('\nload at CX:\n') + json.dumps({
|
|
|
'actions': [
|
|
'actions': [
|
|
|
{'name': 'BuyItems', 'type': 'CX Buy', 'group': 'A1', 'exchange': 'IC1',
|
|
{'name': 'BuyItems', 'type': 'CX Buy', 'group': 'A1', 'exchange': 'IC1',
|
|
@@ -112,7 +111,7 @@ def calculate_optimal(planets: typing.Sequence[Planet], materials: typing.Mappin
|
|
|
if days < target_days:
|
|
if days < target_days:
|
|
|
target_days = days
|
|
target_days = days
|
|
|
|
|
|
|
|
- print(planet.name, f'consumes {vol_per_day:.1f}㎥, {weight_per_day:.1f}t per day')
|
|
|
|
|
|
|
+ print(planet.name, f'consumes {vol_per_day:.1f}m³, {weight_per_day:.1f}t per day')
|
|
|
|
|
|
|
|
optimal: dict[str, dict[str, int]] = None # pyright: ignore[reportAssignmentType]
|
|
optimal: dict[str, dict[str, int]] = None # pyright: ignore[reportAssignmentType]
|
|
|
total_weight_used: float = None # pyright: ignore[reportAssignmentType]
|
|
total_weight_used: float = None # pyright: ignore[reportAssignmentType]
|
|
@@ -137,7 +136,7 @@ def calculate_optimal(planets: typing.Sequence[Planet], materials: typing.Mappin
|
|
|
total_volume_used = iteration_volume
|
|
total_volume_used = iteration_volume
|
|
|
target_days += 0.1
|
|
target_days += 0.1
|
|
|
print('supply for', round(target_days, 1), 'days,', end=' ')
|
|
print('supply for', round(target_days, 1), 'days,', end=' ')
|
|
|
- print(f'consuming {round(total_weight_used, 1)}t and {round(total_volume_used, 1)}㎥') # pyright: ignore[reportPossiblyUnboundVariable]
|
|
|
|
|
|
|
+ print(f'consuming {round(total_weight_used, 1)}t and {round(total_volume_used, 1)}m³') # pyright: ignore[reportPossiblyUnboundVariable]
|
|
|
|
|
|
|
|
raw_prices: typing.Mapping[str, market.RawPrice] = {p['MaterialTicker']: p
|
|
raw_prices: typing.Mapping[str, market.RawPrice] = {p['MaterialTicker']: p
|
|
|
for p in cache.get('https://refined-prun.github.io/refined-prices/all.json') if p['ExchangeCode'] == 'IC1'}
|
|
for p in cache.get('https://refined-prun.github.io/refined-prices/all.json') if p['ExchangeCode'] == 'IC1'}
|