Update base.py
This commit is contained in:
parent
9e6583ac24
commit
9b9a149e3f
@ -224,7 +224,7 @@ class BaseMission(Mission):
|
|||||||
self.api.dock(self.ship)
|
self.api.dock(self.ship)
|
||||||
|
|
||||||
def step_refuel(self):
|
def step_refuel(self):
|
||||||
if self.ship.fuel_current < 100:
|
if self.ship.fuel_current / self.ship.fuel_capacity < 0.5:
|
||||||
try:
|
try:
|
||||||
self.api.refuel(self.ship)
|
self.api.refuel(self.ship)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user