From 6d4ee49011030337fc9649a66f834549c6504827 Mon Sep 17 00:00:00 2001 From: alterNERDtive Date: Wed, 8 Jan 2020 13:45:31 +0100 Subject: [PATCH] distance now pulls both systems in one call --- explorationtools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/explorationtools.py b/explorationtools.py index 267d9e2..3e1a143 100755 --- a/explorationtools.py +++ b/explorationtools.py @@ -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