From 23eed41313191e40d32f45ce9bf8b50efc08bef6 Mon Sep 17 00:00:00 2001 From: Vasilis Valatsos Date: Thu, 7 Mar 2024 10:33:27 +0200 Subject: [PATCH] Fix bug --- entities/player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entities/player.py b/entities/player.py index 904ff5f..b5b5731 100644 --- a/entities/player.py +++ b/entities/player.py @@ -160,7 +160,7 @@ class Player(pygame.sprite.Sprite): if hasattr(self, 'state_features'): self.old_state_features = self.state_features - self.reward = self.stats.exp + self.reward = self.stats.exp\ + self.stats.health/self.stats.stats['health'] - 1 # - nearest_dist/np.sqrt(np.sum(self.map_edge))