general leads the startup
This commit is contained in:
@@ -6,7 +6,7 @@ def assign_probe(c, s):
|
||||
m = [m.waypoint for m in c.store.all_members(system, 'Marketplace')]
|
||||
m = solve_tsp(c, m)
|
||||
hops = [w.symbol for w in m]
|
||||
start_hop = randrange(0, len(hops))
|
||||
start_hop = 0
|
||||
s.log(f'Assigning {s} to probe {len(hops)} starting at {hops[start_hop]}')
|
||||
|
||||
c.captain.init_mission(s, 'probe')
|
||||
|
||||
@@ -13,8 +13,6 @@ def assign_sitter(c, s):
|
||||
shipyards = c.store.all_members(system, 'Shipyard')
|
||||
occupied = [s.mission_state['dest'] for s in ships if s.mission=='sit']
|
||||
probe_shipyard = [y for y in shipyards if 'SHIP_PROBE' in y.types][0]
|
||||
print('oc', occupied)
|
||||
print('proya', probe_shipyard)
|
||||
|
||||
if probe_shipyard.symbol not in occupied:
|
||||
return assign_sitter_at(c, s, probe_shipyard)
|
||||
|
||||
Reference in New Issue
Block a user