distance now pulls both systems in one call
This commit is contained in:
parent
999f408ab2
commit
6d4ee49011
1 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,8 @@ def getBodyCount(system):
|
||||||
return System(system).bodyCount
|
return System(system).bodyCount
|
||||||
|
|
||||||
def distanceBetween(system1, system2):
|
def distanceBetween(system1, system2):
|
||||||
return System(system1).distanceTo(System(system2))
|
systems = System.getSystems(system1, system2)
|
||||||
|
return systems[0].distanceTo(systems[1])
|
||||||
|
|
||||||
def getCommanderPosition(name, apikey):
|
def getCommanderPosition(name, apikey):
|
||||||
coords = Commander(name, apikey).currentPosition
|
coords = Commander(name, apikey).currentPosition
|
||||||
|
|
Loading…
Reference in a new issue