diff --git a/mvp/server/core/game/GameSession.py b/mvp/server/core/game/GameSession.py index e30dcca..555112c 100644 --- a/mvp/server/core/game/GameSession.py +++ b/mvp/server/core/game/GameSession.py @@ -113,9 +113,9 @@ def do_maintenance(self) -> bool: if self.available_funds < MAINTENANCE_COST: return False + self.current_step += 1 self.available_funds -= MAINTENANCE_COST self.machine_state.do_maintenance() - self.current_step += 1 self.update_rul_prediction() return True @@ -124,9 +124,9 @@ def purchase_sensor(self, sensor: str) -> bool: if self.available_funds < SENSOR_COST: return False + self.current_step += 1 self.available_funds -= SENSOR_COST self.available_sensors[sensor] = True - self.current_step += 1 self.update_rul_prediction() return True