Skip to content

Commit

Permalink
undo changes in GameSession.py
Browse files Browse the repository at this point in the history
  • Loading branch information
linomp committed Jun 30, 2024
1 parent 09189c2 commit 3b7457b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mvp/server/core/game/GameSession.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3b7457b

Please sign in to comment.