Skip to content

Commit 3d94ea1

Browse files
committed
fix hp overflow
1 parent 8208e0b commit 3d94ea1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

static/scripts/scene_descriptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def handle_scene_completion(self):
317317
self.scene_manager.activate_scene(ORBITING_PLANETS_SCENE)
318318
get_player().active = False
319319
self.results_overlay.active = True
320-
get_player().health += Player.FULL_HEALTH/3
320+
get_player().health = min(get_player().health + Player.FULL_HEALTH / 3, Player.FULL_HEALTH)
321321
self.planet.switch_view()
322322
self.planet.complete = True
323323

0 commit comments

Comments
 (0)