rewrote hauling and highscores
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user