removed redundant if is_dead() check

This commit is contained in:
Vasilis Valatsos 2023-12-06 14:14:43 +01:00
parent 452c354ebd
commit 3b9b25441e
7 changed files with 0 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View file

@ -170,7 +170,6 @@ class Player(pygame.sprite.Sprite):
1 - 1/(np.exp((self.stats.health -
self.stats.stats['health'])/self.stats.stats['health']))
if not self.is_dead() > 0 else -1
]
self.state_features = [

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 28 KiB