rewrote hauling and highscores

This commit is contained in:
Richard
2024-01-21 20:21:38 +01:00
parent 3f7a416fdc
commit b0ef68a721
6 changed files with 76 additions and 39 deletions

View File

@@ -123,6 +123,9 @@ class Ship(Base):
garbage = [c for c in cargo if c not in deliveries]
return garbage
def cargo_space(self):
return self.cargo_capacity - self.cargo_units
def update_timers(self):
if self.status == 'IN_TRANSIT' and self.arrival < time():
self.status = 'IN_ORBIT'