distance now pulls both systems in one call

This commit is contained in:
alterNERDtive 2020-01-08 13:45:31 +01:00
parent 999f408ab2
commit 6d4ee49011

View file

@ -13,7 +13,8 @@ def getBodyCount(system):
return System(system).bodyCount
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):
coords = Commander(name, apikey).currentPosition