Update base.py
This commit is contained in:
parent
9b9a149e3f
commit
9d124179bf
@ -224,6 +224,8 @@ class BaseMission(Mission):
|
||||
self.api.dock(self.ship)
|
||||
|
||||
def step_refuel(self):
|
||||
if self.ship.fuel_capacity == 0:
|
||||
return
|
||||
if self.ship.fuel_current / self.ship.fuel_capacity < 0.5:
|
||||
try:
|
||||
self.api.refuel(self.ship)
|
||||
|
Loading…
Reference in New Issue
Block a user