fix: location distance

main
Khiem Ton 2 years ago
parent e921fbf86a
commit a3964db328
Signed by: th4tkh13m
GPG Key ID: 4D9CF147DCADD05D

@ -3,7 +3,7 @@ class Object():
self.location = location self.location = location
def distance_to(self, other): def distance_to(self, other):
return self.location.distance(other.location) return self.location.distance(other)
def cooldown_to(self, other): def cooldown_to(self, other):
return self.location.get_cooldown(other.location) + 1 return self.location.get_cooldown(other) + 1
Loading…
Cancel
Save